CSS & Styling
You can style your icons with custom CSS.
Custom CSS styles
Customize the styles applied to every icon by using the [data-icon]
attribute selector.
Customize the styles applied to a single icon by using the [data-icon="name"]
attribute selector.
Tailwind CSS
Tailwind CSS support in Astro projects is provided by the Astro Tailwind integration.
The Icon
component automatically passes the class
prop through to the underlying svg
element.