-
Notifications
You must be signed in to change notification settings - Fork 25
/
tailwind.config.ts
70 lines (68 loc) · 1.91 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
import type { Config } from 'tailwindcss'
import { fontFamily } from 'tailwindcss/defaultTheme'
// @ts-expect-error This is how Tailwind CSS is imported
import flattenColorPalette from 'tailwindcss/lib/util/flattenColorPalette'
export default <Partial<Config>> {
theme: {
extend: {
colors: {
yellow: {
50: '#FEFDF7',
100: '#FDFCEF',
200: '#FAF6D6',
300: '#F7F1BD',
400: '#F2E78C',
500: '#ECDC5A',
600: '#D4C651',
700: '#8E8436',
800: '#6A6329',
900: '#47421B',
950: '#2F2C12',
},
},
fontFamily: {
sans: ['Nunito', ...fontFamily.sans],
},
// @ts-expect-error This is a Tailwind CSS plugin
typography: theme => ({
DEFAULT: {
css: {
'h1 a,h2 a,h3 a,h4 a,h5 a,h6 a': {
'text-decoration-line': 'none',
},
'p a, ul a': {
'text-decoration-line': 'underline',
'text-underline-offset': '0.2em',
'color': 'var(--un-prose-body)',
},
'p code, ul code': {
fontWeight: 'inherit',
},
'blockquote': {
'border-left-color': theme('colors.primary'),
},
'pre': {
'margin': 0,
'padding': 0,
'border-radius': 0,
'background-color': 'transparent',
},
'table': {
margin: 0,
},
},
},
}),
},
},
// @ts-expect-error This is a Tailwind CSS plugin
plugins: [function ({ matchUtilities, theme }) {
matchUtilities(
{
// @ts-expect-error This is a Tailwind CSS plugin
highlight: value => ({ boxShadow: `inset 0 1px 0 0 ${value}` }),
},
{ values: flattenColorPalette(theme('backgroundColor')), type: 'color' },
)
}],
}