mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-14 22:54:01 -06:00
bb02fc53ea
Every dark palette defines --secondary with the same hex as --card, so the markdown code chip painted with --secondary collapsed into the surface it sat on (1.00:1 against a user bubble, 1.06-1.08:1 against the flat assistant column) and --border was too close to the background to draw an edge. Light mode never showed the bug because it overrode both properties. Promote the light override into the single canonical rule: code chips and code blocks paint --bg-muted with a --border-strong edge in every theme, and the mode-specific overrides (including the raw rgba border) are deleted. Also fixes the theme-contrast guard, which merged repeated `:root` blocks by overwriting instead of merging, so the default `dark` theme resolved to an empty token map and skipped every assertion. A new case reads the chip tokens out of the shipped rule and asserts surface and border separation from --card and --bg on all six themes.