diff --git a/docs/src/components/Preview.svelte b/docs/src/components/Preview.svelte index a241d062..80e9c01a 100644 --- a/docs/src/components/Preview.svelte +++ b/docs/src/components/Preview.svelte @@ -7,8 +7,10 @@ import { CodeSnippet, Button } from "carbon-components-svelte"; import Launch16 from "carbon-icons-svelte/lib/Launch16"; import copy from "clipboard-copy"; - import { url, beforeUrlChange } from "@sveltech/routify"; + import { url } from "@sveltech/routify"; import { theme } from "../store"; + + $: themedSrcUrl = $url(`${src}?theme=${$theme}`);