One set of parts, used everywhere.
The tokens and components behind the website, the demo explorer, the docs, and the package's local explorer. Everything on this page is the live component, in the theme you have selected.
Principles
Tokens, never raw values
Colors, radii, type sizes, spacing, and motion come from tokens.css. A new value means a new token, decided once.
Dark and light are equal
Every component is built from tokens that both themes define, and is checked in both before it ships.
Real content only
Code and terminal samples are real output from the package. An excerpt is labeled as one.
One interaction per section
A section must make its point before anyone touches it. Motion answers the reader and never loops.
Color
--sj-bg--sj-bg-1--sj-bg-2--sj-line-2--sj-strong--sj-text--sj-text-2--sj-muted--sj-dim--sj-purple--sj-blue--sj-pink--sj-success--sj-warning--sj-danger--sj-info--sj-gradientType
| Sample | Token | Used for |
|---|---|---|
| Display 1 | --sj-display-1 | Hero and page titles |
| Display 2 | --sj-display-2 | Section headings |
| Display 3 | --sj-display-3 | Card titles that lead a block |
| Size 8 | --sj-fs-8 | Sub-headings |
| Size 7 | --sj-fs-7 | Lead paragraphs, card headings |
| Size 6 | --sj-fs-6 | Body emphasis |
| Size 5 | --sj-fs-5 | Body |
| Size 4 | --sj-fs-4 | Small body, buttons |
| Size 3 | --sj-fs-3 | Code, captions |
| Size 2 | --sj-fs-2 | Mono labels, tags |
| Size 1 | --sj-fs-1 | Uppercase mono labels |
Text is set in Geist. Code, labels, and tags use Geist Mono. Headings track tighter as they get larger.
Radius and space
--sj-r-xs--sj-r-sm--sj-r-md--sj-r-lg--sj-r-pill--sj-s-1--sj-s-2--sj-s-3--sj-s-4--sj-s-5--sj-s-6--sj-s-7--sj-s-8--sj-s-9Buttons and links
One primary action per view. Ghost is for the second choice. Accent is reserved for the GitHub star.
Tags, badges, chips
Tool logos
Logos are drawn in the current text color, never in brand colors, and only next to the tool's name. dbt is shown as a text monogram because its logo is not available for this use. The last three are generic line icons.
Cards and windows
@model(grain="order_id")
def build():
orders = ref("stg_orders")
return select(orders.order_id).from_(orders)$ selectjoin check OK: 11 sources/models validated (duckdb). # dim text for comments Error: an error line with a highlighted value
Fields and controls
Alerts and empty states
Tables
| Column | Type | Description |
|---|---|---|
customer_id | BIGINT | One row per customer. |
net_revenue | DECIMAL(18, 2) | Revenue after order discounts. |
Motion and elevation
| Token | Value | Used for |
|---|---|---|
--sj-fast | 0.15s | Hover, focus, selection |
--sj-slow | 0.25s | Layout changes and reveals |
--sj-elev | Lit edge, long shadow | Cards, tables, panels |
--sj-window-shadow | Deeper, tinted shadow | Code and terminal windows |
Motion comes in three kinds. Things arrive once: the hero in sequence, sections and grouped items as they scroll into view. Diagrams show direction: wires draw from a line to its SQL, the model graph draws itself, the chosen output's wire flows. The hero backdrop drifts slowly. Reduced-motion settings turn all of it off, and the page is complete without it.