-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.ts
115 lines (114 loc) · 4.11 KB
/
tailwind.config.ts
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
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
import {nextui} from "@nextui-org/react";
const config: Config = {
darkMode: "class",
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}"
],
theme: {
extend: {
screens: {
"3xs": "320px",
"2xs": "420px",
"xs": "480px"
},
fontFamily: {
"iran-yekan-x": ["var(--font-iran-yekan-x)"],
"geo-slab-703": ["var(--font-geo-slab-703)"]
},
backgroundImage: {
"main-pattern": "url('/images/bg-pattern.webp')"
},
borderRadius: {
"prime-radius": "var(--border-radius)"
},
container: {
center: true,
screens: {
"2xl": "1280px"
},
padding: {
// DEFAULT: "30px",
DEFAULT: "18px"
}
},
colors: {
"brand-primary": {
DEFAULT: "hsl(var(--color-brand-primary) / <alpha-value>)"
},
"brand-green": {
DEFAULT: "hsl(var(--color-brand-green) / <alpha-value>)"
},
"brand-white": {
DEFAULT: "hsl(var(--color-brand-white) / <alpha-value>)"
},
"brand-cream": {
DEFAULT: "hsl(var(--color-brand-cream) / <alpha-value>)"
},
"prime": {
"mask-bg": "var(--mask-bg)",
"focus-ring": "var(--focus-ring)",
"highlight": {
bg: "var(--highlight-bg)",
text: "var(--highlight-text-color)"
},
"text": {
DEFAULT: "var(--text-color)",
secondary: "var(--text-color-secondary)"
},
"primary": {
DEFAULT: "var(--primary-color)",
text: "var(--primary-color-text)"
},
"surface": {
0: "var(--surface-0)",
50: "var(--surface-50)",
100: "var(--surface-100)",
200: "var(--surface-200)",
300: "var(--surface-300)",
400: "var(--surface-400)",
500: "var(--surface-500)",
600: "var(--surface-600)",
700: "var(--surface-700)",
800: "var(--surface-800)",
900: "var(--surface-900)",
ground: "var(--surface-ground)",
section: "var(--surface-section)",
card: "var(--surface-card)",
overlay: "var(--surface-overlay)",
border: "var(--surface-border)",
hover: "var(--surface-hover)"
}
}
}
}
},
plugins: [
nextui(),
plugin(function({ addUtilities }) {
addUtilities({
".persian-number": {
"-moz-font-feature-settings": "ss02",
"-webkit-font-feature-settings": "ss02",
"font-feature-settings": "ss02"
},
".flex-center": {
display: "flex",
"justify-content": "center",
"align-items": "center"
},
".flex-col-center": {
display: "flex",
"flex-direction": "column",
"justify-content": "center",
"align-items": "center"
}
});
})
]
};
export default config;