forked from creatorsgarten/open.source.in.th
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
63 lines (62 loc) · 1.22 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
56
57
58
59
60
61
62
63
const colors = require('tailwindcss/colors')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
colors: {
bosf: '#909C46'
},
typography: {
lg: {
css: {
color: colors.neutral[900],
a: {
fontSize: '1.35rem',
textDecoration: 'none',
color: colors.purple[500],
'&:hover': {
backgroundColor: colors.yellow[300],
color: colors.neutral[900]
}
},
h1: {
fontSize: '2.25rem',
margin: '1.25rem 0 0.75rem 0',
fontWeight: 500
},
h2: {
fontSize: '1.7rem',
margin: '1.25rem 0 0.75rem 0',
fontWeight: 500
},
h3: {
fontSize: '1.2rem',
margin: '1.25rem 0 0.75rem 0',
fontWeight: 500
},
p: {
marginBottom: '1.5rem',
maxWidth: '60ch'
},
img: {
margin: '1rem 0'
},
ul: {
paddingLeft: '1rem',
color: '#000',
margin: '1rem 0'
},
'ul > li': {
paddingLeft: '0'
},
strong: {
fontWeight: 500
}
}
}
}
}
},
plugins: [require('@tailwindcss/typography')]
}