|
| 1 | +import typography from '@tailwindcss/typography'; |
| 2 | + |
1 | 3 | /** @type {import('tailwindcss').Config} */ |
2 | 4 | export default { |
3 | 5 | content: ['./src/**/*.{astro,html,js,jsx,md,mdx,ts,tsx}'], |
@@ -39,16 +41,55 @@ export default { |
39 | 41 | DEFAULT: { |
40 | 42 | css: { |
41 | 43 | fontFamily: theme('fontFamily.sans').join(', '), |
| 44 | + fontSize: '1.0625rem', |
| 45 | + lineHeight: '1.85', |
42 | 46 | color: theme('colors.stone.700'), |
43 | | - h1: { fontFamily: theme('fontFamily.serif').join(', '), color: theme('colors.stone.900') }, |
44 | | - h2: { fontFamily: theme('fontFamily.serif').join(', '), color: theme('colors.stone.900') }, |
45 | | - h3: { fontFamily: theme('fontFamily.serif').join(', '), color: theme('colors.stone.900') }, |
46 | | - a: { color: theme('colors.blue.700'), textDecoration: 'none', '&:hover': { textDecoration: 'underline' } }, |
47 | | - 'code': { fontFamily: theme('fontFamily.mono').join(', ') }, |
| 47 | + maxWidth: 'none', |
| 48 | + p: { marginTop: '1.35em', marginBottom: '1.35em' }, |
| 49 | + h1: { fontFamily: theme('fontFamily.serif').join(', '), fontWeight: '400', color: theme('colors.stone.900'), marginBottom: '0.6em' }, |
| 50 | + h2: { fontFamily: theme('fontFamily.serif').join(', '), fontWeight: '400', color: theme('colors.stone.900'), marginTop: '2em', marginBottom: '0.6em', fontSize: '1.4em' }, |
| 51 | + h3: { fontFamily: theme('fontFamily.serif').join(', '), fontWeight: '400', color: theme('colors.stone.900'), marginTop: '1.75em', fontSize: '1.15em' }, |
| 52 | + a: { |
| 53 | + color: theme('colors.blue.700'), |
| 54 | + textDecoration: 'underline', |
| 55 | + textDecorationColor: theme('colors.blue.200'), |
| 56 | + textUnderlineOffset: '3px', |
| 57 | + fontWeight: '500', |
| 58 | + '&:hover': { |
| 59 | + color: theme('colors.blue.800'), |
| 60 | + textDecorationColor: theme('colors.blue.600'), |
| 61 | + }, |
| 62 | + }, |
| 63 | + 'code': { |
| 64 | + fontFamily: theme('fontFamily.mono').join(', '), |
| 65 | + fontSize: '0.875em', |
| 66 | + backgroundColor: theme('colors.stone.100'), |
| 67 | + borderRadius: '0.25rem', |
| 68 | + paddingTop: '0.15em', |
| 69 | + paddingBottom: '0.15em', |
| 70 | + paddingLeft: '0.35em', |
| 71 | + paddingRight: '0.35em', |
| 72 | + fontWeight: '400', |
| 73 | + }, |
| 74 | + 'code::before': { content: 'none' }, |
| 75 | + 'code::after': { content: 'none' }, |
| 76 | + blockquote: { |
| 77 | + borderLeftColor: theme('colors.blue.200'), |
| 78 | + color: theme('colors.stone.500'), |
| 79 | + fontStyle: 'italic', |
| 80 | + paddingLeft: '1.25em', |
| 81 | + }, |
| 82 | + 'blockquote p': { marginTop: '0.4em', marginBottom: '0.4em' }, |
| 83 | + hr: { borderColor: theme('colors.stone.100'), marginTop: '2.5em', marginBottom: '2.5em' }, |
| 84 | + ul: { paddingLeft: '1.4em' }, |
| 85 | + li: { marginTop: '0.4em', marginBottom: '0.4em' }, |
| 86 | + img: { borderRadius: '0.5rem', marginTop: '1.5em', marginBottom: '0.5em' }, |
| 87 | + 'figure figcaption': { color: theme('colors.stone.400'), fontSize: '0.82em', textAlign: 'center', marginTop: '0.5em' }, |
| 88 | + strong: { color: theme('colors.stone.900'), fontWeight: '600' }, |
48 | 89 | }, |
49 | 90 | }, |
50 | 91 | }), |
51 | 92 | }, |
52 | 93 | }, |
53 | | - plugins: [], |
| 94 | + plugins: [typography], |
54 | 95 | }; |
0 commit comments