UI kit

Style
Mode
Accent
Second

Tokens

Every colour, type set and shape the three styles fill in. Switch the style above to see each one. Every sample on this page is drawn with the Tailwind classes from @mtkl6/tokens/tailwind.css.

Colours

The page colours, then the six named colours. Solid is a fill with its own text colour. Soft is a quiet fill that only ink sits on. Text is the colour as letters on the paper.

Page

--paper
--sheet
--ink
--mute
--rule
--field-line
--card-fill
--card-mute

Red

Aa
--redon --red-on
--red-soft
Aa
--red-text

Orange

Aa
--orangeon --orange-on
--orange-soft
Aa
--orange-text

Yellow

Aa
--yellowon --yellow-on
--yellow-soft
Aa
--yellow-text

Green

Aa
--greenon --green-on
--green-soft
Aa
--green-text

Blue

Aa
--blueon --blue-on
--blue-soft
Aa
--blue-text

Violet

Aa
--violeton --violet-on
--violet-soft
Aa
--violet-text

Colour in force

What components read. It is the project's accent, set with the switches above, unless an element sets data-color. Then that element and everything in it take the named colour.

Here

Aa
--con --c-on
--c-soft
Aa
--c-text
--c2

Each tile marked with data-color

--c
--c
--c
--c
--c
--c

Type

Each style sets its own fonts, weights and widths. These classes take all of a role's settings at once and leave the size to the component.

type-displayHeadings and card titles. A heading's size is a base times --display-scale.

Ask, pick up, hand back

type-bodyBody text and form fields.

Ines has the hammer drill until Friday. After that it goes back on the list, and anyone on the street can ask for it.

type-labelButton labels and badges.

List a tool

font-handHandwritten notes. Outside Desk it is the text font.

she also has the ladder

font-monoCode, such as a step panel's line. Fragment Mono in every style.

beep "build done"

Shape

Corners, outlines and how far they slip, the shadow and the page texture. A style can turn any of them off with a zero or none.

Corners

rounded-lgSurfaces, --radius
rounded-fieldInputs, --radius-field
rounded-buttonButtons and badges, --radius-button

The scale, as multiples of --radius

rounded-xs× 0.4
rounded-sm× 0.6
rounded-md× 0.8
rounded-xl× 1.4
rounded-2xl× 1.8
rounded-3xl× 2.2
rounded-4xl× 2.6

Outline, offset, lift and texture

--line , --offset , --blend
shadow-lift--lift
--texture at --texture-size

shadcn names

The names stock shadcn components read. Each one points at a token, so a component added with shadcn add picks up the colours, corners and fonts. It still loses what the kit removes from Tailwind: the stock shadows, white, black and the stock palette. The kit's own components are restyled for that. shadcn's --accent is the fill of a hovered menu item, not the project's colour.

--background
--foreground
--card
--card-foreground
--popover
--popover-foreground
--primary
--primary-foreground
--secondary
--secondary-foreground
--muted
--muted-foreground
--accent
--accent-foreground
--destructive
--destructive-foreground
--border
--input
--ring