Skip to content

Commit

Permalink
fix dark mode text in storybook docs view
Browse files Browse the repository at this point in the history
  • Loading branch information
basher committed Nov 12, 2024
1 parent acb3a9f commit 565ba97
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions ui/public/storybook-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,7 @@
font-weight: 600;
}

/* Override dark mode in Storybook docs. */
:root :has(#storybook-docs:not([hidden='true'])) {
@media (prefers-color-scheme: dark) {
--color-brand: 270 50% 80%;
--color-text: 0 0% 20%;
--color-background: 0 0% 100%;
--color-neutral-900: 0 0% 0%;
--color-neutral-100: 0 0% 85%;
}

color-scheme: light !important;
/* Override dark mode in Storybook docs so text is legible. */
[data-story-block='true'] {
color: hsl(0 0% 20%);
}

0 comments on commit 565ba97

Please sign in to comment.