-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
39 lines (38 loc) · 1.13 KB
/
tailwind.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const theme = require('./src/theme').default;
const forms = require('@tailwindcss/forms');
const typography = require('@tailwindcss/typography');
const aspectRatio = require('@tailwindcss/aspect-ratio');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
"./stories/**/*.{js,jsx,ts,tsx}"
],
darkMode: 'class',
theme: {
extend: {
colors: theme.colors,
fontFamily: theme.typography.fontFamily,
fontSize: theme.typography.fontSize,
fontWeight: theme.typography.fontWeight,
spacing: theme.spacing,
borderRadius: theme.borderRadius,
boxShadow: theme.effects.boxShadow,
dropShadow: theme.effects.dropShadow,
blur: theme.effects.blur,
animation: {
shimmer: 'shimmer 2s linear infinite',
spin: 'spin 1s linear infinite',
ping: 'ping 1s cubic-bezier(0, 0, 0.2, 1) infinite',
pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
bounce: 'bounce 1s infinite',
},
keyframes: theme.animations.keyframes,
},
},
plugins: [
forms,
typography,
aspectRatio,
],
};