antfu / unplugin-icons

šŸ¤¹ Access thousands of icons as components on-demand universally.

Home Page:https://www.npmjs.com/package/unplugin-icons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default icon size 1.2em differs from iconify default icon size 1em

awacode21 opened this issue Ā· comments

Regarding the iconify docs the icons should default to width="1em" and height="1em".
Which it does when using iconify directly.

But when using the iconify icons by unplugin-icons they default to width="1.2em" and height="1.2em". So it differs from documentation.

Indeed this is not so important as you can set the "right" sizes by yourself, but i would like to mentioned it, because the difference is nowhere documented, or i was not able to find it.

It's intentional and documented here

/**
* Scale of icons against 1em
*
* @default 1.2
*/
scale?: number