-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
62 lines (62 loc) · 2.07 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
import type { Config } from "tailwindcss";
function withOpacity(variableName: any): any {
return ({ opacityValue }: { opacityValue: any }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
}
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/containers/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
primary: {
900: withOpacity("--color-primary-900"),
800: withOpacity("--color-primary-800"),
700: withOpacity("--color-primary-700"),
600: withOpacity("--color-primary-600"),
500: withOpacity("--color-primary-500"),
400: withOpacity("--color-primary-400"),
300: withOpacity("--color-primary-300"),
200: withOpacity("--color-primary-200"),
100: withOpacity("--color-primary-100"),
},
secondary: {
900: withOpacity("--color-secondary-900"),
800: withOpacity("--color-secondary-800"),
700: withOpacity("--color-secondary-700"),
600: withOpacity("--color-secondary-600"),
500: withOpacity("--color-secondary-500"),
400: withOpacity("--color-secondary-400"),
300: withOpacity("--color-secondary-300"),
200: withOpacity("--color-secondary-200"),
100: withOpacity("--color-secondary-100"),
},
success: withOpacity("--color-success"),
warning: withOpacity("--color-warning"),
error: withOpacity("--color-error"),
mid_transparent: "rgba(0 0 0 /.5)",
min_transparent: "rgba(0 0 0 /.9)",
max_transparent: "rgba(0 0 0 /.1)",
},
fontFamily: {
vazir: ["var(--font-vazir)"],
},
container: {
center: true,
},
boxShadow: {
"input-focus": "0 12px 24px -8px rgb(var(--color-primary-300))",
},
},
},
plugins: [],
};
export default config;