egoist / tailwindcss-icons

Use any icon (100,000+) from Iconify, for TailwindCSS
MIT License
830 stars 17 forks source link

Changing default icon width and height #15

Closed thijserven closed 9 months ago

thijserven commented 1 year ago

Currently the default icon width and height are set to 1em for every icon. I would like the default value to be slightly bigger. Is there a way to change the default icon size that gets applied to all the icon classes? If not, I would like to propose the following:

/* tailwind.config.js */

plugins: [
   iconsPlugin({
      collections: getIconCollections(["lucide"]),
      defaultSize: "1.5rem" // This replaces the height and width properties of all icons with this string
   })
]
github-actions[bot] commented 9 months ago

:tada: This issue has been resolved in version 1.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: