-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
163 lines (162 loc) · 5.64 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
151
152
153
154
155
156
157
158
159
160
161
162
163
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgba(var(${variableName}))`;
};
}
module.exports = {
mode: 'jit',
purge: ['./src/**/*.{js,jsx,ts,tsx}'],
darkMode: false,
theme: {
extend: {
textColor: {
skin: {
primary: withOpacity('--color-primary'),
red: withOpacity('--color-red'),
tangerine: withOpacity('--color-tangerine'),
cerulean: withOpacity('--color-cerulean'),
salmon: withOpacity('--color-salmon'),
tree: withOpacity('--color-tree'),
yellow: withOpacity('--color-yellow'),
'yellow-two': withOpacity('--color-yellow-two'),
'yellow-three': withOpacity('--color-yellow-three'),
carnation: withOpacity('--color-carnation'),
base: withOpacity('--color-text-base'),
inverted: withOpacity('--color-text-inverted'),
muted: withOpacity('--color-text-muted'),
secondary: withOpacity('--color-text-secondary'),
countdown: withOpacity('--color-text-countdown'),
},
},
backgroundColor: {
skin: {
primary: withOpacity('--color-primary'),
red: withOpacity('--color-red'),
'red-secondary': withOpacity('--color-red-secondary'),
tangerine: withOpacity('--color-tangerine'),
cerulean: withOpacity('--color-cerulean'),
salmon: withOpacity('--color-salmon'),
tree: withOpacity('--color-tree'),
yellow: withOpacity('--color-yellow'),
'yellow-two': withOpacity('--color-yellow-two'),
'yellow-three': withOpacity('--color-yellow-three'),
base: withOpacity('--color-text-base'),
carnation: withOpacity('--color-carnation'),
fill: withOpacity('--color-fill'),
thumbnail: withOpacity('--color-fill-thumbnail'),
inverted: withOpacity('--color-text-inverted'),
one: withOpacity('--color-fill-one'),
two: withOpacity('--color-fill-two'),
three: withOpacity('--color-fill-three'),
four: withOpacity('--color-fill-four'),
secondary: withOpacity('--color-fill-secondary'),
highlighted: withOpacity('--color-highlighted'),
'dropdown-hover': withOpacity('--color-fill-dropdown-hover'),
'button-secondary': withOpacity('--color-button-secondary'),
'button-disable': withOpacity('--color-button-disable'),
'button-hover': withOpacity('--color-button-hover'),
},
},
borderColor: {
skin: {
primary: withOpacity('--color-primary'),
red: withOpacity('--color-red'),
yellow: withOpacity('--color-yellow'),
base: withOpacity('--color-border-base'),
one: withOpacity('--color-border-one'),
two: withOpacity('--color-border-two'),
three: withOpacity('--color-border-three'),
four: withOpacity('--color-border-four'),
form: withOpacity('--color-border-form'),
'yellow-three': withOpacity('--color-yellow-three'),
},
},
ringColor: {
skin: {
red: withOpacity('--color-red'),
base: withOpacity('--color-border-base'),
form: withOpacity('--color-border-form'),
primary: withOpacity('--color-primary'),
},
},
fontSize: {
'10px': '.625rem',
'13px': '13px',
'15px': '15px',
},
screens: {
'3xl': '1780px',
'4xl': '1921px',
},
spacing: {
'430px': '430px',
'450px': '450px',
'500px': '500px',
'64vh': '64vh',
},
minHeight: {
'50px': '50px',
},
scale: {
80: '0.8',
85: '0.85',
300: '3',
400: '4',
},
width: {
'1/9': '11.1111111%',
'100+30': 'calc(100% + 30px)',
},
keyframes: {
shine: {
'100%': { left: '125%' },
},
wiggle: {
'0%, 100%': { transform: 'rotate(-3deg)' },
'50%': { transform: 'rotate(3deg)' },
},
},
animation: {
shine: 'shine 0.8s ease-in',
ping: 'ping 3s linear infinite',
wiggle: 'wiggle 1s ease-in-out infinite',
},
},
boxShadow: {
card: '0px 0px 6px rgba(79, 95, 120, 0.1)',
cardHover: '0px 0px 8px rgba(79, 95, 120, 0.18)',
category: '0px 1px 6px rgba(79, 95, 120, 0.12)',
navigation: '0 3px 6px rgba(115, 125, 144, 0.25)',
counter: '0px 4px 10px rgba(79, 95, 120, 0.15)',
featured: '0px 4px 8px rgba(70, 84, 111, 0.06)',
cart: '0 3px 6px rgba(0,0,0,0.12)',
switch: '0 2px 5px rgba(21,35,49,0.4)',
dropDown: '0px 10px 40px rgba(41, 50, 68, 0.15)',
carouselButton: '0px 2px 15px rgba(115, 125, 144, 0.25)',
listProduct: '0 2px 4px rgba(0,0,0,.08)',
navigationReverse: '0 -3px 6px rgba(0, 0, 0, 0.16)',
header: '0 2px 3px rgba(0, 0, 0, 0.08)',
subMenu: '1px 2px 3px rgba(0, 0, 0, 0.08)',
bottomNavigation: '0 -2px 3px rgba(0, 0, 0, 0.06)',
cookies: '0 -2px 3px rgba(0, 0, 0, 0.04)',
contact: '0 1px 10px rgba(75, 90, 130, 0.1)',
vendorCard: '0px 2px 3px rgba(0, 0, 0, 0.06)',
vendorCardHover: '0px 1px 15px rgba(0, 0, 0, 0.06)',
vendorSidebar:
'0px 1px 2px rgba(0, 0, 0, 0.03), 0px 1px 3px rgba(0, 0, 0, 0.05)',
},
fontFamily: {
body: ["'Inter', sans-serif"],
manrope: ["'Manrope', sans-serif"],
},
},
plugins: [
require('@tailwindcss/forms')({
strategy: 'class',
}),
require('tailwindcss-rtl'),
],
};