Repository navigation
v1.3.0 — One Language
The studio gets one visual language — and, more usefully, a build that refuses to
let it drift again.
This started as a documentation task: write down the colours. It turned into a
bug hunt, because the colours had already stopped agreeing with each other.
Every track was three different colours
The track palette was defined in three separate places, and they had drifted
apart. On a single screen, the same track could be:
| Its clip | Its track header | The browser panel | |
|---|---|---|---|
| Bass | blue | orange | blue |
| Drums | orange | red | red |
Colour is how you find a part in an arrangement. When it changes depending on
where you look, it stops being information.
There is now one source — lib/design/tokens.ts — and a generator that writes
every derived surface from it: the CSS variables, the PWA manifest, the design
doc's own token tables, and the artboard stylesheet. npm run check fails if any
of them drifts.
Fixed
Three of these had been shipping in every build, unnoticed:
- The instrument browser's colour dots had no colour at all. The class name
was assembled by string interpolation, which Tailwind cannot see in source
text, so the rule was never generated. Every dot rendered transparent. - JetBrains Mono never applied anywhere.
--font-monowas defined in terms
of itself, which invalidates the whole declaration — so every number in the
studio, the ruler, the BPM field, the clip times, fell back to the browser
default. - Volume faders were invisible in the light theme — the rail was tinted at
93% lightness against a 96% surface. - The light accent failed WCAG AA in both directions — 3.2:1 as text on the
page, and 3.2:1 again under white text on a button. Three dark-theme state
colours had the same problem, and clip labels were white on fills too light to
carry them. - The social card was a screenshot of an old build — 2102×1261, declared as
1200×630, showing template names that no longer exist. It is now a designed
card at the size it claims.
The design system is in the repo, not in a tool
design/
holds the principles, the usage rules, a generated token reference, and live
artboards. The HTML previews open by double-clicking — no server, no build step,
no account:
design/previews/foundations.html— the full palette, type scale, radii,
elevation and motion, in both themesdesign/previews/components.html— transport, buttons, track headers, clip
states, editors, fields, panelsdesign/artboards/*.png— the same two sheets exported, dark and light
A redesigned home page
Templates above the fold, so the first thing the page can do is make a sound.
Then the real arrangement view, what the studio actually does, and two honest
ways in: open it, or help build it. The instrument and template counts are read
from the source at build time, so the page cannot claim a number the app does
not have.
For contributors
npm run check now fails the build on a raw Tailwind palette class, a hex
literal, a class name built by interpolation, an off-scale type or radius value,
a generated file out of sync with the tokens, a track hue that collides with the
accent, and any colour pair the interface puts together that misses WCAG AA.
That last check found 14 failing pairs on its first run — most of them in the
palette written the same day.
105 tests, 30 of them the design system. Changing a colour is now a two-step
job: edit lib/design/tokens.ts, run npm run design:tokens. Everything else
regenerates, and CI catches you if you skip it.
CONTRIBUTING.md gains a Design section, and finally points newcomers at the
good first issue
label — which only the README and the roadmap had before. Eight are open and
waiting.
Not yet verified
Two pieces of this release's own scope are deliberately not done, and are carried
into the next one: mobile artboards (the mobile layout is verified at 375px
with no horizontal overflow — what is missing is the drawn reference) and a fresh
demo GIF and repo social preview, both of which need a recorded take rather
than a screenshot.
The artboard PNGs are only as current as the last npm run design:artboards. The
HTML previews cannot go stale; the exports can.
Frame-rate measurements, a Lighthouse audit, the offline walkthrough and the
cross-browser matrix still have not been run on real hardware. They remain
tracked in #29. Flagging
rather than claiming.
Full changelog: CHANGELOG.md
· Compare: v1.2.0...v1.3.0