diff --git a/.changeset/dull-trains-bake.md b/.changeset/dull-trains-bake.md new file mode 100644 index 000000000..7d71a26c4 --- /dev/null +++ b/.changeset/dull-trains-bake.md @@ -0,0 +1,5 @@ +--- +'@ryanatkn/fuz': minor +--- + +move theme Svelte helpers to `Themed.svelte` from `theme.ts` to prepare for Moss diff --git a/src/lib/Color_Scheme_Input.svelte b/src/lib/Color_Scheme_Input.svelte index 2d78a53b9..7af22803d 100644 --- a/src/lib/Color_Scheme_Input.svelte +++ b/src/lib/Color_Scheme_Input.svelte @@ -2,7 +2,8 @@ import type {Writable} from 'svelte/store'; import {swallow} from '@ryanatkn/belt/dom.js'; - import {color_schemes, type Color_Scheme, get_color_scheme} from '$lib/theme.js'; + import {color_schemes, type Color_Scheme} from '$lib/theme.js'; + import {get_color_scheme} from '$lib/Themed.svelte'; interface Props { selected_color_scheme?: Writable; diff --git a/src/lib/Theme_Input.svelte b/src/lib/Theme_Input.svelte index fe69df1fa..fce92b753 100644 --- a/src/lib/Theme_Input.svelte +++ b/src/lib/Theme_Input.svelte @@ -2,7 +2,8 @@ import type {Readable} from 'svelte/store'; import {swallow} from '@ryanatkn/belt/dom.js'; - import {get_theme, type Theme} from '$lib/theme.js'; + import type {Theme} from '$lib/theme.js'; + import {get_theme} from '$lib/Themed.svelte'; import {default_themes} from '$lib/themes.js'; interface Props { diff --git a/src/lib/Themed.svelte b/src/lib/Themed.svelte index ab7468eb7..31d048ae0 100644 --- a/src/lib/Themed.svelte +++ b/src/lib/Themed.svelte @@ -1,19 +1,30 @@