-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
97 lines (96 loc) · 3.4 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ['selector'],
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/hooks/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./src/styles/**/*.{js,ts,jsx,tsx,mdx}',
'./src/views/**/*.{js,ts,jsx,tsx,mdx}',
],
plugins: [require('@tailwindcss/typography')],
theme: {
colors: {
primary: '#729762',
secondary: '#DBCC95',
info: '#C9E3E4',
success: '#124076',
warning: '#E7B10A',
danger: '#C51605',
light: '#FFFFFF',
dark: '#19231B',
bgdark: '#242424',
},
extend: {
transformOrigin: {
bottom: 'center bottom',
},
fontFamily: {
body: 'var(--font-jetbrains-mono), monospace',
article: 'var(--font-eb-garamond), serif',
},
screens: {
half: '680px',
md: '896px',
hd: '1920px',
'2k': '2560px',
'4k': '3820px',
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
pre: {
color: 'black',
background: 'transparent',
padding: 0,
margin: 0,
},
},
},
optimisticoder: {
css: {
'--tw-prose-body': theme('colors.dark'),
'--tw-prose-headings': theme('colors.dark'),
'--tw-prose-lead': theme('colors.dark'),
'--tw-prose-links': theme('colors.primary'),
'--tw-prose-bold': theme('colors.dark'),
'--tw-prose-counters': theme('colors.primary'),
'--tw-prose-bullets': theme('colors.primary'),
'--tw-prose-hr': theme('colors.dark/10'),
'--tw-prose-quotes': theme('colors.dark'),
'--tw-prose-quote-borders': theme('colors.dark/10'),
'--tw-prose-captions': theme('colors.primary'),
'--tw-prose-code': theme('colors.dark'),
'--tw-prose-pre-code': theme('colors.dark'),
'--tw-prose-pre-bg': '#324d39',
'--tw-prose-th-borders': theme('colors.dark/30'),
'--tw-prose-td-borders': theme('colors.dark/30'),
'--tw-prose-invert-body': theme('colors.light'),
'--tw-prose-invert-headings': theme('colors.light'),
'--tw-prose-invert-lead': theme('colors.light'),
'--tw-prose-invert-links': theme('colors.primary'),
'--tw-prose-invert-bold': theme('colors.light'),
'--tw-prose-invert-counters': 'rgb(163 227 176)',
'--tw-prose-invert-bullets': 'rgb(163 227 176)',
'--tw-prose-invert-hr': theme('colors.dark/10'),
'--tw-prose-invert-quotes': theme('colors.dark/10'),
'--tw-prose-invert-quote-borders': theme('colors.dark/10'),
'--tw-prose-invert-captions': theme('colors.secondary'),
'--tw-prose-invert-code': theme('colors.secondary'),
'--tw-prose-invert-pre-code': theme('colors.secondary'),
'--tw-prose-invert-pre-bg': theme('colors.dark'),
'--tw-prose-invert-th-borders': theme('colors.dark/10'),
'--tw-prose-invert-td-borders': theme('colors.dark/10'),
pre: {
color: 'black',
background: 'transparent',
padding: 0,
margin: 0,
},
},
},
}),
},
},
};