Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module.exports = {
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"storybook-css-modules"
"storybook-css-modules",
'storybook-dark-mode'
],
webpackFinal: async (config) => {
config.module.rules.push({
Expand Down
9 changes: 9 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import { themes } from '@storybook/theming';


export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
layout: 'centered',
darkMode: {
// Override the default dark theme
dark: { ...themes.dark, appBg: 'black' },
// Override the default light theme
light: { ...themes.normal, appBg: 'light' }
}
}
2 changes: 1 addition & 1 deletion components/Button/Button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface ButtonProps {
/**
* What background color to use
*/
backgroundColor?: string;
backgroundColor?: 'red';
/**
* How large should the button be?
*/
Expand Down
Loading