mytril
Version:
Mytril Svelte library component for rapidly building modern websites based on Svelte and Sveltekit
35 lines (34 loc) • 799 B
TypeScript
export type Themes = Array<string>;
export type Colors = {
[key: string]: {
[key: string]: string | {
[key: string]: string | {
[key: string]: string;
};
};
};
};
export interface MytrilDefaultConfig {
themes: Themes;
colorScheme: 'system' | 'dark' | 'light';
defaultTheme: string;
colors: Colors;
display: {
mobileBreakpoint: string;
thresholds: {
[key: string]: number | string;
};
};
}
export interface MytrilConfig {
themes?: Themes;
colorScheme?: 'system' | 'dark' | 'light';
defaultTheme?: string;
colors?: Colors;
display?: {
mobileBreakpoint?: string;
thresholds?: {
[key: string]: number | string;
};
};
}