🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More
Socket
Sign inDemoInstall
Socket

tailwindcss-plugin-iconify

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-plugin-iconify

Use any SVG icon powered by Iconify for Tailwind CSS, easy to use local icons and figma icons in particular.

1.5.1
latest
Source
npm
Version published
Weekly downloads
45
-2.17%
Maintainers
0
Weekly downloads
 
Created
Source

tailwindcss-plugin-iconify

NPM version Download monthly

Use any SVG icon powered by Iconify for Tailwind CSS, easy to use local icons and figma icons in particular.

Features

  • preprocessSets - support autocomplete for individual icon sets
  • local-icon-sets extension - easy to load local assets
    • Support import SVG icons directory by default
    • Support import IconifyJSON path
  • figma-icon-sets extension - easy to load Figma icons

About Figma icons

TailwindCSS do not support async plugin for now, so figma-icon-sets extension you can not use directly.

But this library export related node scripts:

  • importFigmaIconSets to import IconSets from figma files
  • writeIconifyJSONs to write corresponding JSON files and SVG icons preview HTMLs
  • loadFigmaIconSets = importFigmaIconSets + writeIconifyJSONs

[!IMPORTANT] For better git auto merge, you should ignore icons.json and icons.html for code formatting.

Icon limitations

ref: iconify.design/import/figma

Motivation

I want to use tailwind autocomplete for Iconify icon sets and support local icon sets. related issue: iconify/iconify#241

Credits

Build & Publish

  • npm run build
  • npx changeset
  • npx changeset version
  • git commit
  • npx changeset publish
  • git push --follow-tags

changeset prerelease doc

License

MIT License © 2022 Yuns

Keywords

tailwindcss

FAQs

Package last updated on 23 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts