-
Notifications
You must be signed in to change notification settings - Fork 10
/
tailwind.config.ts
97 lines (95 loc) · 2.82 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
import tailwindTypography from '@tailwindcss/typography'
import type { PluginUtils } from 'tailwindcss/types/config'
import { addDynamicIconSelectors } from '@iconify/tailwind'
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
css: {
},
typography: ({ theme }: PluginUtils) => ({
neutral: {
css: {
'--tw-prose-headings': theme('colors.gray.600'),
'--tw-prose-body': theme('colors.gray.600'),
'--tw-prose-bold': theme('colors.gray.600'),
'--tw-prose-quotes': theme('colors.gray.600'),
'--tw-prose-bullets': theme('colors.gray.600'),
},
},
DEFAULT: {
css: {
'fontSize': theme('fontSize.xl')[0],
'lineHeight': theme('fontSize.3xl')[1].lineHeight,
'h1': {
fontSize: theme('fontSize.4xl')[0],
fontWeight: '700',
},
'h2': {
fontSize: theme('fontSize.3xl')[0],
fontWeight: '700',
},
'h3': {
fontSize: theme('fontSize.2xl')[0],
fontWeight: '700',
},
'h4': {
fontSize: theme('fontSize.xl')[0],
fontWeight: '700',
},
'h5': {
fontSize: theme('fontSize.lg')[0],
fontWeight: '700',
},
'h6': {
fontSize: theme('fontSize.base')[0],
fontWeight: '700',
},
'a': {
color: '#2f7d95',
fontWeight: '500',
},
'ul': {
paddingInlineStart: theme('space.4'),
},
'ul > li': {
paddingInlineStart: theme('space.1'),
},
'sup > a': {
'fontSize': 'inherit',
'textDecoration': 'none',
'&:hover': {
textDecoration: 'underline',
},
},
'.footnotes a[data-footnote-backref]': {
'fontFamily': 'sans-serif',
'textDecoration': 'none',
'&:hover': {
textDecoration: 'underline',
},
},
'.footnotes ol': {
'font-size': theme('fontSize.base')[0],
'line-height': theme('fontSize.lg')[1].lineHeight,
},
'.footnotes li': {
'margin-top': theme('space.4'),
'margin-bottom': theme('space.4'),
},
'.footnotes li p': {
'margin-top': theme('space.0'),
'margin-bottom': theme('space.0'),
},
},
},
}),
},
},
plugins: [
tailwindTypography,
addDynamicIconSelectors({
scale: 0,
}),
],
}