UI Interface · Foundations
Typography and design tokens
The Plus Jakarta Sans type scale and every colour, surface, radius, shadow, spacing and motion token of the kit. Hex values are read live with getComputedStyle, so they follow the active theme. Click any swatch to copy its CSS variable.
Type scale
Font family var(--font-sans): Plus Jakarta Sans, then system fallbacks. The right-hand spec is measured from the rendered sample (size, weight, line-height, tracking).
Pipeline by stage
<p class="sx-eyebrow">Revenue overview</p>
<h1 class="sx-h1">Quarterly business review</h1> <!-- 1.5rem, 1.65rem from lg; 750 -->
<p class="sx-lead">One-line description</p> <!-- 13.5px, tertiary -->
<h3 class="sx-card-title">Monthly recurring revenue</h3> <!-- 14.5px, 700 -->
<p class="sx-card-sub">Updated 4 minutes ago</p> <!-- 12px, tertiary -->
<div class="sx-kpi-value sx-num">$128,430.50</div> <!-- 1.7rem, 750, tabular -->
Weights in use
- Keep one
h1per page and descend in order; style with classes, not by skipping levels. - Use
sx-num(tabular figures) for every number that is compared, summed or animated. - Tracking tightens as size grows: -0.03em for display, -0.02em for h1, -0.01em for titles, +0.08em for overlines.
Text colors
Semantic text tokens switch with the theme. Each row measures the resolved colour and its WCAG contrast against the sample background (AA needs 4.5:1 for body text, 3:1 for large text).
--text-primary--text-secondary--text-tertiary--text-tertiary--text-on-brand--color-primary-600--tone-fg · success--tone-fg · warning--tone-fg · danger--tone-fg · info<p class="text-[var(--text-primary)]">Headline</p>
<p class="text-[var(--text-secondary)]">Supporting copy</p>
<p class="text-[var(--text-tertiary)]">Helper text</p>
<!-- tone text: set the tone, read --tone-fg / --tone-bg -->
<span data-tone="success" style="background:var(--tone-bg);color:var(--tone-fg)">Payment received</span>
- Tertiary text is for non-essential helper content; never use it for the only label of a control.
- Status text always comes with an icon or label word so colour is never the sole signal.
- Read tone colours from
--tone-fg; the legacy--color-success-*scales are remapped in dark mode.
Links
Kit link .sx-link for compact actions; prose links underline with a soft offset. Hover and focus are pinned below for comparison.
Read the billing guide before changing plans, or contact support for help.
<a href="#" class="sx-link">View all invoices <i class="icon-arrow-right"></i></a>
<!-- prose link (page-local .ty-a) -->
a { color: var(--color-primary-600); text-decoration: underline;
text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary-800); }
[data-theme="dark"] a { color: var(--color-primary-400); }
- Links in running text must differ by more than colour; keep the underline.
- External links get the arrow icon and
rel="noopener"; disabled links drop thehrefor usearia-disabled.
Lists
The global reset removes bullets, so lists opt back in with explicit styles. Markers take the brand colour.
- Workspace settings
- General
- Members and roles
- Billing and invoices
- Security and audit log
- Connect your data source
- Map the required fields
- Schedule the first sync
- Invite your team
- SSO configured
- Domain verified
- Add a billing contact
- Plan
- Team, annual
- Seats
- 24 of 30
- Renews
- Dec 1, 2026
- Owner
- Amelia Hart
<ul class="ty-ul"><li>Item</li><li>Item<ul><li>Nested</li></ul></li></ul>
<ol class="ty-ol"><li>First</li><li>Second</li></ol>
<dl class="ty-dl"><dt>Plan</dt><dd>Team, annual</dd></dl>
.ty-ul { list-style: disc; padding-inline-start: 1.3rem; }
.ty-ul li::marker { color: var(--color-primary-500); }
Blockquotes and callouts
Quotes use a brand rule; callouts reuse the tone mechanism (data-tone) for background, rule and heading colour.
Switching to Northwind cut our monthly close from nine days to three.Priya Nair, Finance Director at Contoso Ltd.
Daniel Reyes, Head of Data<blockquote class="ty-quote">Quote text<cite>Name, Role</cite></blockquote>
<div class="ty-callout" data-tone="info"><b>Note</b>Body</div>
.ty-callout { border-inline-start: 3px solid var(--tone); background: var(--tone-bg); }
.ty-callout b { color: var(--tone-fg); }
Code, keyboard keys and tabular numerals
Inline code, code blocks and .sx-kbd; plus the difference between proportional and tabular figures for columns of money.
Call client.invoices.list() then press Ctrl + K to search. Use Shift Enter for a new line.
curl https://api.northwind.example/v1/invoices \ -H "Authorization: Bearer sk_live_demo" \ -d status=paid -d limit=10
| Invoice | Proportional | Tabular (sx-num) |
|---|---|---|
| INV-1181 | 1,111.11 | 1,111.11 |
| INV-1182 | 888.88 | 888.88 |
| INV-1183 | 4,280.00 | 4,280.00 |
| INV-1184 | 17.17 | 17.17 |
<kbd class="sx-kbd">Ctrl</kbd> + <kbd class="sx-kbd">K</kbd>
<code class="ty-ic">client.invoices.list()</code>
<td class="sx-num">4,280.00</td> /* font-variant-numeric: tabular-nums */
Color palette
Click a swatch to copy its variable (or hex, using the switch at the top). Hex values on each swatch are resolved for the current theme.
Primary · deep teal ramp
--color-primary-50 … 950Neutral
--color-neutral-0 … 950Semantic status
--sx-success|warning|danger|info|accent--tone-bg and --tone-fg automatically.
Chart status (reserved for meaning)
--sx-good|warn|serious|critChart categorical · validated order
--sx-c1 … c8Sequential heat ramp · one hue
.sx-heatDiverging · blue to red with neutral midpoint
--sx-c4 ↔ --sx-c8Surfaces and borders
Five elevation steps for backgrounds and three border strengths. In dark mode borders are translucent white, so their hex carries an alpha channel.
Surfaces
canvas
raised (cards)
Borders
Radii and shadows
Cards use --sx-radius (14px). Controls use 10px, menu items 9px, chips and badges are pills. The legacy --radius-* tokens are 5px and are not used by the kit.
Radius
--sx-radius…--sx-radius-sm…9px literal…--radius-md…99px literal…Shadows
--sx-shadow-card…--sx-shadow-hover…--sx-shadow-pop…Spacing scale
Tailwind’s 4px base (--spacing). Grids use gap-4 (16px), xl:gap-5 (20px); cards pad 20px; page gutters are 16px and 24px from 640px.
1…2…3…4 · gap…5 · card…6…8…10…12…16…Z-index and motion
Stacking layers are fixed in shell.css; motion uses one easing curve. Components respect prefers-reduced-motion.
Z-index layers
Lowest to highest
.sx-topbar.sx-backdrop.sx-sidebar.sx-menu.sx-cmdk.sx-tooltipMotion
Easing cubic-bezier(0.4, 0, 0.2, 1)
- 120–160ms hover, menus, tabs
- 250–280ms collapse, sidebar width
- 550ms entrance (
.sx-rise)