Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
91 lines (89 loc) · 2.76 KB
/
Copy pathtailwind.config.js
File metadata and controls
91 lines (89 loc) · 2.76 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
import typography from '@tailwindcss/typography';
const config = {
content: ['./src/**/*.{js,ts,jsx,tsx}', './content/**/*.{md,mdx}'],
theme: {
screens: {
sm: '640px',
md: '1024px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
extend: {
fontFamily: {
onest: ['var(--font-onest)', 'Onest', 'sans-serif'],
},
colors: {
nav: {
DEFAULT: '#888888',
sub: '#a8a8a8',
active: '#6da643',
highlight: '#313233',
},
brand: {
bg: 'var(--brand-bg)',
fg: 'var(--brand-fg)',
green: '#65D100',
'green-dark': '#50BD00',
'green-light': '#76DD2A',
'green-pressed': '#356D00',
card: 'var(--brand-card)',
separator: 'var(--brand-separator)',
muted: 'var(--brand-muted)',
},
},
borderRadius: {
'4xl': '40px',
'5xl': '80px',
},
letterSpacing: {
oai: '-0.04em',
},
maxWidth: {
content: '1293px',
prose: '72ch',
},
typography: {
DEFAULT: {
css: {
'--tw-prose-body': 'var(--brand-fg)',
'--tw-prose-headings': 'var(--brand-fg)',
'--tw-prose-lead': 'var(--brand-muted)',
'--tw-prose-links': 'var(--brand-link)',
'--tw-prose-bold': 'var(--brand-fg)',
'--tw-prose-counters': 'var(--brand-muted)',
'--tw-prose-bullets': 'var(--brand-muted)',
'--tw-prose-hr': 'var(--brand-separator)',
'--tw-prose-quotes': 'var(--brand-fg)',
'--tw-prose-quote-borders': 'var(--brand-link)',
'--tw-prose-captions': 'var(--brand-muted)',
'--tw-prose-code': 'var(--brand-fg)',
'--tw-prose-pre-code': 'var(--brand-fg)',
'--tw-prose-pre-bg': 'var(--brand-card)',
'--tw-prose-th-borders': 'var(--brand-separator)',
'--tw-prose-td-borders': 'var(--brand-separator)',
maxWidth: 'none',
a: { textDecoration: 'none', fontWeight: '500' },
'a:hover': { textDecoration: 'underline' },
'h1 a, h2 a, h3 a, h4 a, h5 a, h6 a': {
color: 'inherit',
fontWeight: 'inherit',
textDecoration: 'none',
},
'code::before': { content: '""' },
'code::after': { content: '""' },
code: {
backgroundColor: 'var(--brand-card)',
borderRadius: '0.25rem',
padding: '0.15em 0.35em',
fontWeight: '400',
},
pre: { border: '1px solid var(--brand-separator)' },
},
},
},
},
},
plugins: [typography],
};
export default config;