Skip to content

Commit

Permalink
docs: fix dark mode preview for API docs (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini authored Dec 18, 2024
1 parent 85df112 commit 7db8ca3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/api/.storybook/preview.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
/** @type { import('@storybook/react').Preview } */
import "./styles.css";
import { Unstyled } from "@storybook/blocks";

const preview = {
decorators: [
(Story) => (
<Unstyled>
<div className="prose prose-dark dark:prose-lighter">
<Story />
</div>
</Unstyled>
),
],
parameters: {
backgrounds: {
values: [
Expand Down

0 comments on commit 7db8ca3

Please sign in to comment.