New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tailwindcss-plugin-icons

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-plugin-icons - npm Package Compare versions

Comparing version 0.0.4 to 1.0.0

dist/fetch.mjs

19

dist/index.d.ts
import * as tailwindcss_plugin from 'tailwindcss/plugin'
interface IconSet {}
declare type IconSetSelector = {
[K in keyof IconSet extends never
? string
: keyof IconSet]?: keyof IconSet extends never ? string[] : IconSet[K][]
}
declare type Options = {
asMask?: IconSetSelector
asBackground?: IconSetSelector
custom?: {
asMask?: string[]
asBackground?: string[]
declare type IconSets = {
[iconSetName: string]: {
icons: string[]
location?: string
}
}
declare const Icons: tailwindcss_plugin.TailwindPluginWithOptionsFn<Options>
declare const Icons: tailwindcss_plugin.TailwindPluginWithOptionsFn<IconSets>
export { IconSet, IconSetSelector, Icons, Options }
export { IconSets, Icons }
{
"name": "tailwindcss-plugin-icons",
"version": "0.0.4",
"version": "1.0.0",
"description": "Tailwind CSS icons with classes",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -30,13 +30,20 @@ # tailwindcss-plugin-icons

Icons({
// With existing icon sets
asMask: {
heroiconsSolid: ['trash', 'dots-vertical'],
heroiconsOutline: ['trash', 'dots-vertical'],
heroiconsSolid: {
// By default will search in common iconify module locations
icons: ['trash', 'trash?bg']
},
asBackground: {
heroiconsSolid: ['trash']
heroiconsOutline: {
icons: ['lock-open', 'lock-closed'],
// Can be some other module too
location: 'my-icon-alias/icons.json'
},
// Pass a custom icon set
custom: {
asMask: ['loading'],
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'

@@ -52,5 +59,5 @@ }

```html
<div class="i-heroicons-solid-trash w-5 h-5"></div>
<div class="i-heroicons-solid-trash h-5 w-5"></div>
```
## [Example](https://stackblitz.com/github/JensDll/tailwindcss-plugin-icons/tree/main/playground/vue?file=tailwind.config.js)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc