-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
80 lines (79 loc) · 2.4 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Example `tailwind.config.js` filecorePlugins from ('./tailwind/core');
const spacing = require('./tailwind/spacing');
const colors = require('./tailwind/colors');
const fontSize = require('./tailwind/fontsize');
const screens = require('./tailwind/screens');
const width = require('./tailwind/width');
const height = require('./tailwind/height');
const core = require('./tailwind/core');
const shadow = require('./tailwind/shadow');
module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: 'class',
corePlugins: core,
variants: {
extend: {
ringColor: ['hover'],
ringWidth: ['hover'],
borderColor: ['active', 'hover', 'disabled'],
borderWidth: ['active', 'hover'],
opacity: ['disabled', 'dark'],
backgroundColor: ['disabled'],
cursor: ['hover', 'focus', 'disabled'],
boxShadow: ['dark', 'hover'],
},
},
theme: {
spacing: spacing,
ringColor: colors,
colors: colors,
screens: screens,
minWidth: width,
maxWidth: width,
width: width,
height: height,
minHeight: height,
maxHeight: height,
inset: width,
fontFamily: {
sans: ['Roboto', 'sans-serif'],
},
boxShadow: shadow,
fontSize: fontSize,
container: {padding: spacing},
extend: {
keyframes: {
wiggle: {
'0%, 100%': {transform: 'rotateZ(-0.3deg)'},
'50%': {transform: 'rotateZ(0.3deg)'},
},
bounce: {
'0%, 100%': {transform: 'translateY(4px) translateX(4px)'},
'50%': {transform: 'translateY(0px) translateX(4px)'},
},
rotate: {
'0%': {transform: 'rotateZ(1deg)'},
'50%': {transform: 'rotateZ(90deg)'},
'100%': {transform: 'rotateZ(180deg)'},
},
up: {
'0%': {transform: 'rotateZ(10deg) rotateX(90deg)'},
'100%': {transform: 'rotateZ(0deg) rotateX(0deg)'},
},
down: {
'0%': {transform: 'translateY(0px)'},
'100%': {transform: 'translateY(500px)'},
},
},
animation: {
wiggle: 'wiggle 1s ease-in-out infinite',
bounce: 'bounce 3s ease-out infinite',
rotateSlow: 'rotate 8s infinite',
rotateFast: 'rotate 4s infinite',
up: 'up 0.3s ease-out',
down: 'down 0.3s ease-out',
},
},
},
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
};