-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
executable file
·123 lines (120 loc) · 3.44 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
// Function to add opacity to colors like default Tailwind's way when using CSS variables
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
}
module.exports = {
content: [
'./resources/**/*.blade.php',
'./resources/**/*.php',
'./resources/**/*.ts',
'./resources/**/*.vue',
'./config/*.php',
'./app/**/*.php',
],
theme: {
fontFamily: {
sans: ['Arial', 'sans-serif'],
},
colors: {
black: withOpacity('--black'),
white: withOpacity('--white'),
transparent: 'transparent',
// Neutrals
n: {
0: withOpacity('--n-0'),
10: withOpacity('--n-10'),
20: withOpacity('--n-20'),
30: withOpacity('--n-30'),
40: withOpacity('--n-40'),
50: withOpacity('--n-50'),
},
// Primary colors
turquoise: withOpacity('--turquoise'),
bluecoral: withOpacity('--bluecoral'),
blue: {
40: withOpacity('--bluecoral-40'),
50: withOpacity('--bluecoral-50'),
},
// Secondary colors
camel: {
10: withOpacity('--camel-10'),
20: withOpacity('--camel-20'),
30: withOpacity('--camel-30'),
40: withOpacity('--camel-40'),
50: withOpacity('--camel-50'),
},
teal: {
10: withOpacity('--teal-10'),
20: withOpacity('--teal-20'),
30: withOpacity('--teal-30'),
40: withOpacity('--teal-40'),
50: withOpacity('--teal-50'),
},
spring: {
10: withOpacity('--spring-10'),
20: withOpacity('--spring-20'),
30: withOpacity('--spring-30'),
40: withOpacity('--spring-40'),
50: withOpacity('--spring-50'),
},
lagoon: {
10: withOpacity('--lagoon-10'),
20: withOpacity('--lagoon-20'),
30: withOpacity('--lagoon-30'),
40: withOpacity('--lagoon-40'),
50: withOpacity('--lagoon-50'),
},
salmon: {
10: withOpacity('--salmon-10'),
20: withOpacity('--salmon-20'),
30: withOpacity('--salmon-30'),
40: withOpacity('--salmon-40'),
50: withOpacity('--salmon-50'),
},
lavender: {
10: withOpacity('--lavender-10'),
20: withOpacity('--lavender-20'),
30: withOpacity('--lavender-30'),
40: withOpacity('--lavender-40'),
50: withOpacity('--lavender-50'),
60: withOpacity('--lavender-60'),
},
crimson: {
10: withOpacity('--crimson-10'),
20: withOpacity('--crimson-20'),
30: withOpacity('--crimson-30'),
40: withOpacity('--crimson-40'),
50: withOpacity('--crimson-50'),
},
// Pastels
eggshell: withOpacity('--eggshell'),
mint: withOpacity('--mint'),
rose: withOpacity('--rose'),
paper: withOpacity('--paper'),
// Gray
'light-gray': withOpacity('--light-gray'),
},
extend: {
fontSize: {
'heading-1': '64px',
'heading-2': '56px',
'heading-3': '40px',
'heading-4': '32px',
'heading-5': '24px',
'caption-c1': '12px',
tiny: '10px',
},
boxShadow: {
dropdown: '0px 4px 40px rgba(0, 0, 0, 0.1)',
default: '0px 2px 10px 10px rgba(0, 0, 0, 0.02)',
textbox: '0px 8px 24px 20px rgba(42, 47, 48, 0.1)',
},
},
},
plugins: [],
};