Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinshenoy committed Jul 20, 2023
1 parent cc02cee commit 8edf228
Show file tree
Hide file tree
Showing 12 changed files with 587 additions and 925 deletions.
14 changes: 9 additions & 5 deletions .storybook/main.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
const path = require('path');
module.exports = {
"stories": ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
"addons": ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-interactions", "@storybook/addon-postcss", '@storybook/addon-a11y', "storybook-dark-mode"],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-styling",
'@storybook/addon-a11y',
"storybook-dark-mode"
],
"framework": {
name: "@storybook/react-webpack5",
options: {}
Expand All @@ -11,12 +18,9 @@ module.exports = {
}) => {
config.module.rules.push({
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader'],
include: path.resolve(__dirname, '../src/')
});
return config;
},
docs: {
autodocs: true
}
};
1 change: 1 addition & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { themes } from '@storybook/theming';
import ThemeContextDecorator from "./utils/ThemeContext";
import '../src/style.scss';

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
Expand Down
Loading

0 comments on commit 8edf228

Please sign in to comment.