-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
129 lines (128 loc) · 4.91 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
function withOpacityValue(variable) {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `rgb(var(${variable}))`;
}
return `rgb(var(${variable}) / ${opacityValue})`;
};
}
module.exports = {
darkMode: 'class',
content: ['public/index.html', 'src/*.{js, jsx}', 'src/**/*.{js, jsx}'],
theme: {
extend: {
colors: {
transparent: 'var(--color-primary-transparent)',
current: 'currentColor',
white: '#ffffff',
black: '#000000',
klor: {
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
},
fontFamily: {
nav: ['Oswald'],
brand: ['Pacifico'],
title: ['Merriweather'],
general: ['Lato'],
},
textColor: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
backgroundColor: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
ringColor: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
borderColor: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
boxShadowColor: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
keyframes: {
spin_infinity: {
'0%': {
'stroke-dasharray': '1, 347',
'stroke-dashoffset': 75,
},
'25%, 75%': {
'stroke-dasharray': '17, 330',
},
'50%': {
'stroke-dasharray': '1, 347',
},
'100%': {
'stroke-dasharray': '1, 347',
'stroke-dashoffset': '423',
},
},
},
animation: {
loading_spin_infinity: 'spin_infinity 1.4s linear infinite',
},
},
},
variants: {},
plugins: [require('@tailwindcss/line-clamp'), require('@tailwindcss/forms')],
};