fix(ui-components): correct the setup of tailwind default styles (#45369)
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
import '../src/base.css';
|
||||||
|
|
||||||
export const parameters = {
|
export const parameters = {
|
||||||
controls: {
|
controls: {
|
||||||
matchers: {
|
matchers: {
|
||||||
|
@ -60,6 +60,7 @@
|
|||||||
"storybook:theming": "npm run storybook --no-manager-cache",
|
"storybook:theming": "npm run storybook --no-manager-cache",
|
||||||
"build-storybook": "build-storybook",
|
"build-storybook": "build-storybook",
|
||||||
"build": "cross-env NODE_ENV=production rollup -c",
|
"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",
|
"dev": "cross-env NODE_ENV=development rollup -c -w",
|
||||||
"clean": "rimraf dist/*",
|
"clean": "rimraf dist/*",
|
||||||
"gen-component": "ts-node ./utils/gen-component-script"
|
"gen-component": "ts-node ./utils/gen-component-script"
|
||||||
|
3
tools/ui-components/src/base.css
Normal file
3
tools/ui-components/src/base.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
@ -1,5 +1,3 @@
|
|||||||
@import './global.css';
|
|
||||||
|
|
||||||
.storybook-button {
|
.storybook-button {
|
||||||
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
@import 'tailwindcss/base';
|
|
||||||
@import 'tailwindcss/components';
|
|
||||||
@import 'tailwindcss/utilities';
|
|
||||||
@import './colors.css';
|
|
@ -1,5 +1,4 @@
|
|||||||
// Use this file as the entry point for component export
|
// Use this file as the entry point for component export
|
||||||
import './global.css';
|
|
||||||
export { Button } from './button';
|
export { Button } from './button';
|
||||||
export { Alert } from './alert';
|
export { Alert } from './alert';
|
||||||
export { Image } from './image';
|
export { Image } from './image';
|
||||||
|
Reference in New Issue
Block a user