feat(tools): setup TailwindCSS in ui-components (#42153)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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}
|
||||
|
3
tools/ui-components/src/global.css
Normal file
3
tools/ui-components/src/global.css
Normal file
@@ -0,0 +1,3 @@
|
||||
@import 'tailwindcss/base';
|
||||
@import 'tailwindcss/components';
|
||||
@import 'tailwindcss/utilities';
|
Reference in New Issue
Block a user