The colors, type, layout and mark of Spinbox, written once, checked, and made into the files each
place that draws Spinbox reads: the website (Starlight), the dashboard (Tailwind, shadcn's
variables), the agent client the dashboard frames (the T3 Code fork's variables) and anything
else (dist/tokens.json).
See it: index.html is the laboratory.
It draws the site's landing and a docs page; the console's Workspaces and Inbox; where the app as
it is is shown; the mark's guide - sizes, clear space, the lockup, the grounds it goes on and what
it is not; the type scale in both faces, a dashboard page's ranks and the three weights; the
console's buttons in each state, its states, rows and cards; the palette by what each color is
for; and the same page at a phone's and a tablet's width - in dark or light and through
protanopia, deuteranopia or tritanopia, with every pair the palette is held to.
target.html is the console's destination:
six screens every migration of the dashboard is measured against (target/README.md). Two pages
beside it are tests a team runs by opening them, with nothing to install and nothing sent
anywhere: each counts its answers in the browser it is opened in.
five-seconds.html is the check
palette.toml names for a page's verdict: the destination's Workspaces for five seconds, in dark
or in light, then "what did you see first?" - the panel with its verdict, or its one filled
button. recognition.html shows the
destination's Inbox, Workspaces and Overview with the mark and the name taken out, in the brand
and in the grey of the same lightness with a system font, and asks whose product it is and which
you would work in all day. lab.css and lab.js are the console every one of these pages draws:
its components, inside an element of class app, and its screens.
| Source | What it makes |
|---|---|
palette.toml |
dist/: tokens.css (every role as --spin-*), starlight.css (the website's --sl-color-*), dashboard.css (shadcn's HSL variables, light on :root, dark on .dark, and the dashboard's radius, scrim, dense type scale, a page's ranks of type, heading tracking, motion and a terminal's black surface and sixteen ANSI colours as --terminal-*), t3code.css (the agent client's own variables, the roots its theme derives the rest from, on html:root and html.dark:root, with the dashboard's corner and the faces), tokens.json, and for this repository's own pages fonts.css (the two faces' @font-face rules, the one place they are declared), perception.js and simulate.svg |
spin's dashboard/e2e/catalog.spec.ts |
screens/: every route, tab, dialog and menu of the app in both themes at 1440 and 390 px, and what each draws that this palette does not have - a colour, a face, a size, a radius, contrast, overflow, a target too small (task screens SCREENS=<dir>). The catalog and the audit are committed; the images, hundreds a release, are an archive on a release of this repository that screens.json names and Pages unpacks. See them |
assets/mark.png |
logos/: the stack of disks, cut from the mark as it was drawn (1024 px on a clear ground): the tile on the brand's navy (512, 256; the touch icon at 180, the favicon at 64 and 32) for a dark ground, and clear (512, 256) for any ground: the drawing has nothing under the stack, so mark-dark-* (512, 256), the name the dark page asks for, is the clear mark. Each is the drawing reduced; a size it would have to enlarge fails |
task # palette and mark: check, and write dist/ and logos/
task report # every pair, its contrast or its distance in each view
task preview # http://127.0.0.1:4330/
task check # what CI runs: fails on a pair below its floor, or a stale dist/ or logos/
task agent-client T3CODE=<checkout> # the fork's variable names, which t3code.css is held to
And the tasks every spin-stack repository has, which are
go-tools' own and Taskfile.yml includes:
task versions # which pins of versions.yaml are behind their upstream
task bump NAME=actionlint # pin one entry at its newest version, or at TO=
task lint:workflows # actionlint, and every action pinned by its commit; part of check
task consumers # which brand each consumer is on: its pin, its copies, its packages
task release # a person's: name main's head v<YYYYMMDD>.<NN>, once Gate has passed on it
task is go-tools' task command, installed once with
go install github.com/spin-stack/go-tools/cmd/task@latest (in a workflow, uses: spin-stack/go-tools): it runs the Task go-tools pins, the version CI runs, with go-tools' latest
commands on its PATH. task check also fails on a workflow step that is not one task (taskgate), on a
workflow actionlint refuses or an action used by a tag (lint:workflows), on a package install
that skips Socket Firewall (sfw check), and on a face an output or a page names that fonts/
does not ship (cmd/palette's tests).
cmd/palette checks every pair that carries meaning, in both modes, before it writes anything:
- Contrast, WCAG 2.2: the product's text at 7:1 on every surface, secondary text, links, labels and status text at 4.5:1, an input's edge and the focus ring at 3:1.
- Distance, CIEDE2000 (checked against Sharma's test data): two surfaces that meet, a border
against what it bounds, a selected and a hovered row against a plain one, and every status
against every other and against the accent - as drawn, on an office's IPS panel, on the same
panel at 30% backlight, and through each dichromacy (Machado, Oliveira and Fernandes 2009,
severity 1.0), protan and deutan also on the IPS panel. The floors are in
checks.go, each with its reason; they follow spin-stack's sibling CONSTRUCT. - Charts (
[chart],tokens.json'schart): eight series in a fixed order and three threshold statuses, one set for both modes because Grafana draws one dashboard JSON in either theme. Each holds 3:1 on dark's page and on light's, and each series is held apart from the next, and each status from the others, at the meaning tier. - A trace's services (
[trace],tokens.json'strace,--trace-service-1to-8indashboard.css): eight for each theme, which the dashboard picks by a service name's hash. Each holds 4.5:1 on the page and 3:1 on a selected row, every pair is held apart, and each is held fromerrorand from red, which are a failed span's. - No meaning by hue alone: a status carries a shape too (the preview's states: a dot, a diamond, a square), since a floor for colour-vision deficiencies is a floor, not comfort.
Type and layout are tokens too: Geist and Geist Mono (fonts/, OFL; declared once for this
repository's pages in dist/fonts.css, and a page that declares a face of its own fails
go test) at three weights that
say rank (600 what a page is and what a person reads first in a row, a card or a control, 500 what
a machine says beside it in the mono, 400 the rest; --spin-weight-*), a 16 px reading size (below
it iOS zooms into a focused input) and 13 px for the dashboard, a dashboard page's six ranks and its
figure, each one size at one weight ([type].rank, --spin-rank-<rank>-{font,size,lh,weight,tracking,case}),
a 72ch measure, 24 px for any pointer target and 44 px on a coarse pointer (WCAG 2.2, 2.5.8 and
2.5.5).
Sizes are variables in every output, so that a consumer has no number of its own to drift from:
a control's three heights (28, 32 and 36 px, --spin-control-*) and a key hint's cap
(--spin-kbd); three corners by what they hold (--spin-radius-xs, -sm and --spin-radius);
the steps a component's parts are spaced by (--spin-space-*); a page's frame - the bar over it
(--spin-bar), the least a card is (--spin-width-card-min), the inspector
(--spin-width-inspector), a fact's label (--spin-width-key), a search field
(--spin-width-search); a state's mark (--spin-mark), the spot's signal and figures
(--spin-signal-*, --spin-width-figure) and a machine's last hour (--spin-usage-width,
--spin-usage-height); and the two sidebars, the docs' in rem (--spin-sidebar, and
Starlight's --sl-sidebar-width) and the app's in px (--spin-sidebar-app). What a page gives in
room is its density, comfortable on the root and compact under [data-density='compact']: its
insets, its gaps, a row of one line, of two and with its tile, and the tile (--spin-row,
--spin-row-two, --spin-row-item, --spin-tile and the rest). Three lines, by what
each must be seen against: hairline separates on the page and is held against the page alone,
border is a line between two surfaces and a secondary button's outline (--spin-control-border,
--control-border), and border_strong is an input's edge at 3:1. palette.toml says the rules
that are behaviour: one filled action per view; selected, and where you are, as one tint
(--spin-selected) with the accent beside it; a card only for what needs the person; an icon alone
only with its caption; a page's verdict on the spot - a dark plane in either theme, with the one
texture in the palette, its grid (--spin-spot-*); a state as its tile or its chip, its mark on its
tint (--spin-*-badge); and a machine's last hour in its row (--spin-usage-*).
Motion is four durations and one easing (--spin-duration-*, --spin-ease): a movement says
what something does or that it answered a hand, runs once, and is its end state under reduced
motion. Two things move on their own, each stopping within 5 s: the title's cursor
(--spin-blink) and a working task's mark (--spin-breathe).
consumers.toml is every place that draws Spinbox: its repository, the files
it copies and where it keeps them, where its pin is, and the package.json its faces are
installed from. A place not in it is not a consumer, and go test fails on an output in dist/
that no row copies. The mapping from roles to each consumer's variables is
cmd/palette/outputs.go.
Each consumer pins a commit of this repository in its versions.yaml and holds its copies to
that commit in its own check: a stale copy fails there, not here. What this repository can say is
who is on what:
task consumers # each consumer, read through gh
task consumers -- -checkout spin-stack/spin=../spin # one of them from a checkout
It prints, for each, the commit and the release it is on, how far behind main that is, whether
each copy is what this repository made at that commit, and whether the @fontsource packages it
installs are the ones versions.yaml pinned there. It is a report, and exits 0 whatever it
finds: task check does not run it, because a consumer that is behind is no fault of a change
here, and a pull request to this repository cannot fix it.
A release is a name for a commit of main that consumers pin, v<YYYYMMDD>.<NN> as every
spin-stack repository names its own: the day in UTC and which release of that day. A person cuts
one, after a change consumers should take:
task release
It refuses a commit Gate has not passed on (go-tools' proven release) and one already
released (go-tools' release, where the name's rule is), and the GitHub release makes the tag. A
consumer that tracks releases pins one in its versions.yaml, and versions check and
versions bump brand move it to the next:
- name: brand
kind: git
source: https://github.com/spin-stack/brand
version: v20261122.01
pin: <the commit that release names>
track: github-release
The screens-v... releases are the screens' images and no release of the palette: they are made
with --latest=false, so the one GitHub calls latest, which track: github-release reads, is
always a v<YYYYMMDD>.<NN>.
Apache License 2.0, as spin. The fonts are Geist and Geist Mono, each under the SIL Open Font
License (fonts/LICENSE-Geist.txt, fonts/LICENSE-Geist-Mono.txt); versions.yaml says which
release of each the files are.