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-muteRed
--redon --red-on --red-soft--red-textOrange
--orangeon --orange-on --orange-soft--orange-textYellow
--yellowon --yellow-on --yellow-soft--yellow-textGreen
--greenon --green-on --green-soft--green-textBlue
--blueon --blue-on --blue-soft--blue-textViolet
--violeton --violet-on --violet-soft--violet-textColour 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
--con --c-on --c-soft--c-text--c2Each tile marked with data-color
--c--c--c--c--c--cType
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.4rounded-sm× 0.6rounded-md× 0.8rounded-xl× 1.4rounded-2xl× 1.8rounded-3xl× 2.2rounded-4xl× 2.6Outline, 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