brand | string | undefined | Not set | Brand colour, any CSS colour; sets --fui-seed-brand |
childrenRequired | React.ReactNode | Not set | Application content |
className | string | undefined | Not set | Class for the nested scope element; ignored at the root |
danger | string | undefined | Not set | Danger colour; sets --fui-seed-danger |
defaultMode | ThemeMode | undefinedlightdarksystem | system | Default theme mode for uncontrolled usage |
font | string | undefined | Not set | Sans-serif font stack; sets --fui-font-sans |
info | string | undefined | Not set | Info colour; sets --fui-seed-info |
mode | ThemeMode | undefinedlightdarksystem | Not set | Controlled theme mode |
neutral | ThemeNeutral | undefined | paper | The neutral every plane, ink and line is a lightness step of: paper or any CSS colour; sets --fui-seed-neutral (chroma capped at 0.04) |
onModeChange | ((mode: ThemeMode) => void) | undefined | Not set | Callback when mode changes |
pressScale | number | undefined | Not set | Scale an action takes while pressed, 1 turns it off; sets --fui-press-scale |
primaryChrome | ThemeChrome | undefinedaccentink | accent | Primary action chrome: the accent ramp, or ink on the page plane; sets data-chrome |
radius | string | number | undefined | Not set | Base radius; a number is pixels; sets --fui-radius |
scale | number | undefined | 1 | Multiplier on every measurement; sets --fui-scale |
storageKey | string | undefined | fui-theme | localStorage key for persistence. A nested Theme persists only when given one |
style | React.CSSProperties | undefined | Not set | Style for the nested scope element; ignored at the root |
success | string | undefined | Not set | Success colour; sets --fui-seed-success |
ThemeScript.brand | string | undefined | Not set | Brand colour, any CSS colour. Sets `--fui-seed-brand`. |
ThemeScript.danger | string | undefined | Not set | Danger colour. Sets `--fui-seed-danger`. |
ThemeScript.defaultMode | ThemeMode | undefinedlightdarksystem | Not set | Mode used when nothing is stored, or storage is blocked (default: 'system'). |
ThemeScript.font | string | undefined | Not set | Sans-serif font stack. Sets `--fui-font-sans`. |
ThemeScript.info | string | undefined | Not set | Info colour. Sets `--fui-seed-info`. |
ThemeScript.neutral | ThemeNeutral | undefined | Not set | The neutral every plane, ink and line is a lightness step of: `"paper"` or
any CSS colour. Sets `--fui-seed-neutral`; chroma above 0.04 is capped so
text keeps its contrast. |
ThemeScript.nonce | string | undefined | Not set | Content Security Policy nonce for the inline script. |
ThemeScript.pressScale | number | undefined | Not set | Scale an action takes while pressed; 1 turns it off. Sets `--fui-press-scale`. |
ThemeScript.primaryChrome | ThemeChrome | undefinedaccentink | Not set | Primary action chrome. Sets the `data-chrome` switch. |
ThemeScript.radius | string | number | undefined | Not set | Base radius; a number, or a string holding only a number, is pixels. Sets `--fui-radius`. |
ThemeScript.scale | number | undefined | Not set | Multiplier on every measurement (1 is the default). Sets `--fui-scale`. |
ThemeScript.storageKey | string | undefined | Not set | localStorage key the root `Theme` persists to (default: 'fui-theme'). |
ThemeScript.success | string | undefined | Not set | Success colour. Sets `--fui-seed-success`. |
ThemeScript.warning | string | undefined | Not set | Warning colour. Sets `--fui-seed-warning`. |
warning | string | undefined | Not set | Warning colour; sets --fui-seed-warning |