Foundations
Tokens
Every value the kit uses, read from tokens/tokens.css when this site was built. A product never writes a raw colour, size or duration; it names a token. The samples use the tokens live, so they follow the theme and the mode chosen in the top bar.
Breakpoints cannot be read inside a media query. Write the token's value there: @media (min-width: 48rem) for md and up, @media (max-width: 47.99rem) below md. The tokens check allows only these values.
Colour
| Token | Sample | Light | Dark |
|---|---|---|---|
--kui-color-bgColour: neutral greys for surfaces, from the page background up to raised panels. | #f5f5f5 | #121212 | |
--kui-color-surface-1 | #ffffff | #181818 | |
--kui-color-surface-2 | #f0f0f0 | #1f1f1f | |
--kui-color-surface-3 | #e6e6e6 | #262626 | |
--kui-color-divider | #e6e6e6 | #262626 | |
--kui-color-border | #dcdcdc | #2a2a2a | |
--kui-color-border-strong | #b3b3b3 | #4a4a4a | |
--kui-color-border-controlThe outline of a control a person types into or ticks (text field, checkbox, radio, switch track). It keeps 3:1 against every surface, as WCAG 1.4.11 asks for the boundary of a control. | #858585 | #737373 | |
--kui-color-textColour: text, from primary to the faintest still-readable level. Faint text keeps 4.5:1 on the page and on surfaces 1 and 2, not on 3. | #171717 | #ededed | |
--kui-color-text-strong | #0a0a0a | #f2f2f2 | |
--kui-color-text-muted | #525252 | #a8a8a8 | |
--kui-color-text-faint | #666666 | #8a8a8a | |
--kui-color-accentColour: the highlight. Used only for the one call to action on a screen, the selection, focus and live state. Swap it here; no component names the colour itself. accent and accent-contrast are for filled backgrounds; accent-text is the highlight as text, an underline or a thin line, darker on light surfaces so it meets contrast. | #e8b94a | #c4a253 | |
--kui-color-accent-hover | #eec665 | #d1b066 | |
--kui-color-accent-contrast | #1c1608 | #1c1608 | |
--kui-color-accent-soft | rgba(232, 185, 74, 0.14) | rgba(196, 162, 83, 0.08) | |
--kui-color-accent-ringThe soft ring around a filled highlight button on hover. | rgba(232, 185, 74, 0.25) | rgba(196, 162, 83, 0.2) | |
--kui-color-accent-text | #7a5410 | #dcbd6e | |
--kui-color-accent-surfaceA card or a step that waits for the person: the highlight laid very lightly on the surface. | #fdf4e0 | #1c1910 | |
--kui-color-liveColour: status, muted, used only to show state. Live uses the highlight. A status colour is never the only sign of a state: it comes with an icon or a word. Warn sits 25 degrees of hue away from the accent so a warning never reads as the call to action. | #d2ae52 | #dcbd6e | |
--kui-color-ok | #2f6b45 | #7fbf95 | |
--kui-color-warn | #855222 | #e8aa74 | |
--kui-color-danger | #b42318 | #f97066 | |
--kui-color-info | #3d5f80 | #8fb0d0 | |
--kui-color-focus-ringThe focus ring. Solid, with at least 3:1 against every surface. | #7a5410 | #dcbd6e | |
--kui-color-headingColour: a product's character (2026-11-28). Each names another token by default, so a theme that says nothing looks as before. A product theme may set them (tools/kui-theme.mjs, from its seed): the heading colour, the colour of a label over a heading, the page's background and the surface of a band that sets a section apart. A theme may also add brand colours, --kui-color-brand-NAME, each with the text colour that reads on it, --kui-color-on-brand-NAME. | var(--kui-color-text-strong) | same | |
--kui-color-label | var(--kui-color-accent-text) | same | |
--kui-color-page | var(--kui-color-bg) | same | |
--kui-color-band | var(--kui-color-surface-1) | same | |
--kui-color-scrimColour: the scrim laid over the page behind a dialog, a drawer or a sheet. | rgba(10, 10, 10, 0.4) | rgba(0, 0, 0, 0.6) |
Chart colours
| Token | Sample | Light | Dark |
|---|---|---|---|
--kui-chart-1Colour: charts. Eight categorical colours in a fixed order (assign them in this order, never cycle them), each with at least 3:1 against surface 1, and neighbours that stay apart under protanopia and deuteranopia. The order and hues follow a validated reference palette for data visualisation; three light steps are darkened here to reach 3:1 on white. Then a one-hue sequential ramp from little to much, and the chart's quiet lines. tools/kui-theme.mjs checks all of them. | #2a78d6 | #3987e5 | |
--kui-chart-2 | #eb6834 | #d95926 | |
--kui-chart-3 | #01a773 | #199e70 | |
--kui-chart-4 | #c78600 | #c98500 | |
--kui-chart-5 | #dc7099 | #d55181 | |
--kui-chart-6 | #008300 | #0ca30c | |
--kui-chart-7 | #6250d6 | #9085e9 | |
--kui-chart-8 | #e34948 | #e66767 | |
--kui-chart-seq-1 | #cde2fb | #0d366b | |
--kui-chart-seq-2 | #9ec5f4 | #184f95 | |
--kui-chart-seq-3 | #6da7ec | #256abf | |
--kui-chart-seq-4 | #3987e5 | #3987e5 | |
--kui-chart-seq-5 | #256abf | #6da7ec | |
--kui-chart-seq-6 | #184f95 | #9ec5f4 | |
--kui-chart-seq-7 | #0d366b | #cde2fb | |
--kui-chart-grid | #e6e6e6 | #262626 | |
--kui-chart-axis | #b3b3b3 | #4a4a4a |
Type
| Token | Sample | Light | Dark |
|---|---|---|---|
--kui-font-displayFonts. The families are self-hosted (the @fontsource packages for the Angular apps, the kit's fonts/ folder for the plain layer). Inter covers Latin with č ć š ž đ, Cyrillic, Greek and Vietnamese. Chinese falls through to the system's own CJK face; the list names the common ones on macOS, Windows, Android and Linux, in that order. | Šđčćž Љубав 你好 | 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', 'Source Han Sans SC', sans-serif | same |
--kui-font-body | Šđčćž Љубав 你好 | 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', 'Source Han Sans SC', sans-serif | same |
--kui-font-mono | Šđčćž Љубав 你好 | 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, 'Noto Sans Mono CJK SC', monospace | same |
--kui-text-xsType scale for applications. | Ag Čć Жж 汉字 | 0.75rem | same |
--kui-text-sm | Ag Čć Жж 汉字 | 0.8125rem | same |
--kui-text-md | Ag Čć Жж 汉字 | 0.875rem | same |
--kui-text-lg | Ag Čć Жж 汉字 | 1rem | same |
--kui-text-xl | Ag Čć Жж 汉字 | 1.25rem | same |
--kui-text-2xl | Ag Čć Жж 汉字 | 1.75rem | same |
--kui-text-3xl | Ag Čć Жж 汉字 | 2.25rem | same |
--kui-text-readingType scale for websites and reading pages. The display sizes grow with the viewport between a phone and a wide screen. Body text of an article is 17 pixels. | Ag Čć Жж 汉字 | 1.0625rem | same |
--kui-text-lead | Ag Čć Жж 汉字 | clamp(1.0625rem, 1rem + 0.4vw, 1.25rem) | same |
--kui-text-display-sm | Ag Čć Жж 汉字 | clamp(1.625rem, 1.3rem + 1.6vw, 2.25rem) | same |
--kui-text-display-md | Ag Čć Жж 汉字 | clamp(1.875rem, 1.3rem + 2.8vw, 3rem) | same |
--kui-text-display-lg | Ag Čć Жж 汉字 | clamp(2.375rem, 1.2rem + 5.4vw, 4.5rem) | same |
--kui-text-display-xl | Ag Čć Жж 汉字 | clamp(2.625rem, 1rem + 7.4vw, 5.5rem) | same |
--kui-text-display-heroThe first screen of a public site: a heading of 34 pixels on a phone that grows to 64 on a wide screen, and a large figure (a phone number, a price) of 28 to 40 pixels. | Ag Čć Жж 汉字 | clamp(2.125rem, 1.375rem + 3.07vw, 4rem) | same |
--kui-text-figure | Ag Čć Жж 汉字 | clamp(1.75rem, 1.45rem + 1.23vw, 2.5rem) | same |
--kui-leading-noneLine height, letter spacing and the measure (line length) of text. | 1 | same | |
--kui-leading-tight | 1.1 | same | |
--kui-leading-snug | 1.3 | same | |
--kui-leading-normal | 1.5 | same | |
--kui-leading-relaxed | 1.65 | same | |
--kui-tracking-display | -0.04em | same | |
--kui-tracking-tight | -0.02em | same | |
--kui-tracking-wide | 0.08em | same | |
--kui-tracking-headingHeadings: their letter spacing, the tighter one of the largest steps, and their weight. A theme whose display font asks for other values sets them (the font catalog, tokens/fonts.json). | var(--kui-tracking-tight) | same | |
--kui-tracking-heading-lg | var(--kui-tracking-display) | same | |
--kui-leading-display | 1.05 | same | |
--kui-measure | 68ch | same | |
--kui-measure-narrow | 45ch | same | |
--kui-weight-regularFont weights. Inter is variable, so the in-between weights the house uses (550 for controls, 650 for headings) render exactly. | Konstruktor | 400 | same |
--kui-weight-medium | Konstruktor | 550 | same |
--kui-weight-semibold | Konstruktor | 600 | same |
--kui-weight-bold | Konstruktor | 650 | same |
--kui-weight-heavy | Konstruktor | 700 | same |
--kui-weight-heading | Konstruktor | var(--kui-weight-bold) | same |
Space and layout
| Token | Sample | Light | Dark |
|---|---|---|---|
--kui-space-1Spacing. | 0.25rem | same | |
--kui-space-2 | 0.5rem | same | |
--kui-space-3 | 0.75rem | same | |
--kui-space-4 | 1rem | same | |
--kui-space-5 | 1.25rem | same | |
--kui-space-6 | 1.5rem | same | |
--kui-space-7 | 2rem | same | |
--kui-space-8 | 3rem | same | |
--kui-space-9 | 4rem | same | |
--kui-space-10 | 6rem | same | |
--kui-space-sectionThe space between sections of a website page, and the side gutter of a page. Both grow with the viewport. | clamp(4rem, 2.5rem + 6vw, 7rem) | same | |
--kui-gutter | clamp(1rem, 0.6rem + 1.6vw, 1.5rem) | same | |
--kui-breakpoint-smBreakpoints and container widths. Custom properties cannot be read inside a media query, so stylesheets write a breakpoint's value in their @media rules; tools/check-tokens-only.mjs allows only these values there (and each one less 0.01rem, for max-width). sm is a large phone, md a tablet, lg a laptop, xl a desktop. | 40rem | same | |
--kui-breakpoint-md | 48rem | same | |
--kui-breakpoint-lg | 64rem | same | |
--kui-breakpoint-xl | 80rem | same | |
--kui-container-sm | 40rem | same | |
--kui-container-md | 48rem | same | |
--kui-container-lg | 64rem | same | |
--kui-container-xl | 75rem | same | |
--kui-container-prose | 42rem | same |
Shape and density
| Token | Sample | Light | Dark |
|---|---|---|---|
--kui-radius-1Corner radius. The default scale; a theme may set sharp or round. | 0.25rem | same | |
--kui-radius-2 | 0.375rem | same | |
--kui-radius-3 | 0.625rem | same | |
--kui-radius-4 | 0.75rem | same | |
--kui-radius-pillFully rounded ends, for buttons and pills. | 999px | same | |
--kui-radius-buttonThe corner of a button in the plain layer: a pill by default, the theme's radius 2 in the sharp scale. | 999px | same | |
--kui-control-smDensity: the height of controls. The default matches the Angular button (36 pixels at md). A theme may set compact or comfortable. | 1.75rem | same | |
--kui-control-md | 2.25rem | same | |
--kui-control-lg | 2.5rem | same | |
--kui-control-pad | 1rem | same | |
--kui-target-minTouch targets. WCAG 2.5.8 asks for 24 pixels; on a phone or a touch screen every control in the plain layer is at least 44 pixels high, through --kui-touch-min, set below. In CSS pixels (2026-11-30): an app whose root text is smaller than 16 pixels (the editor's is 14) would get 39 from a rem length. | 1.5rem | same | |
--kui-touch-target | 44px | same | |
--kui-touch-min | 0rem | same | |
--kui-focus-widthFocus: the ring every focusable element shows on keyboard focus. | 2px | same | |
--kui-focus-offset | 2px | same | |
--kui-icon-smIcons. | 1rem | same | |
--kui-icon-md | 1.25rem | same | |
--kui-icon-lg | 1.5rem | same |
Elevation, layers and motion
| Token | Sample | Light | Dark |
|---|---|---|---|
--kui-shadow-1Elevation. | 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.04) | 0 1px 2px rgba(0, 0, 0, 0.4) | |
--kui-shadow-2 | 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06) | 0 4px 14px rgba(0, 0, 0, 0.45) | |
--kui-shadow-3 | 0 16px 40px rgba(0, 0, 0, 0.14), 0 4px 10px rgba(0, 0, 0, 0.06) | 0 18px 44px rgba(0, 0, 0, 0.55) | |
--kui-opacity-disabledOpacity of a disabled control, and the blur behind an overlay. | 0.55 | same | |
--kui-blur-overlay | 2px | same | |
--kui-z-raisedLayers, from the page up. Dialogs, menus and popovers in the plain layer use the browser's top layer, so these order what is not in it. | 1 | same | |
--kui-z-sticky | 100 | same | |
--kui-z-header | 200 | same | |
--kui-z-dropdown | 1000 | same | |
--kui-z-drawer | 1200 | same | |
--kui-z-dialog | 1300 | same | |
--kui-z-popover | 1400 | same | |
--kui-z-toast | 1500 | same | |
--kui-z-tooltip | 1600 | same | |
--kui-motion-fastMotion. Under prefers-reduced-motion every duration is cut to zero by the base styles. | 120ms | same | |
--kui-motion-base | 180ms | same | |
--kui-motion-slow | 280ms | same | |
--kui-motion-slower | 420ms | same | |
--kui-ease | cubic-bezier(0.2, 0, 0, 1) | same | |
--kui-ease-out | cubic-bezier(0, 0, 0.2, 1) | same | |
--kui-ease-in | cubic-bezier(0.4, 0, 1, 1) | same |