/** * Uploader page theme system. A theme is a flat map of colour tokens; presets * provide complete maps and the settings page lets users override a small, * curated subset of them (see EDITABLE_TOKENS) plus the font, logo and station * name. Tokens are applied as CSS custom properties (--rcu-*) on the uploader * page wrapper. */ export interface ThemeTokens { /** Page background gradient, light end. */ pageBg: string; /** Page background gradient, dark end. */ pageBgDeep: string; /** Main text / primary UI colour. */ text: string; /** Secondary text. */ textDim: string; /** Gradient partner for text on headings and buttons. */ contrast: string; /** Card background. */ card: string; /** Card / input border. */ cardBorder: string; /** Input background. */ inputBg: string; /** Sunken areas (log background, progress track). */ sunk: string; /** Success. */ green: string; /** Warning / in-progress. */ amber: string; /** Error / destructive. */ red: string; /** Mixcloud accent. */ mixcloud: string; /** SoundCloud accent. */ soundcloud: string; /** Text on filled buttons and step badges. */ buttonText: string; /** Strong shadow colour (with alpha). */ shadow: string; /** Soft shadow / focus ring colour (with alpha). */ shadowSoft: string; /** Vinyl record groove colours. */ vinylDark: string; vinylMid: string; } /** * The only tokens the settings page exposes. Deliberately short — everything * else follows the preset — and deliberately all plain hex, so every one of * them gets a real colour picker rather than a read-only swatch. */ export declare const EDITABLE_TOKENS: { key: keyof ThemeTokens; label: string; hint: string; }[]; export declare const EDITABLE_TOKEN_KEYS: (keyof ThemeTokens)[]; /** Drops any stored override that is no longer user-editable. */ export declare const pickEditableOverrides: (overrides: Partial | null | undefined) => Partial; export interface FontOption { label: string; /** CSS font-family stack. */ stack: string; /** Google Fonts css2 `family=` value, or null for the system stack. */ google: string | null; } /** System default plus a handful of Google Fonts, loaded on demand. */ export declare const FONTS: Record; export declare const DEFAULT_FONT = "system"; export declare const resolveFont: (theme: Partial | null | undefined) => FontOption; /** Google Fonts stylesheet URL for a font, or null when none is needed. */ export declare const googleFontHref: (font: FontOption) => string | null; /** * Loads a Google Fonts stylesheet on demand. Links are keyed by href and left * in once added, so switching back and forth in settings is instant and * nothing is fetched twice. */ export declare const useGoogleFont: (href: string | null) => void; export declare const PRESETS: Record; export interface ThemeSettings { preset: string; overrides: Partial; /** Key into FONTS. */ fontFamily: string; logoUrl: string | null; stationName: string; } /** Effective tokens: preset (falling back to paper) + user overrides. */ export declare const resolveTokens: (theme: Partial | null | undefined) => ThemeTokens; /** CSS custom properties for the uploader wrapper. */ export declare const tokensToCssVars: (tokens: ThemeTokens) => Record; /** Colour vars plus the font var, ready to spread onto a wrapper's style. */ export declare const themeToCssVars: (theme: Partial | null | undefined) => Record;