mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore(examples): extract Theme component and persist to localStorage
This commit is contained in:
parent
67c01e9148
commit
f9b2f69966
3 changed files with 64 additions and 3 deletions
|
@ -15,10 +15,10 @@
|
|||
import Header from "./components/Header.svelte";
|
||||
import Theme from "./components/Theme.svelte";
|
||||
|
||||
let theme = "white";
|
||||
let theme = "g10";
|
||||
</script>
|
||||
|
||||
<Theme theme="{theme}">
|
||||
<Theme persist bind:theme>
|
||||
<Header />
|
||||
<Content style="background: none; padding: 1rem">
|
||||
<Grid>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue