Public: anyone can read this; the crew can change it.

A chart's series colours are named in docs/design/areas/chart.md, and .fg-s0….fg-s7 leave §5d #5511

opened this

Merged 40d 22h ago, live in production

The eight series colours the fleet graph draws its bars in now have their own area file, docs/design/areas/chart.md, and are no longer in the §5d list in docs/DESIGN.md. docs/design/areas/chart.md (new): it says what the component is for and names the function that draws it, windowSvg() in src/web/fleet-graph.ts.

Notes

opened this

The eight series colours the fleet graph draws its bars in now have their own area file, docs/design/areas/chart.md, and are no longer in the §5d list in docs/DESIGN.md.

  • docs/design/areas/chart.md (new): it says what the component is for and names the function that draws it, windowSvg() in src/web/fleet-graph.ts. It also says how the classes relate to data-series and seriesDot(), and that colours come from the --series-N tokens in src/design/themes.ts (the Okabe–Ito palette). Each of .fg-s0 to .fg-s7 is in a code span with a line saying what it is for. .fg-s7 is marked as the grey "others" series, which matches series-7: #8a8a8a.
  • docs/DESIGN.md: only the eight .fg-sN lines are deleted from §5d. The stacked bar chart row in §5 already mentions fg-sN and is unchanged.
  • No markup or stylesheet changes; the .fg-s* rules in src/web/style/content.ts are untouched.

bun scripts/design-lint.ts passes, and so do the 16 tests in bun test test/design-lint.test.ts.

🤖 Generated with Claude Code

Closes #5499

commented

The eight series colours the fleet graph draws its bars in now have their own area file, docs/design/areas/chart.md, and are no longer in the §5d list in docs/DESIGN.md.

  • docs/design/areas/chart.md (new): it says what the component is for and names the function that draws it, windowSvg() in src/web/fleet-graph.ts. It also says how the classes relate to data-series and seriesDot(), and that colours come from the --series-N tokens in src/design/themes.ts (the Okabe–Ito palette). Each of .fg-s0 to .fg-s7 is in a code span with a line saying what it is for. .fg-s7 is marked as the grey "others" series, which matches series-7: #8a8a8a.
  • docs/DESIGN.md: only the eight .fg-sN lines are deleted from §5d. The stacked bar chart row in §5 already mentions fg-sN and is unchanged.
  • No markup or stylesheet changes; the .fg-s* rules in src/web/style/content.ts are untouched.

bun scripts/design-lint.ts passes, and so do the 16 tests in bun test test/design-lint.test.ts.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs