This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 150
/
tailwind.config.ts
107 lines (106 loc) · 2.37 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
105
106
107
/** @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)",
},
"code-bg": "var(--code-bg)",
accent: {
500: "var(--accent-500)",
700: "var(--accent-700)",
800: "var(--accent-800)",
900: "var(--accent-900)",
},
danger: {
500: "var(--danger-500)",
800: "var(--danger-800)",
900: "var(--danger-900)",
},
warning: {
500: "var(--warning-500)",
900: "var(--warning-900)",
800: "var(--warning-800)",
},
},
zIndex: {
modal: 1400,
modalOverlay: 1300,
dropdownMenu: 1200,
menu: 1100,
//
stickyTop: 1000,
floatingButton: 1000,
stickyMobileSidebar: 500,
//
copyCodeButton: 20,
//
codeToken: 5,
codeTokenHighlight: 1,
// base
base: 0,
},
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: {
"sticky-top-height": "var(--sticky-top-height)",
"sidebar-height": "calc(100vh - var(--sticky-top-height))",
"offset-top": "calc(var(--sticky-top-height) + 18px)",
"offset-top-mobile": "calc(var(--sticky-top-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")],
};