feat(tools): setup TailwindCSS in ui-components (#42153)

This commit is contained in:
Huyen Nguyen
2021-05-17 14:13:27 +07:00
committed by GitHub
parent c666e83d6f
commit ed094523e4
7 changed files with 705 additions and 23 deletions

View File

@@ -1,3 +1,5 @@
@import './global.css';
.storybook-button {
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 700;
@@ -28,3 +30,7 @@
font-size: 16px;
padding: 12px 24px;
}
.fcc-style {
@apply bg-darkGreen;
}

View File

@@ -18,9 +18,12 @@ export const Button = ({
: 'storybook-button--secondary';
return (
<button
className={['storybook-button', `storybook-button--${size}`, mode].join(
' '
)}
className={[
'storybook-button',
`storybook-button--${size}`,
mode,
'fcc-style'
].join(' ')}
style={{ backgroundColor }}
type='button'
{...props}

View File

@@ -0,0 +1,3 @@
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';