add dark mode

This commit is contained in:
2024-05-04 13:57:37 +02:00
parent 06afed2826
commit 53fd110663
8 changed files with 6733 additions and 6196 deletions

6
.storybook/manager.js Normal file
View File

@@ -0,0 +1,6 @@
import { addons } from '@storybook/manager-api'
import { themes } from '@storybook/theming'
addons.setConfig({
theme: themes.dark,
})

View File

@@ -2,11 +2,24 @@ import '@fontsource/roboto/400.css'
import '@fontsource/roboto/700.css'
import '../src/styles/index.scss'
import { themes } from '@storybook/theming'
import type { Preview } from '@storybook/react'
const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
docs: {
theme: themes.dark,
},
backgrounds: {
default: 'dark',
values: [
{
name: 'dark',
value: '#000000',
},
],
},
controls: {
matchers: {
color: /(background|color)$/i,