Repository navigation
fix(ui): dark-mode destructive fill opacity and blue link button tone - #33714
Conversation
Apply 0.9 opacity to the dark error-solid fill (primary-destructive button) and flip the link-color button to the blue-300 link tone in dark, per the dark-mode palette guideline. Light mode stays unchanged. Show both variants side-by-side in Storybook (Colors, LinkColors).
useEffect in an anonymous Storybook decorator tripped react-hooks/rules-of-hooks (UI checkstyle). Move the .dark-mode body toggle into the story's render (where useState already runs), dropping the decorator.
Code Review ✅ No issues found 1 closed / 1 findings🟡 Medium risk · Dark-mode shared tokens and button behavior change across core UI components. Dark-mode palette refinements to the Button component: destructive button now uses 90% opacity on the error fill, and link buttons display blue link text ( ✅ 1 closed✅ Quality: Dark error-solid opacity change affects non-button consumers
OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Summary
Dark-mode-only fixes to the core-components
Button, per the dark-mode palette guideline. Light mode is unchanged.--color-bg-error-solid(and_hover) now use--alpha(theme(--color-error-*) / 90%), softening the solid error fill to 0.9 opacity in dark. Shared token: among buttons onlyprimary-destructivereads it.link-color) — addedtw:dark:text-link/tw:dark:hover:text-link-hover(+ icon). Dark link text is now the blue-300 link tone (#84caff) instead of the graybrand-secondarystep; light keepsbrand-secondary.ColorsandLinkColorsstories settheme: 'both'so the destructive + link variants render side-by-side in light|dark.Testing
globals.css:--alpha(... / N%)is the existing dark pattern (e.g.--color-bg-error-primary);tw:text-link/tw:text-link-hovergenerate from--text-color-link/-hover, declared identically to the workingtext-brand-secondary.node_modules).Summary by Gitar
globals.csstheme: 'both'parameter inModal.stories.tsxandBaseButton.stories.tsxstoriesThis will update automatically on new commits.
The PR appears safe to merge; no outstanding correctness or repository-rule violations remain.
Summary
This PR refines core-component dark-mode styling while preserving light-mode behavior.
Reviews (4) · Last reviewed commit: "fix(ui): move dark-mode toggle into rend..."