0.1.11 • Published 3 years ago

svelte-theme-provider v0.1.11

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Svelte-theme-provider

Svelte implementation of theme package in dooboo-ui.

<script>
  import { ThemeProvider } from 'svelte-theme-provider';
</script>
    
<ThemeProvider themeType={themeType}>
    <Test/>
</ThemeProvider>
<script>
    import { getContext } from 'svelte';
    
    const { Theme, toggle } = getContext('theme');

    let theme;
    let themeType;

    Theme.subscribe((value) => { theme = value.theme; themeType = value.themeType; });
</script>
0.1.10

3 years ago

0.1.11

3 years ago

0.1.2

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago