renames Theme and CustomTheme types #326

This commit is contained in:
MinamiFunakoshiTR 2025-07-14 10:20:05 -04:00
parent 66998980f7
commit 8d3e4b50ea
Failed to extract signature
2 changed files with 4 additions and 4 deletions

View file

@ -42,12 +42,12 @@ export interface CustomFont {
size?: Partial<FontSize>;
}
export interface Theme {
export interface ThemeConfig {
colour: Colour;
font: Font;
}
export interface CustomTheme {
export interface CustomThemeConfig {
colour?: Partial<Colour>;
font?: Partial<CustomFont>;
[customProperty: string]: unknown;

View file

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