docs: web comments say what the app does, not how it came to be (#6277)
Rewrites the web app's comments to rule 32. Task, milestone, rule and spec ids are gone; regression stories are restated as the trap they guard (public auth routes, the menu's stopPropagation, universal loads under adapter-static, metric deltas with their margin). Flutter and Tauri mentions now name the Android app or a native shell, operator quotes and dates are dropped, and one library's counts no longer appear outside test fixtures. Verified with a TypeScript-scanner token comparison (template literals and regex literals re-scanned): only comment text changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Finds a hue painted as TEXT on a tint of itself (#3150). The tint sits close
|
||||
// Finds a hue painted as TEXT on a tint of itself. The tint sits close
|
||||
// to the surface under it, so the raw hue on it measures 1.6–2.4:1 against
|
||||
// AA's 4.5. The fix is the hue's -fg partner (tokens.json colors.fg), mixed
|
||||
// toward parchment: accent-fg on an accent tint measures 5.03.
|
||||
@@ -67,7 +67,7 @@ export function findCss(source) {
|
||||
// Hues that fail AA as text even on a plain surface, so the raw hue is never
|
||||
// text at all. Dark mode, against 4.5:
|
||||
// error 2.64 on slate, 3.23 on iron → error-fg 5.30 at worst
|
||||
// accent 2.21 on slate, 3.04 on the page → accent-fg 5.62 at worst (#5318)
|
||||
// accent 2.21 on slate, 3.04 on the page → accent-fg 5.62 at worst
|
||||
// Accent icons (the liked heart, active shuffle/repeat) follow too: as
|
||||
// graphics they only need 3:1, and the raw accent misses even that on iron.
|
||||
// A border or outline in the hue is a graphic and stays allowed.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env node
|
||||
// Reads ../src/lib/styles/tokens.json and emits tokens.generated.css.
|
||||
// Single source of truth for FabledSword tokens shared with the Flutter
|
||||
// client. Keep output deterministic — Tailwind reads tokens.json directly,
|
||||
// the .css emission is for raw CSS consumers and theme switching.
|
||||
// Reads ../src/lib/styles/tokens.json and emits tokens.generated.css. Single
|
||||
// source of truth for the FabledSword tokens, which the Android app mirrors in
|
||||
// FabledSwordTokens.kt. Keep output deterministic — Tailwind reads tokens.json
|
||||
// directly, the .css emission is for raw CSS consumers and theme switching.
|
||||
import { readFileSync, writeFileSync } from 'node:fs';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { dirname, resolve } from 'node:path';
|
||||
@@ -19,7 +19,7 @@ export function emit(tokens) {
|
||||
for (const [name, value] of Object.entries(tokens.colors.flat)) {
|
||||
lines.push(` --fs-${name}: ${value};`);
|
||||
}
|
||||
// The house -fg tokens (FabledSword, 2026-08-27; #3150): a hue as TEXT on a
|
||||
// The house -fg tokens: a hue as TEXT on a
|
||||
// tint of itself, mixed toward parchment. Parchment inverts in light mode,
|
||||
// so one declaration lightens the text on dark surfaces and darkens it on
|
||||
// light ones. Declared on :root, the element data-theme is set on, so the
|
||||
|
||||
Reference in New Issue
Block a user