Skip to content

Commit

Permalink
fix(sb): improve styles
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Aug 31, 2024
1 parent 6e21557 commit 82f80f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
15 changes: 1 addition & 14 deletions .storybook/preview.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
.dark .sbdocs {
background: #000 !important;
color: #fff !important;
}

.dark .sbdocs-title,
.dark .sb-anchor h2,
.dark .sb-anchor h3,
.dark .sb-anchor h4,
.dark .docblock-argstable thead,
.dark [class^="css-"] thead th {
color: #fff !important;
}

.sbdocs-preview,
.dark .sbdocs-preview {
.sbdocs-preview {
background: var(--background) !important;
color: var(--foreground) !important;
}
Expand Down
3 changes: 2 additions & 1 deletion src/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
}

body {
@apply bg-background text-foreground;
background: var(--background);
color: var(--foreground);
}
}
4 changes: 2 additions & 2 deletions src/stories/collapsible.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react';
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../components/ui/collapsible';
import { Button } from '../components/ui/button';
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../components/ui/collapsible';

const meta: Meta<typeof Collapsible> = {
title: 'UI/Collapsible',
Expand All @@ -18,7 +18,7 @@ export const Default: Story = {
<Button variant="outline">Toggle</Button>
</CollapsibleTrigger>
<CollapsibleContent>
<div className="p-4 mt-2 rounded-md bg-slate-100">
<div className="p-4 mt-2 rounded-md bg-background">
Content that can be collapsed
</div>
</CollapsibleContent>
Expand Down

0 comments on commit 82f80f4

Please sign in to comment.