Skip to content

Commit fb1b33f

Browse files
committed
Workaround for docs theming issue
1 parent 7689246 commit fb1b33f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.storybook/preview.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Preview } from '@storybook/react-vite'
22
import { withThemeByClassName } from '@storybook/addon-themes'
33
// @ts-expect-error TS2307 - not a module
44
import '../src/styles/global.css'
5+
import './storybook.css'
56

67
const preview: Preview = {
78
parameters: {

.storybook/storybook.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* https://github.com/storybookjs/storybook/issues/26242 */
2+
.docs-story {
3+
background-color: var(--background);
4+
color: var(--foreground);
5+
}

0 commit comments

Comments
 (0)