-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
150 lines (146 loc) · 5.08 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/* eslint-disable no-undef */
const _ = require('lodash')
var flattenColorPalette = require('tailwindcss/lib/util/flattenColorPalette').default
module.exports = {
content: [
'./components/**/*.tsx', './pages/**/*.tsx',
],
theme: {
extend: {
colors: {
'jigsaw-pink-main': '#F06095',
},
keyframes: {
drop: {
'0%': {
transform: 'translateY(-1000px)',
opacity: 3,
},
'80%': {
transform: 'translateY(0)',
opacity: 3,
},
'100%': {
transform: 'translateY(-40px)',
opacity: 3,
},
},
ripple: {
'0%': {
transform: 'translate(-50%, -50%) rotateX(90deg) scale(0) translateZ(-37px)',
opacity: 2,
},
'100%': {
transform: 'translate(-50%, -50%) rotateX(90deg) scale(2) translateZ(-37px)',
opacity: 0,
}
},
rotation: {
'0%': {
transform: 'rotateY(0deg)'
},
'100%': {
transform: 'rotateY(360deg)'
}
},
'bounce-right': {
'0%': {
transform: 'translateX(10%)',
'animation-timing-function': 'cubic-bezier(0.8,0,1,1)',
},
'50%': {
transform: 'translateX(-10%)',
'animation-timing-function': 'cubic-bezier(0,0,0.2,1)',
},
'100%': {
transform: 'translateX(10%)',
'animation-timing-function': 'cubic-bezier(0.8,0,1,1)',
}
}
},
animation: {
drop: 'drop 5000ms linear infinite',
ripple: 'ripple 5000ms ease-out infinite',
rotation: 'rotation linear infinite',
'bounce-right': 'bounce-right 1s infinite'
},
fontFamily: {
sans: [
'Inter',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'"Noto Sans"',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
},
screens: {
'xxl-1344': '1344px',
'xxl-1920': '1920px',
'xxl-4k': '2560px',
},
spacing: {
'190-px': '190px',
'210-px': '210px',
'480-px': '480px',
},
minHeight: {
'20': '20rem',
'24': '24rem',
'28': '28rem',
'32': '32rem',
'38': '38rem',
'42': '42rem',
'46': '46rem',
'320-px': '320px',
'400-px': '400px',
'480-px': '480px',
'80-screen': '80vh',
},
maxHeight: {
'20': '20rem',
'24': '24rem',
'28': '28rem',
'32': '32rem',
'38': '38rem',
'42': '42rem',
'46': '46rem',
'320-px': '320px',
'400-px': '400px',
'480-px': '480px',
'80-screen': '80vh',
},
boxShadow: {
'bs': '0 0px 15px 0px rgba(0, 0, 0, 0.20), 0 5px 10px 0px rgba(0, 0, 0, 0.20)',
}
},
fontFamily: {
'lovely': ['lovely'],
'ayuku': ['ayuku'],
'LoveConchetta': ['"Love Conchetta"'],
}
},
variants: {
backgroundColor: ['responsive', 'hover', 'focus', 'active'],
textColor: ['responsive', 'hover', 'focus', 'visited'],
},
plugins: [
function({ addUtilities, e, theme, variants }) {
const colors = flattenColorPalette(theme('borderColor'))
const utilities = _.flatMap(_.omit(colors, 'default'), (value, modifier) => ({
[`.${e(`border-t-${modifier}`)}`]: { borderTopColor: `${value}` },
[`.${e(`border-r-${modifier}`)}`]: { borderRightColor: `${value}` },
[`.${e(`border-b-${modifier}`)}`]: { borderBottomColor: `${value}` },
[`.${e(`border-l-${modifier}`)}`]: { borderLeftColor: `${value}` },
}))
addUtilities(utilities, variants('borderColor'))
}
]
}