Repository navigation
fix(ui): apply semantic dark-theme data display colors - #33294
Conversation
✅ Playwright Results — workflow succeededValidated commit ✅ 4498 passed · ❌ 0 failed · 🟡 9 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 57m 11s ⏱️ Max setup 5m 21s · max shard execution 25m 0s · max shard-job elapsed before upload 28m 17s · reporting 26s 🌐 219.17 requests/attempt · 2.24 app boots/UI scenario · 46.13% common-shard skew Optimization targets still in progress:
🟡 9 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
The merged token foundation (#33249) shipped a flat neutral dark ramp (#141414/#222222/#2e2e2e), but the approved AI dark-mode design (Collate prototype recording + palette guideline) uses a blue-tinted neutral ramp. Re-tint the .dark-mode gray steps to the approved values so every dark surface, text, and border role that aliases them follows automatically: page #141414 -> #0c0e12 surface #222222 -> #22262f canvas #191919 -> #13161b raised #2e2e2e -> #373a41 Also corrects two border roles that shipped two steps too light versus the Gate 0 contract: border-primary gray-500 -> gray-700, border-hover gray-400 -> gray-600. Light mode is untouched (changes are scoped to .dark-mode). Contract test assertions and the color spec are updated; generated token files regenerated. Refs open-metadata/openmetadata-collate#6565 open-metadata/openmetadata-collate#6564 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Card, TableCard and Badge draw their subtle edge with `tw:outline-subtle` (replacing outline-secondary/outline-primary), but the outline-color namespace never defined a `subtle` role. Tailwind emitted no color, so the outline fell back to `currentColor` (the text color) instead of the subtle border. Add `--outline-color-subtle` to both the @theme and .dark-mode blocks, aliasing `--color-border-subtle` exactly like `--border-color-subtle`. Add a theme-contract assertion for the token in both themes; the existing component tests only asserted the class string was present, which passed despite the broken styling. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|



Describe your changes:
Closes open-metadata/openmetadata-collate#6570
Gate contract: open-metadata/openmetadata-collate#6564
Token foundation: #33249
Color prototypes: #33150 and open-metadata/openmetadata-collate#6491
This migrates shared data-display primitives to the approved semantic dark-theme roles:
bg-surface,border-subtle, and semantic elevation roles.Expanded scope — global token-foundation follow-up (bundled per request; owned by open-metadata/openmetadata-collate#6565, not data-display). Runtime Storybook review found the merged foundation (#33249) shipped values that did not match the AI dark-mode recording (source of truth). Corrected here:
#141414->#0c0e12, canvas#191919->#13161b, surface#222222->#22262f, raised/control-border#2e2e2e->#373a41; text secondary/tertiary/primary to#cecfd2/#94979c/#f7f7f7.border-primaryGray 500->Gray 700,border-hoverGray 400->Gray 600 (were two steps too light vs the Gate 0 contract).--alpha(theme(...)),theme(--shadow-*)) so status backgrounds,border-subtle, and semantic shadows can no longer resolve to transparent/none in the prefixed theme scope.--color-utility-*remaps into--tw-color-utility-*and added--tw-outline-color-subtle, so colored Badges/Cards andtw:outline-subtleactually flip in dark..dark-mode). Gate 0 MSSQL Lineage query #6564 and Metadata to ES pipeline minor changes #6565 descriptions updated to the corrected values. Atheme-contractguard now fails CI if any dark utility-color remap is left unmirrored.Type of change:
High-level design:
Shared data-display components select roles rather than light/dark values.
bg-surface,border-subtle, andshadow-cardresolve through the root theme contract, so theme switching requires no component-level dark selectors. Status badge palettes continue to use the existing utility status tokens because those tokens already define theme-aware categorical treatments.Component APIs, layout, selection, sorting, pagination behavior, and status meanings are unchanged. The migration contains no
--ai-*tokens, raw theme colors, page-local palettes, or explicit dark-mode selectors.Tests:
Use cases covered
Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Static verification
--om-letter-spacing-wideremains onorigin/mainand is addressed by fix(ui): apply semantic dark-theme component colors #33255.git diff --checkpassed.UI screen recording / screenshots:
Not attached. Existing Card, Badge, Table, and Pagination Storybook stories exercise these shared primitives; this change replaces color sources without changing component layout or interaction behavior.
Checklist: