-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
88 lines (84 loc) · 3.05 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./app/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
fontSize: {
xs: ["clamp(0.8rem, calc(0.68rem + 0.29vw), 1rem)", "1.2"],
sm: ["clamp(1.00rem, calc(0.92rem + 0.39vw), 1.20rem)", "1.5"],
base: ["clamp(1.13rem, calc(0.98rem + 0.73vw), 1.50rem)", "1.5"],
lg: ["clamp(1.27rem, calc(1.03rem + 1.19vw), 1.88rem)", "1.5"],
xl: ["clamp(1.42rem, calc(1.06rem + 1.80vw), 2.34rem)", "1.4"],
"2xl": ["clamp(1.60rem, calc(1.08rem + 2.59vw), 2.73rem)", "1.2"],
"3xl": ["clamp(1.80rem, calc(1.08rem + 3.63vw), 3.66rem)", "1.1"],
"4xl": ["clamp(2.03rem, calc(1.03rem + 4.98vw), 4.58rem)", "1"],
"5xl": ["clamp(2.28rem, calc(0.94rem + 6.71vw), 5.72rem)", "1"],
"6xl": ["clamp(2.57rem, calc(0.78rem + 8.95vw), 7.15rem)", "1"],
},
borderRadius: {
sq: "21%",
},
boxShadow: {
box: "0 0 12px 0 rgb(0 0 0 / 0.2), 0 0 6px 0 rgb(0 0 0 / 0.2)",
},
maxWidth: {
"prose-narrow": "45ch",
"prose-wide": "80ch",
},
transitionProperty: {
height: "height",
spacing: "margin, padding",
},
keyframes: {
"accordion-down": {
from: { height: 0 },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
},
},
plugins: [
require("daisyui"),
require("@tailwindcss/typography"),
require("@headlessui/tailwindcss")({ prefix: "ui" }),
require("tailwindcss-animate"),
function ({ addComponents }) {
addComponents({
".bg-blur": {
position: "relative",
overflow: "hidden",
"&::before": {
content: `""`,
position: "absolute",
top: "0",
left: "0",
width: "100%",
height: "100%",
zIndex: "-1",
backdropFilter: "blur(16px) saturate(1.8)",
pointerEvents: "none",
borderRadius: "inherit"
},
},
})
},
],
daisyui: {
styled: true,
base: true,
utils: true,
logs: false,
rtl: false,
prefix: "",
darkTheme: "dark",
themes: [{ ...require("./theme") }],
},
}