chore(examples): extract Theme component and persist to localStorage

This commit is contained in:
Eric Liu 2020-09-07 14:09:59 -07:00
commit f9b2f69966
3 changed files with 64 additions and 3 deletions

View file

@ -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>