-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
56 lines (56 loc) · 1.61 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: 'class',
theme: {
extend: {
fontFamily: {
serif: ['Merriweather', 'serif'],
sans: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'],
},
fontSize: {
// Custom size scale
xs: ['0.75rem', { lineHeight: '1rem' }],
sm: ['0.875rem', { lineHeight: '1.25rem' }],
base: ['1rem', { lineHeight: '1.5rem' }],
lg: ['1.125rem', { lineHeight: '1.75rem' }],
xl: ['1.25rem', { lineHeight: '1.75rem' }],
'2xl': ['1.5rem', { lineHeight: '2rem' }],
'3xl': ['1.875rem', { lineHeight: '2.25rem' }],
'4xl': ['2.25rem', { lineHeight: '2.5rem' }],
},
// Styles for 'prose' classes.
typography: ({ theme }) => ({
DEFAULT: {
css: {
a: {
textDecoration: 'none',
fontWeight: '400',
},
p: {
marginLeft: '3px',
textAlign: 'justify',
fontWeight: '300',
},
h2: {
marginLeft: '3px',
fontWeight: '600',
},
h3: {
marginLeft: '3px',
fontWeight: '600',
},
li: {
fontWeight: '300',
},
hr: {
borderColor: 'var(--tw-prose-bullets)',
},
},
},
}),
colors: {},
},
},
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
};