You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dashforge/tw@1.1.1<Accordion> items hardcode light-mode Tailwind classes (border-neutral-200, text-neutral-700, text-neutral-500, text-neutral-400). In dark mode (data-dash-tw-theme="dark"), these neutrals do NOT invert automatically — dividers become invisible against dark backgrounds, and secondary text drops to near-invisible contrast.
Why this is bad
Users switching to dark mode see broken Accordion chrome without any explicit override on their side
Consumer forced to scope CSS overrides with [data-app='builder'] .accordion-item { … } to patch appearance
Contradicts the Dashforge default preset contract — neutral tokens are expected to auto-invert via the preset CSS var swap; components must not defeat that by hardcoding raw Tailwind neutrals
Discovered while
Refactoring the Blueprint Builder V2 shell. Filed in Blueprint's dogfood report as G-22 (severity: medium — visible regression in dark mode).
Workaround applied in Blueprint
Scoped CSS overrides in tokens.css using [data-app='builder'].
Acceptance
Accordion item internal classes swap to token-driven equivalents (border-[var(--dash-border)], text-[var(--dash-text-*)] etc.) so the preset CSS var swap does the right thing in both modes
Visual verification in dashforge-docs-lab playground (light + dark toggle) — dividers visible and secondary text at readable contrast in both modes
Regression test: render Accordion under data-dash-tw-theme="dark" and assert computed border color is not the light neutral-200 rgb value
Same class of bug likely present on other components — G-18 in Blueprint report noted <Chip variant="outline" color="neutral"> invisible in dark mode. Worth an audit sweep across the catalog
Symptom
@dashforge/tw@1.1.1<Accordion>items hardcode light-mode Tailwind classes (border-neutral-200,text-neutral-700,text-neutral-500,text-neutral-400). In dark mode (data-dash-tw-theme="dark"), these neutrals do NOT invert automatically — dividers become invisible against dark backgrounds, and secondary text drops to near-invisible contrast.Why this is bad
[data-app='builder'] .accordion-item { … }to patch appearanceDiscovered while
Refactoring the Blueprint Builder V2 shell. Filed in Blueprint's dogfood report as G-22 (severity: medium — visible regression in dark mode).
Workaround applied in Blueprint
Scoped CSS overrides in
tokens.cssusing[data-app='builder'].Acceptance
border-[var(--dash-border)],text-[var(--dash-text-*)]etc.) so the preset CSS var swap does the right thing in both modesdashforge-docs-labplayground (light + dark toggle) — dividers visible and secondary text at readable contrast in both modesdata-dash-tw-theme="dark"and assert computed border color is not the lightneutral-200rgb valueRelated
<Chip variant="outline" color="neutral">invisible in dark mode. Worth an audit sweep across the catalog