Skip to content

Commit aa2e97f

Browse files
authored
docs(theme): use Theme component from library (#1700)
1 parent 14f2396 commit aa2e97f

File tree

2 files changed

+3
-32
lines changed

2 files changed

+3
-32
lines changed

docs/src/components/Theme.svelte

-30
This file was deleted.

docs/src/pages/_layout.svelte

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
SideNav,
1313
SideNavItems,
1414
SideNavMenuItem,
15+
Theme,
1516
Tag,
1617
} from "carbon-components-svelte";
1718
import LogoGithub from "carbon-icons-svelte/lib/LogoGithub.svelte";
18-
import Theme from "../components/Theme.svelte";
19+
import { theme } from "../store";
1920
2021
const deprecated = [];
2122
const new_components = [];
@@ -38,7 +39,7 @@
3839
<!-- routify:options bundle=true -->
3940
<svelte:window bind:innerWidth />
4041

41-
<Theme persist>
42+
<Theme persist bind:theme="{$theme}">
4243
<Header
4344
aria-label="Navigation"
4445
href="{$url('/')}"

0 commit comments

Comments
 (0)