You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm like using tailwind but am not sure which way is best to style the icons. Something like below?
---
import { Icon } from 'astro-icon';
---
<style lang="css">
[astro-icon] {
@apply text-blue
/* OR */
@apply text-blue
}
[astro-icon="annotation"] {
@apply text-red
/* OR */
@apply text-red
}
</style>
<Icon name="adjustment" /> <!-- will be blue -->
<Icon name="annotation" /> <!-- will be red -->
If so, might be useful to take up in the README.
I think it will be a great addition to add a 'class' prop. Would make things a lot easier when using tailwind and protentially cleaner in some cases when using regular styles.
The text was updated successfully, but these errors were encountered:
First of all, awesome plugin!
I'm like using tailwind but am not sure which way is best to style the icons. Something like below?
If so, might be useful to take up in the README.
I think it will be a great addition to add a 'class' prop. Would make things a lot easier when using tailwind and protentially cleaner in some cases when using regular styles.
The text was updated successfully, but these errors were encountered: