Skip to content

icon: a style says which ground it needs - #99

Merged
ralyodio merged 1 commit into
masterfrom
icon-style-ground
Sep 24, 2026
Merged

ralyodio merged 1 commit into
masterfrom
icon-style-ground

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Follow-up to #98, which merged while this was being written.

Rule 13 of the spec already observed that a style of near-black bodies and lit accents is right on a dark terminal and illegible on a printed page, and that only the set knows which is which. It gave a reader no field to read, so every surface had to guess from the style id.

ground is that field — light, dark or any in style_info. Only agentic-emissive is dark.

It matters more now that #98 re-renders the marks. The 22 marks whose own colour is too dark and too grey to emit (GitHub, Apple, OpenAI…) come back emitting neutral white, and on a white tile they are simply not there. The logicsrc gallery drew exactly that until it could read this field:

  • grid tiles go dark when the selected style declares ground: dark
  • in the detail hero each style tile carries its own ground, so a dark-only style beside three light ones still shows something

Verified

  • npm run typecheck: clean
  • npx vitest run test/icon.test.ts test/icon-hq.test.ts: 33 passed
  • Manifest rewritten against the real set (--no-draw, no image calls): hq and the two light agentic styles report any, agentic-emissive reports dark

🤖 Generated with Claude Code

Rule 13 already observed that a style of near-black bodies and lit
accents is right on a dark terminal and illegible on a printed page, and
that only the set knows which is which — but it gave a reader no field
to read, so every surface had to guess from the style id.

`ground` is that field: light, dark or any, written into style_info.
Only agentic-emissive is dark. It matters more now that the marks are
re-rendered: the 22 whose own colour is too dark and too grey to emit
come back emitting neutral white, and on a white tile they are simply
not there. The logicsrc gallery drew exactly that until it could read
this.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

23 finding(s)

HIGH/CRITICAL: 4 | MEDIUM: 10 | LOW: 9

Severity Rule Location
HIGH sh-remote-script-execution root-ubuntu.sh:3227
HIGH sh-remote-script-execution root-ubuntu.sh:3228
HIGH sh-remote-script-execution root-ubuntu.sh:4840
HIGH sh-remote-script-execution root-ubuntu.sh:4844
MEDIUM sh-remote-script-execution root-ubuntu.sh:4993
MEDIUM redos-nested-quantifier src/domain-free.ts:56
MEDIUM redos-nested-quantifier src/emoji.ts:167
MEDIUM redos-nested-quantifier src/icon.ts:166
MEDIUM redos-nested-quantifier src/mail.ts:1042
MEDIUM sql-template-interpolation src/users-dump.ts:487
MEDIUM sql-string-concatenation src/users-dump.ts:507
MEDIUM sql-template-interpolation src/users-dump.ts:540
MEDIUM sql-string-concatenation src/users-dump.ts:574
MEDIUM redos-nested-quantifier src/wcag.ts:556
LOW secret-generic-credential src/credentials.ts:36
LOW secret-generic-credential src/user-export.ts:632
LOW secret-generic-credential src/user-export.ts:638
LOW secret-generic-api-key test/credentials.test.ts:208
LOW secret-generic-credential test/mail.test.ts:141
LOW secret-generic-credential test/shorten.test.ts:36
LOW secret-database-url test/users-dump.test.ts:108
LOW secret-database-url test/users-dump.test.ts:119
LOW secret-database-url test/users-dump.test.ts:120

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit a918f61 into master Sep 24, 2026
5 checks passed
@ralyodio
ralyodio deleted the icon-style-ground branch September 24, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant