-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
85 lines (84 loc) · 2.65 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
/** @type {import('tailwindcss').Config} */
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgba(var(${variableName}))`;
};
}
module.exports = {
darkMode: "class",
mode: "jit",
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
palette: {
primary: withOpacity("--color-primary"),
secondary: withOpacity("--color-secondary"),
},
},
textColor: {
palette: {
base: withOpacity("--color-text-base"),
mute: withOpacity("--color-text-muted"),
side: withOpacity("--color-text-side"),
},
},
backgroundColor: {
palette: {
fill: withOpacity("--color-bg"),
card: withOpacity("--color-bg-side"),
dark: withOpacity("--color-bg-dark"),
digitalCategory: "var(--digital-category-bgc)",
fashionCategory: "var(--fashion-category-bgc)",
beautyCategory: "var( --beauty-category-bgc)",
sportCategory: "var(--sport-category-bgc)",
houseCategory: "var(--house-category-bgc)",
toyCategory: "var(--toy-category-bgc)",
stationeryCategory: "var(--stationery-category-bgc)",
},
},
fontFamily: {
farsi: "'iranyekan', 'IRANSans', 'Tahoma'",
english: "'Poppins', 'Roboto', 'sans-serif'",
},
keyframes: {
sidenavLTR: {
"0%": { transform: "translateX(-100%)" },
"100%": { transform: "translateX(0px)" },
},
sidenavRTL: {
"0%": { transform: "translateX(100%)" },
"100%": { transform: "translateX(0px)" },
},
fade: {
"0%": { opacity: 0 },
"100%": { opacity: 1 },
},
dropDown: {
"0%": { opacity: 0, transform: "scaleY(0)" },
"100%": { opacity: 1, transform: "scaleY(1)" },
},
},
animation: {
sidenavLTREntering: "sidenavLTR 0.3s ease-in-out forwards",
sidenavRTLEntering: "sidenavRTL 0.3s ease-in-out forwards",
sidenavLTRExit: "sidenavLTR 0.3s ease-in-out reverse forwards",
sidenavRTLExit: "sidenavRTL 0.3s ease-in-out reverse forwards",
fadeEntering: "fade 0.3s forwards",
fadeExit: "fade 0.3s reverse forwards",
dropDown: "dropDown 0.3s forwards",
dropDownExit: "dropDown 0.3s reverse forwards",
},
backgroundImage: {
offersBG: "url('/images/carouselBox-bg/offersbg.webp')",
},
},
},
plugins: [],
};