-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
114 lines (112 loc) · 4.66 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
108
109
110
111
112
113
114
import type { Config } from "tailwindcss";
/*
theme: {
extend: {
typography: {
proselight: {
css: {
'--tw-prose-body': theme('colors.gray.800'),
'--tw-prose-headings': theme('colors.gray.900'),
'--tw-prose-lead': theme('colors.gray.700'),
'--tw-prose-links': theme('colors.blue.600'),
'--tw-prose-bold': theme('colors.gray.900'),
'--tw-prose-counters': theme('colors.gray.600'),
'--tw-prose-bullets': theme('colors.gray.400'),
'--tw-prose-hr': theme('colors.gray.300'),
'--tw-prose-quotes': theme('colors.gray.900'),
'--tw-prose-quote-borders': theme('colors.gray.300'),
'--tw-prose-captions': theme('colors.gray.700'),
'--tw-prose-code': theme('colors.red.600'),
'--tw-prose-pre-code': theme('colors.gray.100'),
'--tw-prose-pre-bg': theme('colors.gray.900'),
'--tw-prose-th-borders': theme('colors.gray.300'),
'--tw-prose-td-borders': theme('colors.gray.200'),
},
},
prosedark: {
css: {
'--tw-prose-body': theme('colors.gray.200'),
'--tw-prose-headings': theme('colors.white'),
'--tw-prose-lead': theme('colors.gray.300'),
'--tw-prose-links': theme('colors.blue.400'),
'--tw-prose-bold': theme('colors.white'),
'--tw-prose-counters': theme('colors.gray.400'),
'--tw-prose-bullets': theme('colors.gray.600'),
'--tw-prose-hr': theme('colors.gray.700'),
'--tw-prose-quotes': theme('colors.gray.100'),
'--tw-prose-quote-borders': theme('colors.gray.700'),
'--tw-prose-captions': theme('colors.gray.400'),
'--tw-prose-code': theme('colors.green.400'),
'--tw-prose-pre-code': theme('colors.gray.300'),
'--tw-prose-pre-bg': 'rgb(0 0 0 / 50%)',
'--tw-prose-th-borders': theme('colors.gray.600'),
'--tw-prose-td-borders': theme('colors.gray.700'),
},
},
},
},
*/
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
// The following line is used to rende the post content so don't remove it
'./utility/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
},
// typography: ({ theme }) => ({ // Theme has error
typography: (theme: any) => ({
proselight: {
css: {
'--tw-prose-body': theme('colors.gray.800'),
'--tw-prose-headings': theme('colors.gray.900'),
'--tw-prose-lead': theme('colors.gray.700'),
'--tw-prose-links': theme('colors.blue.600'),
'--tw-prose-bold': theme('colors.gray.900'),
'--tw-prose-counters': theme('colors.gray.600'),
'--tw-prose-bullets': theme('colors.gray.400'),
'--tw-prose-hr': theme('colors.gray.300'),
'--tw-prose-quotes': theme('colors.gray.900'),
'--tw-prose-quote-borders': theme('colors.gray.300'),
'--tw-prose-captions': theme('colors.gray.700'),
'--tw-prose-code': theme('colors.red.600'),
'--tw-prose-pre-code': theme('colors.gray.100'),
'--tw-prose-pre-bg': theme('colors.gray.900'),
'--tw-prose-th-borders': theme('colors.gray.300'),
'--tw-prose-td-borders': theme('colors.gray.200'),
},
},
prosedark: {
css: {
'--tw-prose-body': theme('colors.gray.200'),
'--tw-prose-headings': theme('colors.white'),
'--tw-prose-lead': theme('colors.gray.300'),
'--tw-prose-links': theme('colors.blue.400'),
'--tw-prose-bold': theme('colors.white'),
'--tw-prose-counters': theme('colors.gray.400'),
'--tw-prose-bullets': theme('colors.gray.600'),
'--tw-prose-hr': theme('colors.gray.700'),
'--tw-prose-quotes': theme('colors.gray.100'),
'--tw-prose-quote-borders': theme('colors.gray.700'),
'--tw-prose-captions': theme('colors.gray.400'),
'--tw-prose-code': theme('colors.green.400'),
'--tw-prose-pre-code': theme('colors.gray.300'),
'--tw-prose-pre-bg': 'rgb(0 0 0 / 50%)',
'--tw-prose-th-borders': theme('colors.gray.600'),
'--tw-prose-td-borders': theme('colors.gray.700'),
},
},
}),
},
},
plugins: [
require("@tailwindcss/typography"),
],
};
export default config;