Skip to the content
Konstruktor UI

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

TokenSampleLightDark
--kui-color-bg
Colour: 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-control
The 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-text
Colour: 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-accent
Colour: 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-softrgba(232, 185, 74, 0.14)rgba(196, 162, 83, 0.08)
--kui-color-accent-ring
The 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-surface
A card or a step that waits for the person: the highlight laid very lightly on the surface.
#fdf4e0#1c1910
--kui-color-live
Colour: 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-ring
The focus ring. Solid, with at least 3:1 against every surface.
#7a5410#dcbd6e
--kui-color-heading
Colour: 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-labelvar(--kui-color-accent-text)same
--kui-color-pagevar(--kui-color-bg)same
--kui-color-bandvar(--kui-color-surface-1)same
--kui-color-scrim
Colour: 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

TokenSampleLightDark
--kui-chart-1
Colour: 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

TokenSampleLightDark
--kui-font-display
Fonts. 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-serifsame
--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-serifsame
--kui-font-monoŠđčćž Љубав 你好'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, 'Noto Sans Mono CJK SC', monospacesame
--kui-text-xs
Type scale for applications.
Ag Čć Жж 汉字0.75remsame
--kui-text-smAg Čć Жж 汉字0.8125remsame
--kui-text-mdAg Čć Жж 汉字0.875remsame
--kui-text-lgAg Čć Жж 汉字1remsame
--kui-text-xlAg Čć Жж 汉字1.25remsame
--kui-text-2xlAg Čć Жж 汉字1.75remsame
--kui-text-3xlAg Čć Жж 汉字2.25remsame
--kui-text-reading
Type 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.0625remsame
--kui-text-leadAg Čć Жж 汉字clamp(1.0625rem, 1rem + 0.4vw, 1.25rem)same
--kui-text-display-smAg Čć Жж 汉字clamp(1.625rem, 1.3rem + 1.6vw, 2.25rem)same
--kui-text-display-mdAg Čć Жж 汉字clamp(1.875rem, 1.3rem + 2.8vw, 3rem)same
--kui-text-display-lgAg Čć Жж 汉字clamp(2.375rem, 1.2rem + 5.4vw, 4.5rem)same
--kui-text-display-xlAg Čć Жж 汉字clamp(2.625rem, 1rem + 7.4vw, 5.5rem)same
--kui-text-display-hero
The 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-figureAg Čć Жж 汉字clamp(1.75rem, 1.45rem + 1.23vw, 2.5rem)same
--kui-leading-none
Line height, letter spacing and the measure (line length) of text.
1same
--kui-leading-tight1.1same
--kui-leading-snug1.3same
--kui-leading-normal1.5same
--kui-leading-relaxed1.65same
--kui-tracking-display-0.04emsame
--kui-tracking-tight-0.02emsame
--kui-tracking-wide0.08emsame
--kui-tracking-heading
Headings: 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-lgvar(--kui-tracking-display)same
--kui-leading-display1.05same
--kui-measure68chsame
--kui-measure-narrow45chsame
--kui-weight-regular
Font weights. Inter is variable, so the in-between weights the house uses (550 for controls, 650 for headings) render exactly.
Konstruktor400same
--kui-weight-mediumKonstruktor550same
--kui-weight-semiboldKonstruktor600same
--kui-weight-boldKonstruktor650same
--kui-weight-heavyKonstruktor700same
--kui-weight-headingKonstruktorvar(--kui-weight-bold)same

Space and layout

TokenSampleLightDark
--kui-space-1
Spacing.
0.25remsame
--kui-space-20.5remsame
--kui-space-30.75remsame
--kui-space-41remsame
--kui-space-51.25remsame
--kui-space-61.5remsame
--kui-space-72remsame
--kui-space-83remsame
--kui-space-94remsame
--kui-space-106remsame
--kui-space-section
The 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-gutterclamp(1rem, 0.6rem + 1.6vw, 1.5rem)same
--kui-breakpoint-sm
Breakpoints 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.
40remsame
--kui-breakpoint-md48remsame
--kui-breakpoint-lg64remsame
--kui-breakpoint-xl80remsame
--kui-container-sm40remsame
--kui-container-md48remsame
--kui-container-lg64remsame
--kui-container-xl75remsame
--kui-container-prose42remsame

Shape and density

TokenSampleLightDark
--kui-radius-1
Corner radius. The default scale; a theme may set sharp or round.
0.25remsame
--kui-radius-20.375remsame
--kui-radius-30.625remsame
--kui-radius-40.75remsame
--kui-radius-pill
Fully rounded ends, for buttons and pills.
999pxsame
--kui-radius-button
The corner of a button in the plain layer: a pill by default, the theme's radius 2 in the sharp scale.
999pxsame
--kui-control-sm
Density: the height of controls. The default matches the Angular button (36 pixels at md). A theme may set compact or comfortable.
1.75remsame
--kui-control-md2.25remsame
--kui-control-lg2.5remsame
--kui-control-pad1remsame
--kui-target-min
Touch 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.5remsame
--kui-touch-target44pxsame
--kui-touch-min0remsame
--kui-focus-width
Focus: the ring every focusable element shows on keyboard focus.
2pxsame
--kui-focus-offset2pxsame
--kui-icon-sm
Icons.
1remsame
--kui-icon-md1.25remsame
--kui-icon-lg1.5remsame

Elevation, layers and motion

TokenSampleLightDark
--kui-shadow-1
Elevation.
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-20 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-30 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-disabled
Opacity of a disabled control, and the blur behind an overlay.
0.55same
--kui-blur-overlay2pxsame
--kui-z-raised
Layers, 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.
1same
--kui-z-sticky100same
--kui-z-header200same
--kui-z-dropdown1000same
--kui-z-drawer1200same
--kui-z-dialog1300same
--kui-z-popover1400same
--kui-z-toast1500same
--kui-z-tooltip1600same
--kui-motion-fast
Motion. Under prefers-reduced-motion every duration is cut to zero by the base styles.
120mssame
--kui-motion-base180mssame
--kui-motion-slow280mssame
--kui-motion-slower420mssame
--kui-easecubic-bezier(0.2, 0, 0, 1)same
--kui-ease-outcubic-bezier(0, 0, 0.2, 1)same
--kui-ease-incubic-bezier(0.4, 0, 1, 1)same