Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
C# audioaudio-unitavaloniacpp20cross-platformdawdigital-audio-workstationdspjucelinux-audiomcp-servermidimusicmusic-productionpiano-rollplugin-hostsequencersynthesizervstvst3
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
<!-- Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms. -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>specs/084 · Accent colour — mockup</title>
<style>
@font-face { font-family: "Geist"; src: url("{{FONTS}}/Geist-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "Geist"; src: url("{{FONTS}}/Geist-SemiBold.ttf"); font-weight: 600; }
@font-face { font-family: "Geist Mono"; src: url("{{FONTS}}/GeistMono-Regular.ttf"); font-weight: 400; }
* { box-sizing: border-box; }
body { margin: 0; padding: 24px 28px 40px; background: #101113; color: #E8E9EB; font: 11px "Geist", system-ui, sans-serif; }
h1 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
h2 { font-size: 12px; font-weight: 600; margin: 28px 0 8px; color: #C0C4C9; }
p.note { color: #92969D; margin: 0 0 14px; max-width: 900px; line-height: 1.5; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
.bar { display: flex; gap: 2px; margin: 10px 0 0; }
.bar button { font: 11px "Geist"; color: #C0C4C9; background: #2B2D31; border: 1px solid #141517; padding: 4px 10px; border-radius: 3px; cursor: pointer; }
.bar button.on { background: #E8E9EB; color: #17181A; }
.row { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.cap { color: #92969D; font-size: 10px; margin-top: 6px; max-width: 520px; line-height: 1.45; }
/* ---- a scope wears one theme + accent through CSS variables ---- */
.scope { background: var(--BgApp); color: var(--TextPrimary); border: 1px solid var(--Seam); }
/* Settings pane excerpt */
.pane { width: 640px; padding: 18px 22px 20px; background: var(--Panel); }
.sect { font-size: 11px; font-weight: 600; color: var(--TextSecondary); margin-bottom: 12px; }
.prow { display: grid; grid-template-columns: 128px 1fr; column-gap: 16px; align-items: start; margin-bottom: 8px; }
.plabel { font-size: 12px; color: var(--TextSecondary); padding-top: 3px; }
.pcap { font-size: 11px; color: var(--TextMuted); line-height: 1.45; }
.seg { display: inline-flex; gap: 1px; background: var(--Seam); border: 1px solid var(--Seam); border-radius: 3px; overflow: hidden; }
.seg span { font-size: 12px; padding: 3px 10px; background: var(--SurfaceRaised); color: var(--TextSecondary); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.seg span.on { background: var(--Accent); color: var(--TextOnAccent); }
.cards { display: flex; gap: 12px; margin: 10px 0 4px; }
.tcard { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--TextPrimary); }
.tframe { padding: 2px; border-radius: 4px; border: 2px solid transparent; }
.tframe.on { border-color: var(--Accent); }
.mini { width: 120px; height: 72px; border-radius: 2px; position: relative; overflow: hidden; border: 1px solid #0006; }
.mini i { position: absolute; display: block; }
.mlabel { font-size: 11px; color: var(--TextMuted); margin: 6px 0 0; }
/* the accent row */
.accents { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sw { width: 22px; height: 22px; border-radius: 4px; padding: 2px; border: 2px solid transparent; cursor: pointer; }
.sw i { display: block; width: 100%; height: 100%; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.sw.on { border-color: var(--TextPrimary); }
.sw:hover:not(.on) { border-color: var(--Rule); }
.gap { width: 6px; }
.btn { height: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 4px; border-radius: 3px; font-size: 12px;
background: var(--SurfaceRaised); color: var(--TextSecondary); border: 1px solid var(--Seam); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); cursor: pointer; }
.btn.on { outline: 2px solid var(--TextPrimary); outline-offset: 1px; }
.btn b { width: 14px; height: 14px; border-radius: 2px; display: block; }
.btn svg { width: 10px; height: 10px; }
.readout { font-size: 12px; color: var(--TextMuted); margin-left: 6px; }
/* the picker popover */
.pop { width: 240px; padding: 10px; border-radius: 3px; background: var(--SurfaceRaised); border: 1px solid var(--Seam);
box-shadow: 0 10px 28px rgba(0,0,0,.42); display: flex; flex-direction: column; gap: 8px; position: relative; }
.sv { height: 132px; border-radius: 3px; position: relative; border: 1px solid var(--Rule); }
.sv .h { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #0008; transform: translate(-6px,-6px); }
.hue { height: 10px; border-radius: 3px; position: relative; border: 1px solid var(--Rule);
background: linear-gradient(90deg, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00); }
.hue .h { position: absolute; top: -3px; width: 4px; height: 14px; background: #fff; border-radius: 1px; box-shadow: 0 0 0 1px #0008; transform: translateX(-2px); }
.prow2 { display: flex; align-items: center; gap: 6px; }
.chips2 { display: flex; height: 22px; border: 1px solid var(--Rule); border-radius: 3px; overflow: hidden; }
.chips2 i { width: 18px; display: block; }
.field { flex: 1; height: 22px; display: flex; align-items: center; padding: 0 6px; border-radius: 3px; background: var(--BgSunken);
border: 1px solid var(--Rule); color: var(--TextPrimary); font: 12px "Geist Mono"; }
.field.focus { border-color: var(--AccentBright); }
.inthemes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.inthemes div { display: flex; flex-direction: column; gap: 3px; align-items: center; font-size: 9px; color: var(--TextMuted); }
.inthemes i { display: block; width: 100%; height: 14px; border-radius: 2px; border: 1px solid #0005; position: relative; }
.inthemes i.adj::after { content: ""; position: absolute; right: 2px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--TextPrimary); box-shadow: 0 0 0 1px #0008; }
.pnote { font-size: 11px; color: var(--TextMuted); line-height: 1.4; min-height: 30px; }
.pnote.bad { color: var(--Danger); }
/* specimens — accent in use */
.spec { padding: 12px; display: grid; grid-template-columns: auto auto; gap: 10px 16px; align-items: center; width: 640px; background: var(--BgApp); }
.lbl { color: var(--TextTertiary); font-size: 10px; }
.tp { display: flex; gap: 2px; }
.key { width: 26px; height: 20px; border-radius: 3px; background: var(--SurfaceRaised); border: 1px solid var(--Seam); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.key.on { background: var(--Accent); }
.key svg { width: 10px; height: 10px; }
.lane { position: relative; height: 40px; width: 300px; background: var(--LaneB); border: 1px solid var(--Seam); }
.clip { position: absolute; top: 4px; height: 30px; border-radius: 2px; }
.clip.sel { box-shadow: 0 0 0 1px var(--Accent); }
.ph { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--Accent); }
.loop { position: absolute; top: -1px; height: 4px; background: var(--Accent); }
.list { width: 220px; background: var(--Panel); border: 1px solid var(--Seam); padding: 3px; }
.li { height: 20px; display: flex; align-items: center; padding: 0 8px; font-size: 11px; color: var(--TextSecondary); border-radius: 2px; }
.li.pick { background: var(--AccentSubtle); color: var(--TextPrimary); }
.li.hov { background: var(--Accent); color: var(--TextOnAccent); }
.knobs { display: flex; gap: 14px; align-items: center; }
.knob { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; color: var(--TextMuted); }
.sw2 { width: 18px; height: 10px; border-radius: 5px; background: var(--BgSunken); border: 1px solid var(--Rule); position: relative; }
.sw2.on { background: var(--Accent); border-color: var(--Accent); }
.sw2 i { position: absolute; top: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--TextPrimary); }
.sw2.on i { right: 1px; background: var(--TextOnAccent); }
.brass { width: 140px; height: 40px; border-radius: 3px; background: var(--BgSunken); border: 1px solid var(--BorderBrass); display: flex; align-items: flex-end; padding: 4px; gap: 2px; }
.brass u { flex: 1; background: var(--VizInk); border-radius: 1px; }
.brass u.hot { background: var(--AccentBright); }
.txt { font-size: 11px; color: var(--AccentBright); }
/* matrix */
table.m { border-collapse: separate; border-spacing: 6px; }
table.m th { font-weight: 600; font-size: 10px; color: #92969D; text-align: left; padding: 0 2px; }
.cell { padding: 8px; display: flex; gap: 6px; align-items: center; width: 220px; }
.cell .lane { width: 92px; height: 26px; }
.cell .clip { height: 18px; }
.cell .li { height: 18px; width: 46px; padding: 0 4px; font-size: 10px; }
.hexes { font: 9px "Geist Mono"; color: var(--TextMuted); line-height: 1.3; }
</style>
</head>
<body>
<h1>Choose the accent colour — specs/084 · nota-daw/nota#311</h1>
<p class="note">Every colour on this page is computed from the theme files by the derivation in research.md: Orange is the theme files
verbatim; another accent keeps each accent token's lightness relation to the theme's own orange and swaps hue and saturation,
then — only if the readability bar would fail — moves the lightness by the smallest step that passes. Click a swatch or a theme
to try it. The swatches, the Custom button and the picker are the new controls; everything else is the existing UI wearing the accent.</p>
<div class="bar" id="themeBar"></div>
<h2>1 · Settings → Appearance (excerpt, true size)</h2>
<div class="row">
<div class="scope pane" id="pane">
<div class="sect">UI</div>
<div class="prow"><div class="plabel">Colour theme</div>
<div>
<div class="seg"><span class="on">Dark</span><span>Light</span><span>Follow system</span></div>
<div class="mlabel">Dark</div>
<div class="cards" id="cardsDark"></div>
<div class="mlabel">Light</div>
<div class="cards" id="cardsLight"></div>
</div>
</div>
<div class="prow"><div></div><div class="pcap">Themes change colours only. Follow system wears a dark theme in dark mode and a light one in light mode.</div></div>
<div class="prow" style="margin-top:10px"><div class="plabel">Accent</div>
<div class="accents" id="accents"></div>
</div>
<div class="prow"><div></div><div class="pcap">The colour of what is live or chosen — the playhead, the loop, selection, toggles that are on. Tuned to each theme so it stays readable.</div></div>
<div class="prow" style="margin-top:10px"><div class="plabel">Waveform</div><div><div class="seg"><span class="on">Smooth</span><span>Solid</span><span>Bars</span></div></div></div>
</div>
<div class="cap" style="max-width:300px">
<b>Accent</b> sits directly under the theme picker. Seven presets, then <b>Custom</b>; the chosen one carries a 2 px ring in
<span class="mono">TextPrimary</span> (colour only — the ring slot is always there, so nothing moves). A swatch's name is its
tooltip; the chosen name is the readout at the end of the row. The theme cards preview each theme <i>with</i> the chosen accent.
<br><br>Presets: Orange (default) · Lime · Aqua · Sky · Violet · Magenta · Pink — no yellow (mute), red (record), green (meter) or
mid blue (solo). Each passes T3.4, T3.5, T3.8, the meter green and every track colour (ΔE ≥ 15) in all four themes — the smoke test enforces it.
</div>
</div>
<h2>2 · Custom — the picker (a popover under the Custom button)</h2>
<div class="row" id="pickers"></div>
<p class="cap" style="max-width:900px">Saturation/brightness area, hue strip, the old/new chip and a hex field (Geist Mono; typing a valid value applies at once).
The <b>In themes</b> strip shows the colour as each theme will wear it; a dot marks a theme where its lightness was moved to stay readable.
Everything applies live while dragging; clicking outside keeps it and saves; Esc puts back the accent worn before the picker opened.
A colour no lightness can rescue (a grey, or one that sits on the record red / mute / solo / meter green in some theme) is not applied:
the note says why in Danger ink and the accent stays as it was. The spectrum is the one gradient in the app — content, like a waveform — listed in DESIGN.md's accepted exceptions.</p>
<h2>3 · The accent in use (current theme · current accent)</h2>
<div class="scope spec" id="spec"></div>
<h2>4 · Every preset in every theme</h2>
<table class="m" id="matrix"></table>
<script>
/*DATA*/
const PICK = ["Accent","AccentBright","AccentHover","AccentDeep","AccentPale","AccentDim","AccentEdge","AccentMute","AccentSubtle","BorderBrass","TextOnAccent"];
let theme = "studio-dark", accent = "violet";
const TRACK = i => `var(--Track${i})`;
function vars(tid, aid) {
const t = THEMES[tid], a = ACCENTS[tid][aid];
return Object.entries(t).map(([k, v]) => `--${k}:${(PICK.includes(k) && a[k]) || v}`).join(";")
+ ";--TextOnAccent:" + a.TextOnAccent;
}
const svgPlay = c => `<svg viewBox="0 0 16 16"><path d="M4 2.5v11l9-5.5z" fill="${c}"/></svg>`;
const svgLoop = c => `<svg viewBox="0 0 16 16" fill="none" stroke="${c}" stroke-width="1.6" stroke-linecap="round"><path d="M3 9V7a3 3 0 0 1 3-3h7M11 2l2 2-2 2M13 7v2a3 3 0 0 1-3 3H3M5 14l-2-2 2-2"/></svg>`;
const svgMet = c => `<svg viewBox="0 0 16 16" fill="none" stroke="${c}" stroke-width="1.5" stroke-linejoin="round"><path d="M5 14h6L9 2H7zM8 10l4-6"/></svg>`;
const svgPen = c => `<svg viewBox="0 0 16 16" fill="none" stroke="${c}" stroke-width="1.6" stroke-linecap="round"><path d="M3 13l1-3 7-7 2 2-7 7z"/></svg>`;
function knob(val, hot, label) {
const a0 = 135, a1 = 135 + 270 * val, r = 14, cx = 18, cy = 18;
const p = d => [cx + r * Math.cos(d * Math.PI / 180), cy + r * Math.sin(d * Math.PI / 180)];
const [x0, y0] = p(a0), [x1, y1] = p(a1), [xe, ye] = p(45);
const large = (a1 - a0) > 180 ? 1 : 0;
return `<div class="knob"><svg width="36" height="36"><path d="M${x0} ${y0}A${r} ${r} 0 1 1 ${xe} ${ye}" stroke="var(--BgSunken)" stroke-width="3" fill="none" stroke-linecap="round"/>
<path d="M${x0} ${y0}A${r} ${r} 0 ${large} 1 ${x1} ${y1}" stroke="${hot ? "var(--Accent)" : "var(--VizInk)"}" stroke-width="3" fill="none" stroke-linecap="round"/>
<circle cx="18" cy="18" r="9" fill="var(--SurfaceRaised)"/></svg><span>${label}</span></div>`;
}
function mini(tid, aid) {
const t = THEMES[tid], a = ACCENTS[tid][aid];
return `<div class="mini" style="background:${t.BgApp}">
<i style="left:0;right:0;top:0;height:11px;background:${t.Panel}"></i>
<i style="left:3px;top:3px;width:8px;height:5px;border-radius:1px;background:${a.Accent}"></i>
<i style="left:13px;top:3px;width:8px;height:5px;border-radius:1px;background:${t.SurfaceRaised}"></i>
<i style="left:0;top:12px;width:28px;bottom:18px;background:${t.Panel}"></i>
<i style="left:4px;top:18px;width:16px;height:2px;background:${t.TextMuted}"></i>
<i style="left:2px;top:23px;width:24px;height:6px;border-radius:1px;background:${a.AccentSubtle}"></i>
<i style="left:34px;top:16px;width:40px;height:10px;border-radius:1px;background:${t.Track1}"></i>
<i style="left:52px;top:29px;width:50px;height:10px;border-radius:1px;background:${t.Track2};box-shadow:0 0 0 1px ${a.Accent}"></i>
<i style="left:38px;top:42px;width:30px;height:10px;border-radius:1px;background:${t.Track3}"></i>
<i style="left:78px;top:12px;width:1px;bottom:18px;background:${a.Accent}"></i>
<i style="left:0;right:0;bottom:0;height:17px;background:${t.Panel}"></i>
<i style="left:4px;bottom:3px;width:50px;height:11px;border-radius:1px;background:${t.SurfaceCard}"></i>
<i style="left:48px;bottom:9px;width:4px;height:2px;border-radius:1px;background:${a.Accent}"></i></div>`;
}
function render() {
document.querySelectorAll("#themeBar button").forEach(b => b.classList.toggle("on", b.dataset.t === theme));
const pane = document.getElementById("pane"); pane.setAttribute("style", vars(theme, accent));
const card = tid => `<div class="tcard"><div class="tframe ${tid === theme ? "on" : ""}">${mini(tid, accent)}</div>${NAMES[tid]}</div>`;
document.getElementById("cardsDark").innerHTML = card("studio-dark") + card("ember-graphite");
document.getElementById("cardsLight").innerHTML = card("studio-light") + card("ember-paper");
const acc = ACCENTS[theme];
document.getElementById("accents").innerHTML =
PRESETS.map(([id, name]) => `<div class="sw ${id === accent ? "on" : ""}" title="${name}" data-a="${id}"><i style="background:${acc[id].Accent}"></i></div>`).join("")
+ `<span class="gap"></span><span class="btn ${accent === "custom" ? "on" : ""}" data-a="custom"><b style="background:${acc.custom.Accent}"></b>Custom${svgPen("var(--TextMuted)")}</span>`
+ `<span class="readout">${accent === "custom" ? "Custom · " + CUSTOM : PRESETS.find(p => p[0] === accent)[1]}</span>`;
document.querySelectorAll("[data-a]").forEach(e => e.onclick = () => { accent = e.dataset.a; render(); });
// pickers: three states, worn in the current theme
const picker = (title, hex, sv, hue, inT, note, bad) => `<div><div class="cap" style="margin:0 0 6px">${title}</div>
<div class="scope" style="${vars(theme, accent)};padding:14px;background:var(--Panel)"><div class="pop">
<div class="sv" style="background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,hsl(${hue},100%,50%))"><span class="h" style="left:${sv[0]}%;top:${sv[1]}%"></span></div>
<div class="hue"><span class="h" style="left:${hue / 3.6}%"></span></div>
<div class="prow2"><div class="chips2"><i style="background:${ACCENTS[theme].violet.Accent}" title="Before"></i><i style="background:${hex}" title="New"></i></div>
<div class="field focus">${hex}</div></div>
<div class="lbl">In themes</div>
<div class="inthemes">${inT}</div>
<div class="pnote ${bad ? "bad" : ""}">${note}</div>
</div></div></div>`;
const short = n => n.replace("Studio ", "S. ").replace("Ember ", "E. ");
const reason = w => w === "grey" ? "Pick a colour, not a grey — the accent has to read as a colour."
: w === "unreadable" ? "No lightness keeps this readable"
: `Too close to ${w}`;
const ex = (hexv, title) => {
const e = EXAMPLES[hexv], rows = e.rows;
const strip = Object.keys(NAMES).map(tid => `<div><i class="${rows[tid] && rows[tid].adjusted ? "adj" : ""}" style="background:${rows[tid] ? rows[tid].Accent : "var(--BgSunken)"}"></i>${short(NAMES[tid])}</div>`).join("");
let note, bad = false;
if (e.why.length) {
bad = true;
note = e.why[0][1] === "grey" ? reason("grey")
: `${reason(e.why[0][1])} in ${e.why.map(w => w[0]).join(", ")} — pick another colour. The accent stays as it was.`;
} else {
const adj = Object.keys(NAMES).filter(t => rows[t].adjusted).map(t => NAMES[t]);
note = adj.length === 4 ? "Lightness adjusted slightly in every theme so the ink on it stays readable."
: adj.length ? `Lightness adjusted in ${adj.join(", ")} to stay readable.` : "Worn as is in every theme.";
}
const [hh, ss, vv] = e.hsv;
return picker(title, hexv, [ss, 100 - vv], hh, strip, note, bad);
};
document.getElementById("pickers").innerHTML =
ex("#00B5D8", "Fits as is") + ex("#4C6FFF", "Adjusted") + ex("#3FA7FF", "Refused: clashes in one theme") + ex("#8C8C8C", "Refused: a grey");
// specimens
const spec = document.getElementById("spec"); spec.setAttribute("style", vars(theme, accent));
spec.innerHTML = `
<div class="lbl">Transport: play, loop, metronome on</div>
<div class="tp"><span class="key on">${svgPlay("var(--TextOnAccent)")}</span><span class="key on">${svgLoop("var(--TextOnAccent)")}</span><span class="key">${svgMet("var(--TextSecondary)")}</span>
<span style="width:10px"></span><div class="seg"><span class="on">Arrangement</span><span>Session</span></div></div>
<div class="lbl">Lane: loop brace, selected clip, playhead</div>
<div class="lane"><span class="loop" style="left:40px;width:150px"></span><span class="clip" style="left:10px;width:90px;background:${TRACK(1)}"></span>
<span class="clip sel" style="left:120px;width:110px;background:${TRACK(5)}"></span><span class="ph" style="left:170px"></span></div>
<div class="lbl">List: picked row (soft tint), menu hover (solid)</div>
<div class="row" style="gap:10px"><div class="list"><div class="li">Drums</div><div class="li pick">Bass · picked</div><div class="li">Keys</div></div>
<div class="list" style="width:150px"><div class="li">Rename</div><div class="li hov">Duplicate</div><div class="li">Delete</div></div></div>
<div class="lbl">Device values: at rest neutral, dragged accent · power on</div>
<div class="knobs">${knob(0.62, false, "Cutoff")}${knob(0.4, true, "Reso · drag")}<span class="sw2 on"><i></i></span><span class="sw2"><i></i></span></div>
<div class="lbl">Accent line (graph frame on listen) · accent text</div>
<div class="row" style="gap:16px;align-items:center"><div class="brass">${[3,6,9,7,12,15,11,8,5,9].map((h,i)=>`<u class="${i==5?"hot":""}" style="height:${h*2}px"></u>`).join("")}</div>
<span class="txt">Link · 4 bars</span><span class="mono" style="color:var(--TextMuted)">${ACCENTS[theme][accent].Accent}</span></div>`;
// matrix
const m = document.getElementById("matrix");
m.innerHTML = `<tr><th></th>${Object.values(NAMES).map(n => `<th>${n}</th>`).join("")}</tr>` +
PRESETS.concat([["custom", "Custom " + CUSTOM]]).map(([id, name]) => `<tr><th>${name}</th>${Object.keys(NAMES).map(tid =>
`<td><div class="scope cell" style="${vars(tid, id)}"><span class="key on">${svgPlay("var(--TextOnAccent)")}</span>
<div class="lane"><span class="clip sel" style="left:8px;width:60px;background:${TRACK(5)}"></span><span class="ph" style="left:40px"></span></div>
<div class="li pick" style="color:var(--AccentBright)">Bass</div>
<div class="hexes">${ACCENTS[tid][id].Accent}<br>${ACCENTS[tid][id].AccentSubtle}</div></div></td>`).join("")}</tr>`).join("");
}
document.getElementById("themeBar").innerHTML = Object.entries(NAMES).map(([id, n]) => `<button data-t="${id}">${n}</button>`).join("");
document.querySelectorAll("#themeBar button").forEach(b => b.onclick = () => { theme = b.dataset.t; render(); });
render();
</script>
</body>
</html>