fix(ui-components): correct the setup of tailwind default styles (#45369)

This commit is contained in:
Huyen Nguyen
2022-03-15 19:20:57 +07:00
committed by GitHub
parent 193973f7ec
commit 610ba7b3e9
6 changed files with 6 additions and 7 deletions

View File

@ -1,3 +1,5 @@
import '../src/base.css';
export const parameters = {
controls: {
matchers: {

View File

@ -60,6 +60,7 @@
"storybook:theming": "npm run storybook --no-manager-cache",
"build-storybook": "build-storybook",
"build": "cross-env NODE_ENV=production rollup -c",
"build:css": "npx tailwindcss -i ./src/base.css -o ./dist/base.css --minify",
"dev": "cross-env NODE_ENV=development rollup -c -w",
"clean": "rimraf dist/*",
"gen-component": "ts-node ./utils/gen-component-script"

View File

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@ -1,5 +1,3 @@
@import './global.css';
.storybook-button {
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 700;

View File

@ -1,4 +0,0 @@
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import './colors.css';

View File

@ -1,5 +1,4 @@
// Use this file as the entry point for component export
import './global.css';
export { Button } from './button';
export { Alert } from './alert';
export { Image } from './image';