We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a30ebd1 commit 457cb4eCopy full SHA for 457cb4e
packages/svelteui-core/src/styles/theme/SvelteUIProvider/SvelteUIProvider.svelte
@@ -37,12 +37,13 @@
37
const forwardEvents = createEventForwarder(get_current_component());
38
const DEFAULT_THEME = useSvelteUITheme();
39
40
- let currentTheme: string | null = null;
+ let currentTheme: string | null = null;
41
$: {
42
- if (themeObserver !== null)
43
- {
44
- currentTheme = themeObserver === 'light' ? (mergedTheme as unknown as string) : (dark as string);
45
- }
+ if (themeObserver !== null) {
+ currentTheme = themeObserver === 'light'
+ ? (mergedTheme as unknown as string)
+ : (dark as string);
46
+ }
47
}
48
49
$: if (withGlobalStyles) SvelteUIGlobalCSS();
0 commit comments