This commit is contained in:
hobbes7878 2025-05-21 10:02:01 +01:00
parent 6535194a73
commit 49096d43a4
Failed to extract signature
2 changed files with 3 additions and 3 deletions

View file

@ -50,5 +50,5 @@ export interface Theme {
export interface CustomTheme { export interface CustomTheme {
colour?: Partial<Colour>; colour?: Partial<Colour>;
font?: Partial<CustomFont>; font?: Partial<CustomFont>;
customProperties?: unknown; [customProperty: string]: unknown;
} }

View file

@ -14,7 +14,7 @@
import mergeThemes from './utils/merge.js'; import mergeThemes from './utils/merge.js';
// Types // Types
import type { CustomTheme } from './@types/component'; import type { CustomTheme, Theme } from './@types/component';
import type { Snippet } from 'svelte'; import type { Snippet } from 'svelte';
type Base = 'light' | 'dark'; type Base = 'light' | 'dark';
@ -22,7 +22,7 @@
/** Custom theme object. Can be a partial theme with just /** Custom theme object. Can be a partial theme with just
* what you want to change. * what you want to change.
*/ */
theme?: CustomTheme; theme?: CustomTheme | Theme;
/** /**
* Base theme is one of `light` or `dark` and will be merged * Base theme is one of `light` or `dark` and will be merged
* with your custom theme to fill in any values you don't * with your custom theme to fill in any values you don't