/
tailwind.config.js
142 lines (141 loc) · 3.47 KB
/
tailwind.config.js
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
import colors from 'tailwindcss/colors'
import defaultTheme from 'tailwindcss/defaultTheme'
export default {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
extend: {
colors: {
gray: colors.neutral,
fuchsia: colors.fuchsia,
orange: colors.orange,
cyan: colors.cyan,
emerald: colors.emerald,
},
fontFamily: {
sans: ['var(--font-inter)', ...defaultTheme.fontFamily.sans],
mono: ['iAWriter Mono', ...defaultTheme.fontFamily.mono],
},
boxShadow: {
card: '0 0 0.5rem rgba(0, 0, 0, 0.075)',
},
typography: theme => ({
DEFAULT: {
css: {
whiteSpace: 'pre-wrap',
'> *, blockquote > *': {
marginTop: '0 !important',
marginBottom: '0 !important',
},
figcaption: {
textAlign: 'center',
},
strong: {
fontWeight: theme('fontWeight.medium'),
},
img: {
marginTop: null,
marginBottom: null,
borderRadius: theme('borderRadius.lg'),
},
blockquote: {
display: 'flex',
fontStyle: null,
borderLeftWidth: '2px',
borderColor: theme('colors.blue.600'),
fontWeight: theme('fontWeight.normal'),
},
hr: {
borderTopWidth: '2px',
maxWidth: '12rem',
marginLeft: 'auto',
marginRight: 'auto',
},
'blockquote p:first-of-type::before, blockquote p:last-of-type::after': {
content: 'unset !important',
},
a: {
color: theme('colors.blue.600'),
wordWrap: 'break-word',
fontWeight: theme('fontWeight.normal'),
textDecoration: 'none',
textUnderlineOffset: '0.2em',
'&:hover': {
textDecoration: 'underline',
},
},
'ol > li::before': {
fontFamily: theme('fontFamily.mono').join(', '),
color: theme('colors.gray.400'),
},
'ul > li::before': {
backgroundColor: theme('colors.gray.400'),
},
'.twitter-tweet': {
marginLeft: 'auto',
marginRight: 'auto',
},
code: {
fontWeight: theme('fontWeight.normal'),
background: theme('colors.gray.200'),
color: theme('colors.gray.600'),
borderRadius: theme('borderRadius.lg'),
padding: `0.125rem ${theme('padding.1')}`,
'&::before, &::after': {
content: 'unset !important',
},
},
'[data-nft] *, .opengraph *, .opengraph *:hover': {
margin: '0',
textDecoration: 'none',
borderRadius: 'unset',
},
},
},
dark: {
css: {
color: theme('colors.gray.300'),
strong: {
color: theme('colors.gray.300'),
},
'h1, h2, h3, h4, h5, h6': {
color: theme('colors.gray.200'),
},
blockquote: {
color: theme('colors.gray.300'),
borderColor: theme('colors.yellow.400'),
},
'ol > li::before': {
color: theme('colors.gray.500'),
},
'ul > li::before': {
backgroundColor: theme('colors.gray.600'),
},
':not(pre) > code': {
background: theme('colors.gray.800'),
color: 'unset',
},
hr: {
borderColor: theme('colors.gray.700'),
opacity: '0.6',
},
},
},
lg: {
css: {
'ol > li, ul > li': {
marginTop: '0',
marginBottom: '0',
},
// Image margin is handled by `figure`
img: {
marginTop: null,
marginBottom: null,
},
},
},
}),
},
},
plugins: [require('@tailwindcss/typography')],
}