forked from pdelfan/ouranos
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.ts
101 lines (99 loc) · 3.1 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
function withOpacity(variableName: string) {
return ({ opacityValue }: { opacityValue: number }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgba(var(${variableName}))`;
};
}
export default {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/containers/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
primary: {
light: withOpacity("--color-primary-light"),
DEFAULT: withOpacity("--color-primary"),
dark: withOpacity("--color-primary-dark"),
},
status: {
base: withOpacity("--color-status-base"),
success: withOpacity("--color-status-success"),
warning: withOpacity("--color-status-warning"),
danger: withOpacity("--color-status-danger"),
},
},
backgroundColor: {
skin: {
base: withOpacity("--color-background-base"),
secondary: withOpacity("--color-background-secondary"),
tertiary: withOpacity("--color-background-tertiary"),
muted: withOpacity("--color-background-muted"),
inverted: {
DEFAULT: withOpacity("--color-background-inverted"),
muted: withOpacity("--color-background-inverted-muted"),
},
overlay: {
DEFAULT: withOpacity("--color-background-overlay")({
opacityValue: 0.5,
}),
muted: withOpacity("--color-background-overlay-muted")({
opacityValue: 0.8,
}),
},
},
},
textColor: {
skin: {
base: withOpacity("--color-text-base"),
secondary: withOpacity("--color-text-secondary"),
tertiary: withOpacity("--color-text-tertiary"),
inverted: withOpacity("--color-text-base-inverted"),
link: {
base: withOpacity("--color-text-link-base"),
hover: withOpacity("--color-text-link-base-hover"),
},
icon: {
base: withOpacity("--color-icon-base"),
muted: withOpacity("--color-icon-muted"),
inverted: withOpacity("--color-icon-inverted"),
like: withOpacity("--color-icon-like"),
repost: withOpacity("--color-icon-repost"),
},
},
},
borderColor: {
skin: {
base: withOpacity("--color-border-base"),
secondary: withOpacity("--color-border-secondary"),
},
},
borderWidth: {
"3": "3px",
},
outlineColor: {
skin: {
base: withOpacity("--color-outline-base"),
},
},
fontFamily: {
arabic: ["var(--font-noto-sans-arabic"],
latin: ["var(--font-inter)"],
},
},
},
plugins: [
require("tailwindcss-animated"),
require("@vidstack/react/tailwind.cjs")({
// Optimize output by specifying player selector.
selector: ".media-player",
// Change the media variants prefix.
prefix: "media",
}),
],
};