Skip to content

Commit a6e9a4a

Browse files
authored
chore: update storybook (#43)
1 parent 6f70405 commit a6e9a4a

7 files changed

Lines changed: 982 additions & 842 deletions

File tree

.storybook/preview-head.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<style>
2+
body {
3+
background-color: #ffffff;
4+
color: #000000;
5+
transition: background-color 0.2s, color 0.2s;
6+
}
7+
8+
@media (prefers-color-scheme: dark) {
9+
body {
10+
background-color: #1a1a1a;
11+
color: #ffffff;
12+
}
13+
}
14+
</style>

.storybook/preview.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { Preview } from "@storybook/react";
2+
3+
const preview: Preview = {
4+
parameters: {
5+
backgrounds: { disable: true },
6+
},
7+
};
8+
9+
export default preview;

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ const Component = () => {
9494

9595
There's a limited possibility to adjust the styles (background color, outline color, border radius, etc.) of the focused items using the `itemOptions` property.
9696

97+
By default, the focus outline and background colors inherit from the element's `currentColor`, so the component adapts automatically to your text color — including dark mode.
98+
9799
```jsx
98100
const Component = () => {
99101
...

0 commit comments

Comments
 (0)