Skip to content

Commit 68b3fb5

Browse files
committed
feat: enable tailwind with storybook
1 parent abec4cc commit 68b3fb5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

site/.storybook/preview.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* Storybook decorator function used to inject baseline data dependencies into
1717
* our React components during testing.
1818
*/
19+
import "../src/index.css";
1920
import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
2021
import CssBaseline from "@mui/material/CssBaseline";
2122
import {

site/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
},
66
darkMode: ["selector"],
77
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
8-
important: "#root",
8+
important: ["#root", "#storybook-root"],
99
theme: {
1010
fontSize: {
1111
"2xs": ["0.626rem", "0.875rem"],

0 commit comments

Comments
 (0)