-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
104 lines (102 loc) · 2.52 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
import type { Config } from "tailwindcss";
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./lib/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
fontFamily: {
main: ["var(--font-main)"],
tabular: ["var(--font-open-sans)"],
mono: ["var(--font-roboto-mono)"],
serif: ["var(--font-lora)"],
fancy: ["var(--font-pacifico)"],
},
backdropBlur: {
reading: "var(--reading-blur)",
},
colors: {
primary: "rgb(var(--color-primary) / <alpha-value>)",
saturated: "rgb(var(--color-saturated) / <alpha-value>)",
pastel: "rgb(var(--color-pastel) / <alpha-value>)",
light: "rgb(var(--color-light) / <alpha-value>)",
highlight: "rgb(248 248 248 / <alpha-value>)",
},
backgroundImage: {
page: "var(--bg-page)",
"page-minimal": "var(--bg-page-minimal, var(--bg-page))",
},
rotate: {
"22.5": "22.5deg",
"360": "360deg",
"135": "135deg",
},
zIndex: {
"60": "60",
"5": "5",
"70": "70",
"80": "80",
"90": "90",
"100": "100",
"7": "7",
},
translate: {
"1/6": "16.666667%",
"2.25": "0.5625rem",
"0.75": "0.15625rem",
},
maxWidth: {
"60": "15rem",
"96": "24rem",
"80": "20rem",
screen: "100vw",
},
spacing: {
"26": "6.5rem",
"13": "3.25rem",
"42": "10.5rem",
"1.3": "0.325rem",
"18": "4.5rem",
"38": "9.5rem",
},
padding: {
"0.25": "0.0625rem",
},
margin: {
"0.25": "0.0625rem",
},
width: {
"9/10": "90%",
},
scale: {
"135": "1.35",
"85": "0.85",
},
borderWidth: {
"0.8": "0.8px",
"0.4": "0.4px",
"0.6": "0.6px",
},
},
},
plugins: [
function ({ addUtilities }: any) {
const opacities = Array.from({ length: 10 }, (_, i) => (i + 1) * 10);
const newUtilities = opacities.reduce((acc: any, opacity) => {
acc[`.bg-widget-${opacity}`] = {
backgroundImage: `var(--bg-widget-${opacity})`,
backgroundSize: "cover",
backgroundPosition: "center",
};
return acc;
}, {});
addUtilities(newUtilities, {
variants: ["responsive"],
});
},
],
};
export default config;