这是indexloc提供的服务,不要输入任何密码
Skip to content

Changing default icon width and height #15

@thijserven

Description

@thijserven

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
   })
]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions