Skip to content

Commit

Permalink
[fix] Antd theme less styles in Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
amivanoff committed Sep 5, 2021
1 parent 4ba146b commit 53fce40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ module.exports = {
name: '@storybook/preset-ant-design',
options: {
lessOptions: {
//see https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
modifyVars: {
//'primary-color': '#1864FB', //'#1DA57A', // primary color for all components 24 100 251
'primary-color': '#1864FB', //'#1DA57A', // primary color for all components 24 100 251
'font-size-base': '12px', // major text font size
//'link-color': '#1DA57A',
'link-color': '#1DA57A',
},
},
},
Expand Down
2 changes: 2 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'antd/dist/antd.less';

// https://storybook.js.org/docs/react/writing-stories/parameters#global-parameters
export const parameters = {
// https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args
Expand Down

0 comments on commit 53fce40

Please sign in to comment.