Compare commits

..

No commits in common. "27456c431adfb4d3f00839bc06862a0ed588f791" and "7f2c1e19df7b2732f79ad579339c2dc4213d401a" have entirely different histories.

2 changed files with 16 additions and 67 deletions

View File

@ -1,47 +0,0 @@
{
"intent": "Retint kcd2_dice_solver/src/index.css to the frozen unified-design-system palette and fix every violation in the repo's own DESIGN_AUDIT_TODO.md entry for this app.",
"scope": ["kcd2_dice_solver/src/index.css"],
"changes": [
"Root font-size 15px -> 16px (fixes body-text floor and straightens the rem-based spacing grid onto clean 4px multiples in one change, per the audit's own root-cause note)",
"New --tier-tin/--tier-silver custom properties replace hardcoded #a8a196/#cfd4da hex; tier-tin also darkened (was clustering within 2 L* points of --accent/--good) and tier-silver re-tinted warm (was the one cool-leaning hex in an otherwise all-warm palette)",
"--line darkened-neutral -> #736750 (was ~1.4:1 against bg/panel, now >=3:1 against both, computed)",
"header h1 letter-spacing 0.02em -> -0.01em (largest text was widening tracking instead of tightening it)",
"New --radius-sm(3px)/--radius-md(8px) tokens replace the ad-hoc 3/4/6/8px radii; nested elements (.search, .die-list, .die-main, .die-tag, .stepper-value, .stats div) now use the smaller radius since they sit well inside an 8px-radius, 16px-padding outer panel (nesting should trend toward 0, not stay equal to the outer radius)",
".search and .clear/.stepper-button padding corrected to an exact 2x horizontal:vertical ratio (0.5rem 1rem); was 1.5x and 1.75x respectively",
".hint font-size 0.85rem -> 1rem (flagged reading-content text under the 16px floor)"
],
"verification": [
{
"command": "pnpm run lint",
"result": "pass",
"evidence": "tsc --noEmit && eslint src clean"
},
{
"command": "pnpm run coverage",
"result": "pass",
"evidence": "14 test files, 210 tests passed; 100% statements/branches/functions/lines"
},
{
"command": "pnpm run build",
"result": "pass",
"evidence": "vite build succeeded, dist/ regenerated"
},
{
"command": "isolated git worktree re-run of lint+coverage+build at the commit's parent HEAD",
"result": "pass",
"evidence": "identical results to the dirty-tree run"
},
{
"command": "pnpm run preview + headless-Chrome screenshot of the real production build",
"result": "pass",
"evidence": "visually reviewed: crisp visible borders on search/die-list/panels, tighter title tracking, distinct tin/silver/gold tier colors, no layout breakage"
}
],
"risks": [
"No deploy target for this repo (local dev tool) — verification ceiling is the production build + preview, not a live check",
"Exact L*/contrast values were hand-computed with the standard sRGB->linear approximation (not the WCAG piecewise formula), same caveat the original audit itself carries; margins were kept generous (>=3.1:1 vs the 3:1 floor) to absorb the approximation error"
],
"rollback": [
"git revert this commit — the change is a single CSS file, no other files coupled to it"
]
}

View File

@ -2,20 +2,16 @@
--bg: #17150f;
--panel: #201d16;
--panel-2: #2a261d;
--line: #736750;
--line: #3a3428;
--text: #e8e0cf;
--muted: #9d947f;
--accent: #c8a24a;
--good: #7fb069;
--bad: #c96b5b;
--tier-tin: #8a8175;
--tier-silver: #d4cfc2;
--radius-sm: 3px;
--radius-md: 8px;
color-scheme: dark;
font-family: "Iosevka", "Cascadia Code", ui-monospace, "SF Mono", Menlo, monospace;
font-size: 16px;
font-size: 15px;
background: var(--bg);
color: var(--text);
}
@ -38,7 +34,7 @@ header h1 {
margin: 0;
font-size: 1.5rem;
color: var(--accent);
letter-spacing: -0.01em;
letter-spacing: 0.02em;
}
.subtitle {
@ -64,7 +60,7 @@ section.inventory,
.caveats {
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius-md);
border-radius: 8px;
padding: 1rem;
}
@ -86,10 +82,10 @@ section.inventory,
.search {
flex: 1;
padding: 0.5rem 1rem;
padding: 0.5rem 0.75rem;
background: var(--bg);
border: 1px solid var(--line);
border-radius: var(--radius-sm);
border-radius: 6px;
color: var(--text);
font: inherit;
}
@ -109,11 +105,11 @@ section.inventory,
.stepper-button {
background: var(--panel-2);
border: 1px solid var(--line);
border-radius: var(--radius-sm);
border-radius: 6px;
color: var(--text);
font: inherit;
cursor: pointer;
padding: 0.5rem 1rem;
padding: 0.4rem 0.7rem;
}
.clear:disabled,
@ -129,7 +125,7 @@ section.inventory,
.hint {
color: var(--muted);
font-size: 1rem;
font-size: 0.85rem;
margin: 0.6rem 0;
}
@ -149,7 +145,7 @@ section.inventory,
max-height: 46vh;
overflow-y: auto;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
border-radius: 6px;
}
.die-row {
@ -180,7 +176,7 @@ section.inventory,
text-align: left;
cursor: pointer;
padding: 0.35rem;
border-radius: var(--radius-sm);
border-radius: 4px;
min-width: 0;
}
@ -239,7 +235,7 @@ section.inventory,
font-size: 0.7rem;
color: var(--bg);
background: var(--accent);
border-radius: var(--radius-sm);
border-radius: 3px;
padding: 0 0.3rem;
}
@ -257,7 +253,7 @@ section.inventory,
text-align: center;
background: var(--bg);
border: 1px solid var(--line);
border-radius: var(--radius-sm);
border-radius: 6px;
color: var(--text);
font: inherit;
}
@ -272,10 +268,10 @@ section.inventory,
}
.tier-tin {
color: var(--tier-tin);
color: #a8a196;
}
.tier-silver {
color: var(--tier-silver);
color: #cfd4da;
}
.tier-gold {
color: var(--accent);
@ -338,7 +334,7 @@ section.inventory,
.stats div {
background: var(--panel-2);
border-radius: var(--radius-sm);
border-radius: 6px;
padding: 0.5rem 0.6rem;
}