-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
159 lines (158 loc) · 5.7 KB
/
tailwind.config.ts
File metadata and controls
159 lines (158 loc) · 5.7 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
import type { Config } from "tailwindcss";
export default {
darkMode: ["class"],
content: ["./client/index.html", "./client/src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
typography: ({ theme }: { theme: any }) => ({
DEFAULT: {
css: {
'--tw-prose-body': theme('colors.foreground'),
'--tw-prose-headings': theme('colors.foreground'),
'--tw-prose-lead': theme('colors.foreground'),
'--tw-prose-links': 'var(--dt-brown)',
'--tw-prose-bold': theme('colors.foreground'),
'--tw-prose-counters': 'var(--dt-ink-muted)',
'--tw-prose-bullets': 'var(--dt-gold)',
'--tw-prose-hr': theme('colors.border'),
'--tw-prose-quotes': theme('colors.foreground'),
'--tw-prose-quote-borders': 'var(--dt-gold)',
'--tw-prose-captions': 'var(--dt-ink-muted)',
'--tw-prose-code': theme('colors.foreground'),
'--tw-prose-pre-code': '#E0D8C8',
'--tw-prose-pre-bg': '#2D2A24',
'--tw-prose-th-borders': theme('colors.border'),
'--tw-prose-td-borders': theme('colors.border'),
'--tw-prose-invert-body': theme('colors.foreground'),
'--tw-prose-invert-headings': theme('colors.foreground'),
'--tw-prose-invert-lead': theme('colors.foreground'),
'--tw-prose-invert-links': 'var(--dt-gold)',
'--tw-prose-invert-bold': theme('colors.foreground'),
'--tw-prose-invert-counters': 'var(--dt-ink-muted)',
'--tw-prose-invert-bullets': 'var(--dt-gold)',
'--tw-prose-invert-hr': theme('colors.border'),
'--tw-prose-invert-quotes': theme('colors.foreground'),
'--tw-prose-invert-quote-borders': 'var(--dt-gold)',
'--tw-prose-invert-captions': 'var(--dt-ink-muted)',
'--tw-prose-invert-code': theme('colors.foreground'),
'--tw-prose-invert-pre-code': '#E0D8C8',
'--tw-prose-invert-pre-bg': '#1E1B17',
'--tw-prose-invert-th-borders': theme('colors.border'),
'--tw-prose-invert-td-borders': theme('colors.border'),
'h1, h2, h3, h4, h5, h6': {
fontFamily: 'inherit',
fontWeight: '600',
letterSpacing: 'normal',
},
'a': {
color: 'var(--dt-brown)',
textDecoration: 'none',
transition: 'color 0.15s',
'&:hover': {
textDecoration: 'underline',
},
},
'blockquote': {
borderLeftColor: theme('colors.border'),
color: 'var(--dt-ink-muted)',
fontStyle: 'normal',
},
'code:not(pre code)': {
backgroundColor: theme('colors.muted'),
padding: '0.2em 0.4em',
borderRadius: '0.25rem',
color: theme('colors.foreground'),
fontWeight: 'inherit',
'&::before': {
content: 'none',
},
'&::after': {
content: 'none',
},
},
},
},
}),
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
colors: {
background: "rgb(var(--background))",
foreground: "rgb(var(--foreground))",
card: {
DEFAULT: "rgb(var(--card))",
foreground: "rgb(var(--card-foreground))",
},
popover: {
DEFAULT: "rgb(var(--popover))",
foreground: "rgb(var(--popover-foreground))",
},
primary: {
DEFAULT: "rgb(var(--primary))",
foreground: "rgb(var(--primary-foreground))",
},
secondary: {
DEFAULT: "rgb(var(--secondary))",
foreground: "rgb(var(--secondary-foreground))",
},
muted: {
DEFAULT: "rgb(var(--muted))",
foreground: "rgb(var(--muted-foreground))",
},
accent: {
DEFAULT: "rgb(var(--accent))",
foreground: "rgb(var(--accent-foreground))",
},
destructive: {
DEFAULT: "rgb(var(--destructive))",
foreground: "rgb(var(--destructive-foreground))",
},
border: "rgb(var(--border))",
input: "rgb(var(--input))",
ring: "rgb(var(--ring))",
chart: {
"1": "rgb(var(--chart-1))",
"2": "rgb(var(--chart-2))",
"3": "rgb(var(--chart-3))",
"4": "rgb(var(--chart-4))",
"5": "rgb(var(--chart-5))",
},
sidebar: {
DEFAULT: "rgb(var(--sidebar-background))",
foreground: "rgb(var(--sidebar-foreground))",
primary: "rgb(var(--sidebar-primary))",
"primary-foreground": "rgb(var(--sidebar-primary-foreground))",
accent: "rgb(var(--sidebar-accent))",
"accent-foreground": "rgb(var(--sidebar-accent-foreground))",
border: "rgb(var(--sidebar-border))",
ring: "rgb(var(--sidebar-ring))",
},
},
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"), require("@tailwindcss/typography")],
} satisfies Config;