Replies: 1 comment
-
|
Hiii @jerr3n , You can actually achieve this right now with a bit of setup. The shadcn theme generator outputs CSS variables (like --primary, --radius, etc.), so you could build a theme switcher by: Storing multiple theme presets (Lyra, Mira, etc.) as separate sets of CSS variable values Something like: function applyTheme(name: keyof typeof themes) { |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I was wondering if it would be possible to allow users to set the style of their components based off of the shadcn theme generator? E.g. they could use lyra, and toggle mira, and so on. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions