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 have a handful of icons which use multiple colors and I would like to be able to efficiently support light & dark mode. To accomplish this, I would love to somehow use my active theme within the svg icon. I'm sure the best practice is to create IconLight.tsx and IconDark.tsx but I was hoping to incorporate a bit more of a dynamic component where the icon would update based on user profile preferences.
I am relatively new to SVG's so it could well be that there is a better way to accomplish what I am trying above. I don't know all of the properties of SVG's and before doing a deep dive, I thought I would investigate something more familiar.
Any thoughts appreciated!
The text was updated successfully, but these errors were encountered:
Duplicates
Latest version
Summary 💡
I have a handful of icons which use multiple colors and I would like to be able to efficiently support light & dark mode. To accomplish this, I would love to somehow use my active theme within the svg icon. I'm sure the best practice is to create
IconLight.tsx
andIconDark.tsx
but I was hoping to incorporate a bit more of a dynamic component where the icon would update based on user profile preferences.Examples 🌈
Here is an example of what I was thinking:
Motivation 🔦
I am relatively new to SVG's so it could well be that there is a better way to accomplish what I am trying above. I don't know all of the properties of SVG's and before doing a deep dive, I thought I would investigate something more familiar.
Any thoughts appreciated!
The text was updated successfully, but these errors were encountered: