Is there a way to get the available themes? #459
-
|
I'm trying to build a theme picker and I'm looking for a way to get the available themes from Uniwind. My workaround so far has been to store them in a separate file, and import that into the const extraThemes = ["aurora", "ember", ...] as const
export { extraThemes }// in my components
const themes = ["light", "dark", "system", ...extraThemes]Is there any easier way to get the themes from Uniwind directly? Also being able to import the Edit: Updated with examples and for clarity, removed second part because it was an implementation error on my part
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
I think we should export it from core @Brentlok |
Beta Was this translation helpful? Give feedback.
-
|
Done in - #460 |
Beta Was this translation helpful? Give feedback.
-
|
🚀 included in v1.6.0. See Release v1.6.0 for release notes. |
Beta Was this translation helpful? Give feedback.
🚀 included in v1.6.0. See Release v1.6.0 for release notes.