-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.cjs
55 lines (54 loc) · 1.56 KB
/
tailwind.config.cjs
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
const { fontFamily } = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
spacing: {
xs: '0.5rem',
sm: '1rem',
md: '2rem',
lg: '3rem',
xl: '6rem',
},
fontFamily: {
sans: ['Arial', ...fontFamily.sans],
serif: ['Georgia', ...fontFamily.serif],
mono: ['Menlo', ...fontFamily.mono],
},
screens: {
xs: '400px',
},
colors: {
'f-high': 'var(--f-high)',
'f-low': 'var(--f-low)',
'b-high': 'var(--b-high)',
'b-med': 'var(--b-med)',
'b-low': 'var(--b-low)',
accent: 'var(--accent)',
background: 'var(--background)',
},
typography: ({ theme }) => ({
custom: {
css: {
'--tw-prose-body': theme('colors.f-low'),
'--tw-prose-headings': theme('colors.f-high'),
'--tw-prose-lead': theme('colors.f-high'),
'--tw-prose-links': theme('colors.f-high'),
'--tw-prose-bold': theme('colors.f-high'),
'--tw-prose-counters': theme('colors.f-high'),
'--tw-prose-bullets': theme('colors.f-low'),
'--tw-prose-hr': theme('colors.f-high'),
'--tw-prose-quotes': theme('colors.f-high'),
'--tw-prose-quote-borders': theme('colors.f-high'),
'--tw-prose-captions': theme('colors.f-high'),
'--tw-prose-code': theme('colors.f-high'),
'--tw-prose-th-borders': theme('colors.f-high'),
'--tw-prose-td-borders': theme('colors.f-high'),
},
},
}),
},
},
plugins: [require('@tailwindcss/typography')],
};