renames Theme and CustomTheme types #326
This commit is contained in:
parent
66998980f7
commit
8d3e4b50ea
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue