export type ThemeCommon = { primary: string; secondary: string; info: string; success: string; warning: string; error: string; /** * text color when background is primary */ textOnPrimary: string; /** * css length */ buttonRadius: string; /** * css length */ cardRadius: string; /** * css length */ inputRadius: string; /** * css length */ borderWidth: string; }; export type ThemeMode = { text: string | null; surface: string | null; cardSurface: string | null; }; export type ThemeConfig = { /** * applies to both light and dark */ common: ThemeCommon; /** * text/surface/cardSurface required (non-null hex) */ light: ThemeMode; /** * null = HSL-invert from the light counterpart */ dark: ThemeMode; };