SelectJoin
GitHubGet started
Design system

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

Surfaces
Page--sj-bg
Sunken--sj-bg-1
Card--sj-bg-2
Border--sj-line-2
Text
Strong--sj-strong
Text--sj-text
Secondary--sj-text-2
Muted--sj-muted
Dim--sj-dim
Accent
Purple--sj-purple
Blue--sj-blue
Pink--sj-pink
Status
Success--sj-success
Warning--sj-warning
Danger--sj-danger
Info--sj-info
Gradient
Brand gradient--sj-gradient

Type

SampleTokenUsed for
Display 1--sj-display-1Hero and page titles
Display 2--sj-display-2Section headings
Display 3--sj-display-3Card titles that lead a block
Size 8--sj-fs-8Sub-headings
Size 7--sj-fs-7Lead paragraphs, card headings
Size 6--sj-fs-6Body emphasis
Size 5--sj-fs-5Body
Size 4--sj-fs-4Small body, buttons
Size 3--sj-fs-3Code, captions
Size 2--sj-fs-2Mono labels, tags
Size 1--sj-fs-1Uppercase mono labels

Text is set in Geist. Code, labels, and tags use Geist Mono. Headings track tighter as they get larger.

Radius and space

Radius
xs--sj-r-xs
sm--sj-r-sm
md--sj-r-md
lg--sj-r-lg
pill--sj-r-pill
Space
--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-9

Buttons and links

One primary action per view. Ghost is for the second choice. Accent is reserved for the GitHub star.

Tags, badges, chips

read-onlycompiledBy handPlanned--dialect⌘Kv0.1 Pill link →

Tool logos

python duckdb postgresql dbt looker airflow metabase github sql file check

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

Card

A titled block

Cards group one idea. They use the large radius and the standard elevation.

Action
models/marts/example.pyduckdb
@model(grain="order_id")
def build():
    orders = ref("stg_orders")
    return select(orders.order_id).from_(orders)
terminal
$ 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

Info A neutral note the reader should see.
Success The project is valid.
Warning Columns are unknown; declare a schema.
Breaking A column was removed.
No matching modelsClear the search to see all models.

Tables

ColumnTypeDescription
customer_idBIGINTOne row per customer.
net_revenueDECIMAL(18, 2)Revenue after order discounts.

Motion and elevation

TokenValueUsed for
--sj-fast0.15sHover, focus, selection
--sj-slow0.25sLayout changes and reveals
--sj-elevLit edge, long shadowCards, tables, panels
--sj-window-shadowDeeper, tinted shadowCode 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.