Skip to content

Commit

Permalink
chore(sb): use decorators instead of overriding sb styles
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Sep 5, 2024
1 parent bbde32b commit c1f37a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .storybook/preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,15 @@ body {
padding: 10px;
}

#storybook-root,
#storybook-preview-wrapper {
.bg-decorator {
padding: 1rem;
border-radius: var(--radius);
background-color: var(--background);
color: var(--foreground);
border-radius: 0.5rem;
}

.glass #storybook-root,
.glass #storybook-preview-wrapper {
.glass .bg-decorator {
backdrop-filter: blur(20px);
background-color: color-mix(in sRGB, var(--background) 60%, transparent);
}
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createTailwindPreset } from "./src/lib/create-preset";

const config: Config = {
content: ["./src/**/*.{ts,tsx,md,mdx}", "./stories/**/*.{ts,tsx,md,mdx}"],
presets: [createTailwindPreset()],
presets: [createTailwindPreset({ colors: { gray: "neutral" } })],
};

export default config;

0 comments on commit c1f37a9

Please sign in to comment.