-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
121 lines (120 loc) · 3.73 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
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
116
117
118
119
120
121
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}", "./data/**/*.mdx"],
mode: "jit",
// darkMode: 'media', // or 'media' or 'class'
theme: {
screens: {
// xs: "10px",
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
"2xl": "1536px",
"3xl": "2500px",
portrait: { raw: "(orientation: portrait)" },
landscape: { raw: "(orientation: landscape)" },
},
spacing: {
0: "0px",
1: "4px",
2: "8px",
3: "12px",
4: "16px",
5: "24px",
6: "32px",
7: "48px",
8: "80px",
9: "800px",
},
fontFamily: {
...defaultTheme.fontFamily,
// serif: ['Didot', 'Didot LT', 'STD', 'Hoefler Text' , 'Garamond', 'Times New Roman', 'serif']
serif: ["Playfair Display", "serif"],
},
extend: {
height: {
"actual-screen": "var(--height-screen)",
},
dropShadow: {
dark: "0 1px 2px rgba(0, 0, 0, 0.8)",
},
fontSize: {
"huge-1": "95px",
"huge-2": "max(7.8vw, 120px)",
},
colors: {
white: "#eee",
buzzwordsPrimary: "#F6C54B",
buzzwordsLightBg: "#fae7b2",
transparentblack: "rgba(0,0,0,0.24)",
vibrant: {
DEFAULT: ({ opacityVariable, opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(--vibrant), ${opacityValue})`;
}
if (opacityVariable !== undefined) {
return `rgba(var(--vibrant), var(${opacityVariable}, 1))`;
}
return "rgb(var(--vibrant))";
},
light: ({ opacityVariable, opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(--light-vibrant), ${opacityValue})`;
}
if (opacityVariable !== undefined) {
return `rgba(var(--light-vibrant), var(${opacityVariable}, 1))`;
}
return "rgb(var(--light-vibrant))";
},
dark: ({ opacityVariable, opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(--dark-vibrant), ${opacityValue})`;
}
if (opacityVariable !== undefined) {
return `rgba(var(--dark-vibrant), var(${opacityVariable}, 1))`;
}
return "rgb(var(--dark-vibrant))";
},
},
muted: {
DEFAULT: ({ opacityVariable, opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(--muted), ${opacityValue})`;
}
if (opacityVariable !== undefined) {
return `rgba(var(--muted), var(${opacityVariable}, 1))`;
}
return "rgb(var(--muted))";
},
light: ({ opacityVariable, opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(--light-muted), ${opacityValue})`;
}
if (opacityVariable !== undefined) {
return `rgba(var(--light-muted), var(${opacityVariable}, 1))`;
}
return "rgb(var(--light-muted))";
},
dark: ({ opacityVariable, opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(--dark-muted), ${opacityValue})`;
}
if (opacityVariable !== undefined) {
return `rgba(var(--dark-muted), var(${opacityVariable}, 1))`;
}
return "rgb(var(--dark-muted))";
},
},
},
},
},
variants: {
extend: {},
},
plugins: [
require("tailwindcss-touch")(),
require("@tailwindcss/typography"),
require("tailwindcss-animate"),
],
};