-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
127 lines (122 loc) · 2.58 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
const defaultTheme = require('tailwindcss/defaultTheme')
const sizing = () => {
const obj = {}
for (i of new Array(9).keys()) {
obj[`${i + 1}/10`] = `${(i + 1) * 10}%`
}
return obj
}
const fontFamily = {
sans: [
'Inter',
...defaultTheme.fontFamily.sans,
],
mono: [
'Inconsolata',
...defaultTheme.fontFamily.mono,
],
}
const colors = {
'x-blue': {
50: '#F2F8FE',
100: '#E6F1FC',
200: '#C0DCF8',
300: '#9AC7F4',
400: '#4E9DEB',
500: '#0273E3',
600: '#0268CC',
700: '#014588',
800: '#013466',
900: '#012344',
},
'x-gray': {
50: '#F7F7F7',
100: '#EFEFEF',
200: '#D7D7D7',
300: '#BFBFBF',
400: '#908F8F',
500: '#605F5F',
600: '#565656',
700: '#3A3939',
800: '#2B2B2B',
900: '#1D1D1D',
},
}
module.exports = {
mode: 'jit',
purge: [
'./{pages,lib,components,www,styles}/**/*.{html,js,ts,jsx,tsx,css,pcss}',
],
darkMode: false,
theme: {
extend: {
'animation': {
'gradient-x': 'gradient-x 15s ease infinite',
'gradient-y': 'gradient-y 15s ease infinite',
'gradient-xy': 'gradient-xy 15s ease infinite',
},
'keyframes': {
'gradient-y': {
'0%, 100%': {
'background-position': 'center top'
},
'50%': {
'background-size': '200% 200%',
'background-position': 'center center'
}
},
'gradient-x': {
'0%, 100%': {
'background-size': '200% 200%',
'background-position': 'left center'
},
'50%': {
'background-size': '200% 200%',
'background-position': 'right center'
}
},
'gradient-xy': {
'0%, 100%': {
'background-size': '400% 400%',
'background-position': 'left center'
},
'50%': {
'background-size': '200% 200%',
'background-position': 'right center'
},
},
},
screens: {
'xxl': {'min': '1480px'}
},
fontFamily,
scale: {
'invert': '-1',
},
spacing: {
...sizing(),
},
borderRadius: {
'xl': '1rem',
'full': '10010px',
},
inset: {
'-15': '-3.75rem',
'2': '0.5rem',
'1/2': '50%',
'1/4': '20%',
'2/5': '40%',
...sizing(),
'full': '100%',
},
zIndex: {
'-10': '-10',
},
colors,
},
},
plugins: [
require('tailwindcss-safe-area'),
require('@tailwindcss/typography'),
],
}