Skip to content

Commit

Permalink
feat: mod style inject method and mod reset body bg
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxiaolang committed Jun 18, 2024
1 parent 07e8e81 commit 8ab72a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { addons } from '@storybook/addons';
import type { Preview } from '@storybook/angular';

import docJson from '../documentation.json';
// eslint-disable-next-line import/no-webpack-loader-syntax, import/no-unresolved
import '!style-loader!css-loader!sass-loader!./global.scss';

setCompodocJson(docJson);

Expand Down
2 changes: 1 addition & 1 deletion .storybook/reset-browser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ body {
min-width: 100%;
min-height: 100%;
color: use-text-color(main);
background-color: use-rgb(main-bg);
background-color: use-rgb(n-10);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
Arial, 'Microsoft YaHei', sans-serif;
font-size: 14px;
Expand Down
4 changes: 1 addition & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
"browserTarget": "storybook:build",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
"port": 6006,
"styles": [".storybook/global.scss"]
"port": 6006
}
},
"build-storybook": {
Expand All @@ -76,7 +75,6 @@
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
"outputDir": "dist",
"styles": [".storybook/global.scss"],
"enableProdMode": false // FIXME: https://github.com/storybookjs/storybook/issues/23534
}
}
Expand Down

0 comments on commit 8ab72a5

Please sign in to comment.