storybook-addon-customize-antd-theme
A Storybook addon that help you visually customize an ant design theme in the addon panel for better UI-development workflow.
Requirements
Getting started
1. Install
npm install -D storybook-addon-customize-antd-theme
2. Register the addon in main.js
module.exports = {
stories: ['storybook-addon-customize-antd-theme/dist/esm/stories/index.js'],
addons: ['storybook-addon-customize-antd-theme'],
};
3. Setting default story states
You can initial setup ant design theme, by setting the customizeAntdTheme
property on parameters
:
export const parameters = {
customizeAntdTheme: {
modifyVars: {
'primary-color': '#ff1771',
'border-radius-base': '20px',
},
},
};