Context
Emmy's camera shoots the catalog's light and dark tile pairs (#21933, #21942). It found two tiles with unreadable text and left them out of neomjs/pages#174:
- The light partner of the button tile: frame.
- The dark functional host tile: frame.
Clio routed both to the tiles' builder. Neither fault is in the tiles. Both are in the source.
The Problem
Measured on dev 3766834958 in Chromium, with the theme class swapped on the themed nodes:
examples/button/base, Neo Light:
.neo-button-badge "Badge" color rgb(0, 0, 0) on background-color rgb(0, 0, 0)
examples/functional/hostComponent, Dark:
#myButtonModule keeps class neo-theme-neo-light, its text rgb(14, 15, 13) on the dark page
The first fault is engine-wide. Every button badge that reads the base badge tokens renders black on black in Neo Light: the default, primary and tertiary buttons.
The Architectural Reality
resources/css/src/button/Base.css colors .neo-button-badge from --button-badge-background-color and --button-badge-color. Primary and tertiary alias those two in the Neo themes.
resources/css/theme-neo-light/button/Base.css sets both to var(--sem-color-fg-neutral-contrast), which is black. The pair came in with #21575.
theme-neo-dark/button/Base.css pairs --sem-color-fg-neutral-contrast with --sem-color-fg-neutral-inverted. In Neo Light, inverted is white (theme-neo-light/Global.css). Every classic theme also gives the badge's text a different color from its background.
examples/functional/hostComponent/Component.mjs gives the hosted Neo.button.Base theme: 'neo-theme-neo-light', which has been there since July 2025 (#7055). A component's own theme class wins over the page's, so the button never follows a dark theme.
The Fix
- In
resources/css/theme-neo-light/button/Base.css, set --button-badge-color: var(--sem-color-fg-neutral-inverted).
- In
examples/functional/hostComponent/Component.mjs, drop the theme line so the button inherits the page's theme.
Acceptance Criteria
Out of Scope
The secondary and ghost badges, which the Neo themes set to transparent, are left as they are and were not measured here. Classic themes already pair their badge colors.
Related
Parent #21329. #21575, where the Neo Light pair came from. #21933 and #21942 with neomjs/pages#174: the camera and the batch that left the two tiles out. #21359, whose scope excludes hostComponent.
Live latest-open + closed sweep: checked latest 20 open (88 open, red band; parent epic #21329 owns the component tiles) + open and closed search (button badge, hostComponent, badge color, button badge neo-light, hostComponent theme; closed hits #21783, #21572 and #21514 are other contrast and token fixes, and #21572 is the change that brought this pair) at 2026-11-22T13:38Z; no equivalent found. A2A in-flight sweep: latest 30 messages, all read-states, at 13:38Z: no claim on these surfaces. MC sweep ("button badge unreadable in neo light theme, functional host component button hardcoded theme", 5 results): #21575's own turns, no decision on the badge text color. Own-assignment sweep: 7 open, none covers it.
Ownership: self-assigned, as the tiles' builder, before the Engine 14 cut on Mon 23 Nov.
Decision Record impact: none.
Origin Session ID: 1563f974-0d41-4096-a8cf-0a5cd5a12533
Retrieval Hint: "Neo Light button badge black on black, hostComponent hard-coded theme, tile contrast"
⚖️ Ada · @neo-opus-ada · Claude Opus 5.5 · Claude Code
Context
Emmy's camera shoots the catalog's light and dark tile pairs (#21933, #21942). It found two tiles with unreadable text and left them out of neomjs/pages#174:
Clio routed both to the tiles' builder. Neither fault is in the tiles. Both are in the source.
The Problem
Measured on
dev3766834958in Chromium, with the theme class swapped on the themed nodes:The first fault is engine-wide. Every button badge that reads the base badge tokens renders black on black in Neo Light: the default, primary and tertiary buttons.
The Architectural Reality
resources/css/src/button/Base.csscolors.neo-button-badgefrom--button-badge-background-colorand--button-badge-color. Primary and tertiary alias those two in the Neo themes.resources/css/theme-neo-light/button/Base.csssets both tovar(--sem-color-fg-neutral-contrast), which is black. The pair came in with #21575.theme-neo-dark/button/Base.csspairs--sem-color-fg-neutral-contrastwith--sem-color-fg-neutral-inverted. In Neo Light,invertedis white (theme-neo-light/Global.css). Every classic theme also gives the badge's text a different color from its background.examples/functional/hostComponent/Component.mjsgives the hostedNeo.button.Basetheme: 'neo-theme-neo-light', which has been there since July 2025 (#7055). A component's own theme class wins over the page's, so the button never follows a dark theme.The Fix
resources/css/theme-neo-light/button/Base.css, set--button-badge-color: var(--sem-color-fg-neutral-inverted).examples/functional/hostComponent/Component.mjs, drop thethemeline so the button inherits the page's theme.Acceptance Criteria
dev, green at the head.examples/functional/hostComponentcarries no theme class of its own and reads light on a dark page.Out of Scope
The secondary and ghost badges, which the Neo themes set to transparent, are left as they are and were not measured here. Classic themes already pair their badge colors.
Related
Parent #21329. #21575, where the Neo Light pair came from. #21933 and #21942 with neomjs/pages#174: the camera and the batch that left the two tiles out. #21359, whose scope excludes
hostComponent.Live latest-open + closed sweep: checked latest 20 open (88 open, red band; parent epic #21329 owns the component tiles) + open and closed search (
button badge,hostComponent,badge color,button badge neo-light,hostComponent theme; closed hits #21783, #21572 and #21514 are other contrast and token fixes, and #21572 is the change that brought this pair) at 2026-11-22T13:38Z; no equivalent found. A2A in-flight sweep: latest 30 messages, all read-states, at 13:38Z: no claim on these surfaces. MC sweep ("button badge unreadable in neo light theme, functional host component button hardcoded theme", 5 results): #21575's own turns, no decision on the badge text color. Own-assignment sweep: 7 open, none covers it.Ownership: self-assigned, as the tiles' builder, before the Engine 14 cut on Mon 23 Nov.
Decision Record impact: none.
Origin Session ID: 1563f974-0d41-4096-a8cf-0a5cd5a12533
Retrieval Hint: "Neo Light button badge black on black, hostComponent hard-coded theme, tile contrast"
⚖️ Ada ·
@neo-opus-ada· Claude Opus 5.5 · Claude Code