Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
tailwindcss-plugin-icons
Advanced tools
Tailwind CSS port of @unocss/preset-icons.
# Npm
npm install tailwindcss-plugin-icons
# Pnpm
pnpm add tailwindcss-plugin-icons
# Yarn
yarn add tailwindcss-plugin-icons
npm install @iconify-json/[the-collection-you-want]
. For example heroicons npm install @iconify-json/heroicons-outline @iconify-json/heroicons-solid
tailwind.config.js
:const { Icons } = require('tailwindcss-plugin-icons')
module.exports = {
[...]
plugins: [
Icons({
heroiconsSolid: {
// By default will search in common iconify module locations
icons: ['trash', 'trash?bg']
},
heroiconsOutline: {
icons: ['lock-open', 'lock-closed'],
// Can be some other module too
location: 'my-icon-alias/icons.json'
},
custom: {
icons: ['loading'],
// Can be a URI
location:
'https://gist.githubusercontent.com/JensDll/4e59cf6005f585581975941a94bc1d88/raw/6cdeb3cb9dacd47fd132d49004a2e8f4cbc0774f/icons.json'
},
customAlt: {
icons: ['loading'],
// Can be a relative or absolute path
location: './src/icons.json'
}
})
]
}
<div class="i-heroicons-solid-trash h-5 w-5"></div>
FAQs
Tailwind CSS icons with classes
The npm package tailwindcss-plugin-icons receives a total of 140 weekly downloads. As such, tailwindcss-plugin-icons popularity was classified as not popular.
We found that tailwindcss-plugin-icons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.