Skip to content
Konstruktor UI 1.0.0

A drawing of every sRGB colour as a solid. It is cut flat at the lightness of the accent colour, and the accent is marked on the cut. With a keyboard, change the colour with the sliders in the colour controls.

Konstruktor UI · the design system

Pick one colour. The whole site follows.

Drag the solid. It holds every sRGB colour. This site is built on the kit, so it takes each new theme while you drag. The theme is derived in your browser by the same code as the command line, and every pair of text or control and background is measured against WCAG 2.2 AA.

OKLCH
0.72 0.11 88
Pairs at AA
106 of 106
Lowest text contrast
4.5:1

See the proof

Drag sideways for hue and up or down for lightness. Pull the mark for chroma. Or press any colour.

Components

Every part here is the real component

These are the kit's own components, not pictures of them. Use them. They take your theme because they read tokens and nothing else. The reference has a page with examples for each of the 76 components.

Actions

Edit Duplicate

States

Draft New Paid Due in 3 days Failed In review
Running Done Waiting Failed
Uploading 14 documents9 of 14

Inputs

EUR

The amount without tax.

Period
40
Your rating of the service

Charts

Income per month, last year and this year
MonthLast yearThis year
Jan1820021400
Feb1760022900
Mar2010024800
Apr1940023600
May2180026100
Jun2250027900
Jul1990025200
Aug1680021700
Sep2310029400
Oct2460031200
Nov2530032800
Dec2790035100

Numbers

Answered today1 284
Up+12 %since yesterday
72 %
45 %

Messages

Bank account connected

Payments appear here within a minute.

A warning keeps its own colour

When your accent comes close to it, the warning turns away.

Finding the way

Waiting for a person

A card on the accent surface asks for a decision. Its text and its link are measured on that surface too: see the pairs.

All components, with their markup and rules

Recipes

Whole screens in your theme

The kit ships 11 recipes: complete pages to start a product from. The frame below is one of them, loaded from the reference and drawn in the theme you chose. Change the colour and it changes with the rest.

Recipe in the frame
Open the recipe

All 11 recipes in the reference

Proof

Every pair, measured

For each mode the generator measures 53 pairs of text or control and background that the components draw. The numbers below are for the theme on screen now and change as you drag. A colour whose theme has a pair under AA is never shown: the studio moves it to the nearest colour that passes, and says so.

Pairs at or above their minimum106 of 106
Lowest text contrast, needs 4.5:14.5:1
Lowest control contrast, needs 3:13:1

What the generator changed to get there

    The same numbers as a table, with the name of each pair
    The pairs the generator checks, with the measured contrast in light and in dark
    PairLightDarkNeeds

    Contrast is the WCAG 2 ratio of the two colours. Text needs 4.5:1. The outline of a control, a focus ring and a checked control need 3:1. The check is the function checkMode in ui/tools/kui-theme-core.mjs, the same one the command line runs.

    Take it

    Take the theme with you

    A theme is a small seed file. The stylesheet below is derived from it. It is the same text that node ui/tools/kui-theme.mjs --seed theme.json --out theme.css writes for this seed.

    theme.json
    theme.css

    Start

    Start a product on it

    The kit is plain CSS and JavaScript: one stylesheet, one script, the fonts and the icons. It has no framework and no build step, and it loads nothing from another site.

    1. Copy the starter

      A new product starts from the folder templates/product-web/ of the Konstruktor engine repository. Its tools/kit-update.sh copies the kit into kit/ and writes down which version it is.

    2. Three lines in every page

      <html lang="en" data-kui-theme="gold">
      <link rel="stylesheet" href="kit/kui.css">
      <script src="kit/kui.js" defer></script>

      Add a skip link as the first element of the body.

    3. Bring your theme

      Save the seed from this page as theme/theme.json and run the starter's tools/theme.sh. It writes the stylesheet and fails if any pair is under AA. Then build pages from the recipes and the components.