-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
52 lines (50 loc) · 1.6 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
import colors from 'tailwindcss/colors'
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
serif: ['Cormorant Garamond', 'Playfair Display', 'Georgia', 'ui-serif', 'serif'],
},
colors: {
gray: {
...colors.neutral,
}
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
// variables
'--tw-prose-body': theme('colors.gray.400'),
'--tw-prose-headings': theme('colors.gray.100'),
'--tw-prose-bold': theme('colors.gray-100'), // not working?
'--tw-prose-quotes': theme('colors.gray.400'),
'--tw-prose-quote-borders': theme('colors.gray.800'),
'--tw-prose-counters': theme('colors.gray.500'),
'--tw-prose-bullets': theme('colors.gray.500'),
'--tw-prose-pre-code': theme('colors.gray.100'),
'--tw-prose-pre-bg': theme('colors.gray.900'),
'--tw-prose-code': theme('colors.gray.100'),
// overrides
fontFamily: theme('fontFamily.serif'),
strong: {
color: theme('colors.gray.100'), // temporary fix for bold text
},
a: {
color: theme('colors.orange.300'),
textDecoration: 'underline',
'&:hover': {
color: theme('colors.orange.400'),
},
}
},
}
}),
},
},
plugins: [
require('@tailwindcss/typography')
],
}