mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore(examples): add sapper set-up
This commit is contained in:
parent
c1b98ced95
commit
fbb0c2d413
17 changed files with 2677 additions and 0 deletions
|
@ -47,6 +47,7 @@
|
|||
afterUpdate(() => {
|
||||
if (isValidTheme(theme)) {
|
||||
document.documentElement.setAttribute("theme", theme);
|
||||
|
||||
if (persist) {
|
||||
localStorage.setItem(persistKey, theme);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue