forked from thirdweb-dev/docs-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
91 lines (90 loc) · 2.11 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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
content: [
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx,mdx}",
"./src/**/*.{ts,tsx,mdx}",
],
theme: {
container: {
center: true,
padding: "1rem",
screens: {
"2xl": "1400px",
},
},
colors: {
current: "currentColor",
border: "var(--border)",
input: "var(--b-700)",
ring: "var(--b-700)",
transparent: "transparent",
overlay: "var(--overlay)",
// backgrounds
b: {
900: "var(--b-900)",
800: "var(--b-800)",
700: "var(--b-700)",
600: "var(--b-600)",
},
// foregrounds
f: {
100: "var(--f-100)",
200: "var(--f-200)",
300: "var(--f-300)",
},
accent: {
500: "var(--accent-500)",
600: "var(--accent-600)",
900: "var(--accent-900)",
800: "var(--accent-800)",
700: "var(--accent-700)",
},
danger: {
500: "var(--danger-500)",
900: "var(--danger-900)",
800: "var(--danger-800)",
},
warning: {
500: "var(--warning-500)",
600: "var(--warning-600)",
900: "var(--warning-900)",
800: "var(--warning-800)",
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
fontFamily: {
sans: ["var(--font-sans)", "sans-serif"],
mono: ["var(--font-mono)", "monospace"],
},
extend: {
spacing: {
"header-height": "var(--header-height)",
"sidebar-height": "calc(100vh - var(--header-height))",
"offset-top": "calc(var(--header-height) + 18px)",
"offset-top-mobile": "calc(var(--header-height) + 100px)",
},
keyframes: {
"accordion-down": {
from: { height: 0, opacity: 0 },
to: { height: "var(--radix-accordion-content-height)", opacity: 1 },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)", opacity: 1 },
to: { height: 0, opacity: 0 },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"animate-in-slow": "animate-in 0.4s ease",
},
},
},
plugins: [require("tailwindcss-animate")],
};