Replies: 2 comments 3 replies
-
Hi! Yes, it's possible: <script>
import { createTheme, useSvelteUITheme, SvelteUIProvider } from '@svelteuidev/core';
const newTheme = createTheme('<class name of the new theme>', {
...useSvelteUITheme(),
// override with your styles
});
</script>
<SvelteUIProvider class={newTheme}>
<slot />
</SvelteUIProvider> |
Beta Was this translation helpful? Give feedback.
3 replies
-
OK so to get the default theme, I had to do it like: const defaultTheme = useSvelteUITheme();
const newTheme = {
...useSvelteUITheme(),
...(createTheme('new-theme', {...}) as object)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hey I'm really liking this library so far, just wanted to ask if there's a way to create a custom theme based on the default theme? When I create a custom theme it only has the tokens I provide it, but would like to have all the default values that have not been overridden. Suggestions on how I'd be able to do that?
Beta Was this translation helpful? Give feedback.
All reactions