import { Checkbox } from "@/components/cobalt/checkbox" · source: components/cobalt/checkbox.tsx
1 state
409variants
4templates
2themes
Sign in to unlock
Brand guide
26 rules · from STYLE.md
A drafting table.
Light is pencil on white paper: pure grey structure, a near-black key, hard 2px shadows and a 24px squared canvas under line art. Dark is a real blueprint: cobalt paper, pale grid, white lines. Blue goes only where the eye should land.
Rules
Colour8 rules
01
Structure is pure grey.
Page uses bg-background (#f0f0f0), cards use bg-card. Text uses text-foreground, text-muted-foreground, text-draft-note; frames use border-draft-frame. In dark the same tokens become cobalt blueprint paper — never hard-code a colour.
02
Blue goes only where the eye should land.
Current place, selected item, links, focus and the one highlighted line. Every screen has at least one spot, never blue structure, and the main button is never blue. Code and tooltips follow the theme.
03
Blue never carries small text.
--cd-blue (#1d9bf0) only reaches 3:1 on white. Links use text-blue-text; text on the soft fill uses text-soft-foreground.
04
Selected and current items use a full cobalt frame.
Use .cd-blueprint-mark or cd-mark-soft for sidebar items, list/table/chat rows, pagination and chosen radio cards. Pair with a 1.5px full blue perimeter; never use a left vertical bar.
05
A solid blue block is never flat.
Checked boxes, on Switches, logos and small marks use .cd-gloss or cd-fill-gloss: subtle gradient, top highlight and blue edge (white reaches 4.5:1). Never a big button.
06
Errors use red, never blue.
Use text-danger-fg, --cd-danger-soft and --cd-danger-fill under white text. Status uses success / warning / destructive, always with a dot or icon and a word.
07
Charts are the only rainbow.
A single series uses var(--cd-draw) (blue pencil in light, white ink on the blueprint). Multi-series take --chart-1…5 in order; 6th+ merges into "Other". Text never uses chart colours.
08
Remove decorative effects; no left accent bars.
Remove soft/coloured shadows, glows, glass, neon, rainbow accents, big gradients, coloured headers/sidebars, gradient text, any left accent bars (on nav items, cards, alerts, blockquotes, lists, timelines or rows), UI emoji and hard-coded colours. Only the key and blue block have gradients.
Actions4 rules
09
One primary key per screen.
The single most important action is <Button> (default: near-black key, white paper on the blueprint, sinks when pressed). Everything else is secondary (grey block with 2px hard shadow), ghost or outline (1.5px ink line).
10
Destructive actions live in a danger zone.
Put destructive actions in an Alert variant="destructive" with Button variant="destructive" and confirm in a Dialog. No big red buttons in the middle of forms.
11
Filters and view switches use Segment.
A grey groove with a white block standing in it, not a row of coloured chips. Native tablists with their own keyboard handling can keep native buttons styled as Segment.
12
Motion is short and mechanical.
Use ease-cd-snap and duration-(--cd-quick) (0.11s). Keys sink, nothing bounces, and motion-reduce turns motion off.
Surfaces6 rules
13
Radii follow the 3 : 1.5 : 1 drafting scale.
16.8px cards/dialogs/sheets; 8.4px inputs/grooves/menus/popovers/toasts/code; 5.6px buttons/rows/tabs/badges/avatars; 3px checkboxes and thumbs. Write px (rounded-[8.4px]), never rounded-xl.
14
Zero-blur elevation has two layers.
Seated surfaces use shadow-cd-cut or shadow-cd-plate (1.5px frame + 2px hard step, zero blur). Floating overlays use .cd-overlay (1.5px ink perimeter + 4px hard cut). Sunken wells use --cd-groove.
15
App layout: 240px sidebar on squared sheet.
A 240px (10×24px) Sidebar with a 1.5px right frame, and the workspace laid on .cd-sheet holding .cd-draft-card sheets (18px gaps, 20px padding). Pages without nav keep their top bar.
16
Don't put everything in a card.
A form is one .cd-draft-card split by 1.5px rules (see templates/settings), not four. Never a row of exactly three equal cards.
17
The canvas is for line art only.
.cd-canvas (24px grid, heavier every 5th square) goes under charts, diagrams, Map, Agenda/Timeline rails, hero drawings and empty-state tiles. Text stays off it; .cd-sheet is the paler page surface for cards.
18
Line art is 1.5px; fills use 45° hatch.
Fill an area with .cd-hatch (45° lines), never flat colour or gradient. Structure is --cd-line-ink; the focus is --cd-blue. Short labels/versions use .cd-plate.
Type4 rules
19
Montserrat everywhere; weight builds hierarchy.
Body and controls 13px/20px, captions 12px, small print 11px, card titles 15px bold, page titles 28px bold with 13px muted caption, marketing headlines 40–56px extra-bold (second half in text-muted-foreground). Hierarchy comes from 600, 700 and 800.
20
Mono is for what you copy; money stays sans.
IDs, order numbers, code, keys and table dates use font-cd-mono. Money and every other number stay in sans with tabular-nums.
21
Zero letter-spacing; no ALL-CAPS, gradients or serif.
No uppercase, no tracked eyebrows, no gradient text, no serif. If the copy itself is capitals, keep the text and drop tracking.
22
Don't fade text with opacity.
Fading with opacity drops contrast below standard. Always use text-muted-foreground or text-faint.
Spacing & craft4 rules
23
Drafting-table density on the 24px grid.
Controls 38px (sm 32px, xs 26px, lg 44px), table rows 42px, list rows 34px, 18px card gaps, 20px sheet padding, 240px sidebar (10×24px).
24
Icons from lucide-react at 1.75px stroke.
16px default (14px in compact controls, 12px in stamps) at 1.75px stroke to match 1.5px drafting lines; inherits currentColor.
25
@layer components classes take no variants.
data-pressed:cd-slug does nothing; write state as utilities or use cd-fill-gloss / cd-mark-soft which are defined as @utility.
26
Base UI data attributes and focus rings.
data-[selected]: and data-[checked]: need brackets; never combine outline-none with focus-visible:outline-2; text grids use grid-cols-[minmax(0,1fr)].
Which component38 situations · from components/cobalt/*.tsx source headers
16.8px 1.5px-framed sheet with 4 symmetric corner ticks and a 12px-grid titleblock; 24px squared canvas carries only 45° hatched line art and ink-framed plates.
Colors
28 tokens · white drafting paper (light) and cobalt blueprint (dark)
Greys
Data colours
Token
Used for
Light
Dark
Surfaces
--background
Page background
#f0f0f0
#0b2340
--card
Cards, tables, panels
#ffffff
#0f2036
--popover
Menus, dialogs, overlays
#ffffff
#172d47
--secondary
Secondary keys, segment tracks
#e0e0e0
#1d3650
--muted
Sidebar and muted blocks
#eaeaea
#162b43
--border
Card borders and dividers
#d0d0d0
#2b4a6b
--input
Input and secondary borders
#d0d0d0
#3a5d82
--cd-canvas
24px squared canvas (blueprint paper in dark)
#ffffff
#0d3360
--cd-sheet
Page-scale paler squared sheet
#f0f0f0
#0b2340
Text & primary key
--foreground
Headings and body copy
#333333
#eef4fa
--muted-foreground
Captions, table headers, secondary info
#666666
#a9bdd1
--cd-faint
Placeholders and subtle labels
#666666
#a9bdd1
--primary
Primary key fill (near-black / white paper)
#171717
#f4f7fa
--primary-foreground
Primary key label
#ffffff
#0d1f33
Blueprint blues
--cd-blue
Focus rings, highlights (3:1 only, no small text)
#1d9bf0
#5bbcff
--cd-blue-ink
Line-art ink and single-series charts
#1683d8
#3a98e4
--cd-blue-text
Link text (4.5:1)
#006eaf
#8fd0ff
--cd-soft
Selected and current item soft blue fill
#e8f5fe
#123e66
--cd-soft-foreground
Text on the soft blue fill (4.5:1)
#005c95
#b5e1ff
Status
--cd-success
Success, paid
#0f7a37
#58d596
--cd-warning
Pending, under review
#8a5a00
#f2bb5e
--destructive
Destructive borders and accents
#cc3333
#ff8a7a
--cd-danger-fg
Error and destructive text (4.5:1)
#b02a2a
#ff9e90
Charts
--chart-1
Series 1 (blue ink)
#1683d8
#3a98e4
--chart-2
Series 2
#d9730d
#cf7f28
--chart-3
Series 3
#0f9d7a
#1fa880
--chart-4
Series 4
#8a5cd6
#9b7ceb
--chart-5
Series 5
#c43e7a
#dd5f9a
Contrast
Pair
Use
Light
Dark
foreground on background
Body, 4.5:1 min
Aa11.1Pass
Aa14.3Pass
foreground on card
Body, 4.5:1 min
Aa12.6Pass
Aa14.8Pass
muted-foreground on card
Body, 4.5:1 min
Aa5.7Pass
Aa8.5Pass
muted-foreground on background
Body, 4.5:1 min
Aa5.0Pass
Aa8.2Pass
primary-foreground on primary
Primary key, 4.5:1 min
Aa17.9Pass
Aa15.5Pass
cd-blue-text on card
Link text, 4.5:1 min
Aa5.5Pass
Aa9.9Pass
cd-soft-foreground on cd-soft
Selected label, 4.5:1 min
Aa6.4Pass
Aa8.0Pass
cd-danger-fg on card
Error text, 4.5:1 min
Aa6.5Pass
Aa8.2Pass
cd-success on card
Status, 4.5:1 min
Aa5.4Pass
Aa8.9Pass
cd-blue on card
Marks & focus (no small text)
Aa3.0Not for text
Aa7.9Not for text
Type & scale
Montserrat for text and tabular numbers, system mono for IDs and code
Marketing hero56 / 62 · 800
Orders, refunds and revenue.
Page title28 / 36 · 800
Orders
Card title15 / 20 · 700
Recent orders
Body13 / 19 · 500
Refunds go back to the original card within 5 to 10 days.
Caption12 / 16 · 500
Updated 2 minutes ago
IDs & code11.5 / 17 · mono
#10482 shop.fennick.example 2026-10-29
Radii
Cut / Tick2px
Checkbox / Pin3px
Button / Badge5.6px
Input / Groove8.4px
Card / Dialog16.8px
Radio / PulseRound
Shadows
Hard drafting cut1.5px frame + 2px zero-blur hard step, no hover shadow