ZDDC/transmittal/css
ZDDC 538167b5c8 style(transmittal): tokenize utility classes, drop !important dark overrides
transmittal/css/utilities.css hand-rolled a Tailwind-style utility
subset against hardcoded grayscale (#fff, #f9fafb, #d1d5db etc.)
tuned for light mode. Dark mode then needed a 17-line block of
!important rules in transmittal/css/base.css to swing each utility
class's background/text/border colors. That block was the worst
concentration of !important in the repo.

Tokenize the grayscale classes against shared CSS custom properties
(var(--bg), var(--bg-secondary), var(--text), var(--text-muted),
var(--border)) so the cascade picks up dark mode automatically:

  .bg-white, .bg-gray-50, .bg-gray-100  → var(--bg) / var(--bg-secondary)
  .text-gray-{400..700,900}             → var(--text-muted) / var(--text)
  .border, .border-{b,t}, .border-gray-* → var(--border)
  .hover:bg-gray-{50,100}               → var(--bg-hover)
  .focus:bg-white:focus                 → var(--bg)

Named-color text classes (.text-blue-600 / -green-600 / -red-600)
stay hardcoded — they encode link / success / danger semantics that
should not theme-shift.

The .table-filter-input dark-mode block also went — it was unused
(no element references it; .column-filter from shared is what gets
applied to the actual filter inputs).

!important count in transmittal's non-print CSS dropped from ~32 to
~12. The 6 transmittal Playwright specs still pass.

Verification needed: visually inspect transmittal in both light and
dark mode and flag any color regression. The token mapping is
mechanical but the live rendered output is the only proof.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 18:59:55 -05:00
..
base.css style(transmittal): tokenize utility classes, drop !important dark overrides 2026-05-09 18:59:55 -05:00
filter.css Initial commit 2026-04-27 11:05:47 -05:00
forms.css Initial commit 2026-04-27 11:05:47 -05:00
layout.css chore(headers): standardize across all 7 tools 2026-05-04 07:49:17 -05:00
markdown-editor.css Initial commit 2026-04-27 11:05:47 -05:00
markdown.css Initial commit 2026-04-27 11:05:47 -05:00
modal.css Initial commit 2026-04-27 11:05:47 -05:00
print.css Initial commit 2026-04-27 11:05:47 -05:00
remarks.css Initial commit 2026-04-27 11:05:47 -05:00
table.css Initial commit 2026-04-27 11:05:47 -05:00
utilities.css style(transmittal): tokenize utility classes, drop !important dark overrides 2026-05-09 18:59:55 -05:00