-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
92 lines (89 loc) · 2.97 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
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
const config: Config = {
darkMode: ["class"],
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
screens: {
xs: "480px",
},
boxShadow: {
"vercel-sm": "0px 1px 1px rgb(0,0,0,.02)",
"vercel-md": "0px 1px 1px rgb(0,0,0,.02), 0px 4px 8px -4px rgba(0,0,0,.04)",
"vercel-lg":
"0px 1px 1px rgb(0,0,0,.02), 0px 4px 8px -4px rgba(0,0,0,.04), 0px 16px 24px -8px rgba(0,0,0,.06)",
"vercel":
"0px 1px 1px rgb(0,0,0,.02), 0px 4px 8px -4px rgba(0,0,0,.04), 0px 16px 24px -8px rgba(0,0,0,.06)",
},
height: {
content: "calc(100dvh - 33px)",
},
maxHeight: {
content: "calc(100lvh - 33px))",
},
colors: {
"background": "rgb(var(--background) / <alpha-value>)",
"foreground": "rgb(var(--foreground) / <alpha-value>)",
"accent": "var(--accent)",
"muted": "var(--muted)",
"300": "var(--300)",
"400": "var(--400)",
"500": "var(--500)",
"700": "var(--700)",
"800": "var(--800)",
"900": "var(--900)",
"950": "var(--950)",
"c300": "var(--300)",
"c400": "var(--400)",
"c500": "var(--500)",
"c700": "var(--700)",
"c800": "var(--800)",
"c900": "var(--900)",
"c950": "var(--950)",
"border": "var(--border)",
"primary": "rgb(var(--primary) / <alpha-value>)",
"primaryActive": "rgb(var(--primaryActive) / <alpha-value>)",
},
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("tailwindcss-animate"),
plugin(({ addVariant }) => {
addVariant("group-hocus", [".group:hover > &", ".group:focus-visible > &"]);
addVariant("hocus", ["&:hover", "&:focus-visible"]);
}),
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{ highlight: (value) => ({ boxShadow: `inset 0 1px 0 0 rgb(255 255 255 / ${value})` }) },
{ values: theme("opacity") },
);
}),
],
};
export default config;