Components
Every element on this site comes from here. A theme is just a set of CSS variables; components only read semantic variables, so switching themes never touches a component.
Theme
TOKENS
Semantic colors
From themes.css. Components only use these.
--bg--surface--text--text-muted--border--accent--accent-soft--accent-2--link--code-bgTYPE
Type
Heading one H1
Heading two H2
Heading three H3
Body text uses the system font (PingFang / SF), labels use the SILKSCREEN pixel font, code uses ui-monospace.
BUTTON
Buttons
FORM
Forms
Field wires up the label, hint and error for you.
Something’s wrong here
DISPLAY
Display
NEWOKShortcut ⌘ K
- Key
- Value, copyable
- ISO 8601
- 2026-10-09
- List itemA Settings-style grouped list
- Another itemCan render as a link
Window: striped title bar plus a square close box. Every page sits inside one.
ICONS
Pixel icons
Each icon is a few lines of ASCII art in @shiqi/pixel.
QUIZ
Quiz
For course notes.
DEMO1 / 2