Spacing scale · 4 px base
Rhythm tokens
-
--space-14px -
--space-28px -
--space-312px -
--space-416px -
--space-624px -
--space-832px -
--space-1248px -
--space-1664px -
--space-2496px
WS COMMANDER · SYSTEM DESIGN KIT v1.0.8
The tokens, type, glass and motion behind WS Commander — the native macOS dual-pane file manager. Every colour pair is measured against WCAG 2.2 AA, every control clears a 44 px target, and every animation stops the moment you ask.
01 / FOUNDATIONS
A 4 px base unit, a 1280 px container and four radii. Hairlines separate; glass layers stack; focus is never subtle.
Spacing scale · 4 px base
--space-1 4px --space-2 8px --space-3 12px --space-4 16px --space-6 24px --space-8 32px --space-12 48px --space-16 64px --space-24 96px Layout · --container
--container: 1280px--gutter: 32px · 16px under 720px--space-24 top · hairline divider--target-min: 44pxRadii
--radius-badge --radius-control --radius-card --radius-window Chrome layers
Each layer carries a 1 px --border-subtle hairline and a 1 px top specular highlight. Controls use --border-ui for 3:1 non-text contrast.
Focus · SC 2.4.7 / 2.4.11
Every interactive element shows a 3 px --focus-ring outline offset by 3 px on :focus-visible. Sticky chrome never hides the focused element: sections reserve scroll-padding-top.
:focus-visible {
outline: 3px solid var(--focus-ring);
outline-offset: 3px;
} 02 / COLOR SYSTEM & WCAG 2.2 AA CONTRAST
Obsidian Instrument is the default; Brushed Alabaster echoes the WS Agency paper tone. Select any swatch to copy its hex value or its custom property.
Default · data-theme="dark"
data-theme="light"
WS Agency Original identity. The root of every warm accent.
WS Agency Blue. Bridged into the UI as --accent-cobalt for legible links.
The active-row cursor. A brighter amber tuned for Obsidian glass.
Ratios are computed at build time from the token hex values with the WCAG 2.x relative-luminance formula and truncated (never rounded up). Text pairs need 4.5:1 for AA (SC 1.4.3) and 7:1 for AAA; non-text UI needs 3:1 (SC 1.4.11). Primary CTA: 19.9:1 AAA dark, 17.6:1 AAA light.
| Token | Role | Obsidian · canvas | Obsidian · surface-1 | Alabaster · canvas | Alabaster · surface-1 |
|---|---|---|---|---|---|
--fg-primary | Body & headings | 18.2:1 AAA | 17.1:1 AAA | 16.0:1 AAA | 17.6:1 AAA |
--fg-secondary | Supporting copy | 10.3:1 AAA | 9.7:1 AAA | 8.5:1 AAA | 9.4:1 AAA |
--fg-muted | Labels, captions | 7.2:1 AAA | 6.8:1 AA | 6.0:1 AA | 6.6:1 AA |
--accent-amber-text | Amber text | 11.3:1 AAA | 10.6:1 AAA | 6.1:1 AA | 6.7:1 AA |
--accent-cobalt | Links, info | 7.3:1 AAA | 6.9:1 AA | 6.0:1 AA | 6.7:1 AA |
--success | Success text | 11.5:1 AAA | 10.8:1 AAA | 5.9:1 AA | 6.5:1 AA |
--danger | Danger text | 7.6:1 AAA | 7.2:1 AAA | 5.3:1 AA | 5.9:1 AA |
--accent-amber | Cursor, graphics | 9.8:1 UI 3:1 | 9.2:1 UI 3:1 | 4.2:1 UI 3:1 | 4.6:1 UI 3:1 |
--border-ui | Control borders | 3.8:1 UI 3:1 | 3.6:1 UI 3:1 | 4.5:1 UI 3:1 | 4.9:1 UI 3:1 |
--focus-ring | Focus outline | 9.0:1 UI 3:1 | 8.5:1 UI 3:1 | 6.0:1 UI 3:1 | 6.7:1 UI 3:1 |
Every text token clears 4.5:1 AA and every UI boundary token clears 3.0:1 across --bg-canvas, --bg-surface-1, and --bg-surface-2 in both Obsidian and Alabaster.
03 / TYPOGRAPHY
Manrope sets the voice, Inter carries the interface, and JetBrains Mono keeps every counter, path and shortcut on a fixed grid.
--font-display · Manrope 800 · -0.045em
Two panes.
One cursor.
Aa Bb Cc · 0123456789 · ČĆŽŠĐ čćžšđ
--font-sans · Inter 400–700
Copy, move and compare across local disks, archives and SMB shares. Operations run in a background queue, so the panes stay responsive while gigabytes move.
| Name | Size | Kind |
|---|---|---|
| Masters | — | Folder |
| render-final.mov | 4.2 GB | Movie |
| notes.md | 12 KB | Markdown |
--font-mono · JetBrains Mono · tabular-nums
font-variant-numeric: tabular-nums
75% · 2,401 MB/s
317 ms
⌘⇧O
Proportional Inter (jitters)
75% · 2,401 MB/s
317 ms
⌘⇧O
Values tick while motion is running. Pause motion and they hold still.
| Token | Size / line | Weight | Tracking | Family | Sample |
|---|---|---|---|---|---|
--text-display-1 | 72px / 1.0 | 800 | -0.045em | Manrope | Dual-pane |
--text-display-2 | 48px / 1.05 | 750 | -0.04em | Manrope | Obsidian glass |
--text-title | 32px / 1.15 | 700 | -0.03em | Manrope | Operations queue |
--text-heading | 22px / 1.25 | 650 | -0.02em | Manrope | Command palette |
--text-body-lg | 18px / 1.6 | 400 | 0 | Inter | Copy, move and compare. |
--text-body | 15px / 1.6 | 400 | 0 | Inter | Files stay where you put them. |
--text-small | 13px / 1.5 | 500 | 0 | Inter | 2,401 items · 18.4 GB free |
--text-label | 12px / 1.4 | 500 | 0.08em | JetBrains Mono | OPERATIONS · F5 |
04 / GLASS & MOTION SYSTEM
Glass is reserved for chrome that floats above content. Motion is short, decelerating, and pauses instantly with the Motion toggle or prefers-reduced-motion.
Live material
background: var(--bg-glass);
backdrop-filter: ;
border: 1px solid var(--border-subtle);
box-shadow: inset 0 1px 0 var(--specular); Easing · --ease-precision
Fast out, long settle. Feels instant, lands without bounce.
Duration tokens
--dur-fast120ms · hover, press--dur-base220ms · panels, tabs--dur-slow380ms · sheets, windowsPaused or reduced motion collapses all three to 0ms.
Live signal
Motion status: running
05 / APP ICONS & FINISHES
Brushed Metal ships by default; four glass finishes are selectable in Settings. Choose a finish on either Dock to inspect it on both pedestals.
Light Dock · Alabaster wallpaper
Dark Dock · Obsidian wallpaper
06 / INTERACTIVE COMPONENTS
Every specimen below is built only from tokens.css and is fully keyboard operable. Try Tab, arrow keys and Space.
Buttons & CTAs
Keycaps · <kbd>
Dual-pane file rows · amber cursor · Location pill
Focus a pane and use ↑ ↓ Home End to move the cursor; Tab switches panes.
4 items · 1 cursor
3 items · 1 cursor
Operations queue · toolbar transfer pill
Copying render-final.mov → AppleTV · nas920 SMB
3.16 GB of 4.21 GB · about 53 s left
Command palette · ⌘⇧P
6 commands
Tabs · role="tablist"
One primary action per surface. Pair it with a secondary or ghost button; never two primaries side by side.
--cta-bg · --cta-fg · --border-ui · --radius-control · --dur-fast · --ease-precision
Min 44 × 44 px. Inter 600 14 px. 3 px focus outline at 3 px offset. Contrast 19.9:1 (dark) and 17.6:1 (light).
← → Home End move between tabs.
Status & alert banners
07 / BRANDING, CREDITS & WS AGENCY ATTRIBUTION
WS Commander is an open-source project by WS Agency. The attribution badge follows the accessible pattern from the upstream WS Agency brand kit.
Developer · design system
Designed and built WS Commander and this design system: tokens, glass, motion and the native macOS app.
@klukacin on GitHubStudio · publisher
Digital product studio. The amber and cobalt in this system trace back to the WS Agency Original and Blue identities.
<a class="wsa-brand wsa-credit" data-identity="original" data-appearance="auto" href="https://ws.agency/" aria-label="Made with love by WS Agency"><span>Made with <span class="sr-only">love</span></span><span class="wsa-credit-symbols"><svg class="wsa-heart" width="20.48" height="20" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0.67 0.17 22.66 22.13" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linejoin="round" stroke-linecap="round"><path d="M12 21C10 19 2 13 2 7a5 5 0 0 1 10-1 5 5 0 0 1 10 1c0 6-8 12-10 14Z"/></svg><span>by</span><img class="wsa-on-light" src="/brand/sign-color.svg" alt=""><img class="wsa-on-dark" src="/brand/sign-white.svg" alt=""></span><span class="wsa-credit-name">WS Agency</span></a> .wsa-credit { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 8px 12px; color: var(--fg-primary); background: var(--bg-surface-1); border-radius: var(--radius-control); font: 500 14px/1.5 var(--font-sans); text-decoration: none; }
.wsa-credit:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.wsa-credit:hover .wsa-credit-name { text-decoration: underline; text-underline-offset: 4px; }
.wsa-credit-symbols { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.wsa-credit img { width: auto; height: 20px; object-fit: contain; flex: none; }
.wsa-credit .wsa-heart { width: 20.48px; height: 20px; color: var(--accent-amber); flex: none; }
.wsa-credit .wsa-on-dark { display: none; }
.wsa-credit[data-appearance="dark"] .wsa-on-dark { display: inline; }
.wsa-credit[data-appearance="dark"] .wsa-on-light { display: none; }
@media (prefers-color-scheme: dark) {
.wsa-credit[data-appearance="auto"] .wsa-on-dark { display: inline; }
.wsa-credit[data-appearance="auto"] .wsa-on-light { display: none; }
}
.wsa-credit .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } 08 / WCAG 2.2 AA CONFORMANCE & QUICK INTEGRATION
The checklist this site is built and reviewed against, followed by everything you need to use the tokens in your own project.
Principle
SC 1.1.1 Non-text Content A
Meaningful images carry alt text; decorative images inside labelled links use alt="".
SC 1.3.1 Info and Relationships A
Tables use caption and scoped headers; specimens use listbox, tablist and progressbar roles.
SC 1.4.3 Contrast (Minimum) AA
All text tokens clear 4.5:1 on canvas and surface-1 in both themes; most reach 7:1 AAA.
SC 1.4.10 Reflow AA
Single-column at 320 px; wide tables scroll inside focusable regions, never the page.
SC 1.4.11 Non-text Contrast AA
--border-ui, --focus-ring and --accent-amber clear 3:1 against their surfaces.
SC 1.4.12 Text Spacing AA
No fixed-height text containers; spacing overrides reflow without clipping.
Principle
SC 2.1.1 Keyboard A
Every control is a native button, link or input, or implements the APG keyboard pattern.
SC 2.2.2 Pause, Stop, Hide A
The Motion toggle freezes every looping animation and ticking counter.
SC 2.3.3 Animation from Interactions AAA
prefers-reduced-motion: reduce starts the site paused and zeroes duration tokens.
SC 2.4.1 Bypass Blocks A
Skip link to main content is the first focusable element.
SC 2.4.7 Focus Visible AA
3 px --focus-ring outline at 3 px offset on :focus-visible.
SC 2.4.11 Focus Not Obscured (Minimum) AA
scroll-padding-top reserves room for the sticky glass topbar.
SC 2.5.8 Target Size (Minimum) AA
Nav, toggles and controls are at least 44 × 44 px — well above the 24 px minimum.
Principle
SC 3.1.1 Language of Page A
html lang="en".
SC 3.2.1 On Focus A
Focus never triggers navigation, theme or layout changes.
SC 3.3.2 Labels or Instructions A
Inputs have visible or programmatic labels; keyboard hints sit beside each widget.
Principle
SC 4.1.2 Name, Role, Value A
Landmarks (header, nav, main, footer), aria-pressed toggles, aria-selected tabs and options.
SC 4.1.3 Status Messages AA
A polite live region announces copy confirmations and queue actions.
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@500;600;700;800&display=swap">
<link rel="stylesheet" href="https://design.wscommander.com/tokens.css"> <html lang="en" class="wsc-brand" data-theme="dark" data-motion="running">
<!-- Panels inherit every token; scope a light preview anywhere: -->
<section class="wsc-brand wsc-glass" data-theme="light">…</section>
</html> .wsc-row[aria-selected="true"] {
background: var(--bg-surface-2);
box-shadow: inset 3px 0 0 var(--accent-amber);
transition: background var(--dur-fast) var(--ease-precision);
}
.wsc-pill { font: 500 var(--text-small)/1 var(--font-mono); font-variant-numeric: tabular-nums; } One stylesheet, no build step, MIT licensed.