-
Notifications
You must be signed in to change notification settings - Fork 3
/
typography.config.js
51 lines (51 loc) · 1.37 KB
/
typography.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
module.exports = (theme) => {
return {
default: {
css: {
color: theme('colors.on-background.default'),
blockquote: {
color: theme('colors.on-background-blockquote.default'),
borderLeftColor: theme('colors.on-background-muted.default'),
},
'blockquote p:first-of-type::before, blockquote p:last-of-type::after': {
content: 'none',
},
hr: {
borderTopColor: theme('colors.on-background-muted.default'),
},
strong: {
color: theme('colors.brand.default'),
},
'figure figcaption': {
color: theme('colors.on-background-figcaption.default'),
},
a: {
color: theme('colors.brand.default'),
},
th: {
color: theme('colors.brand.default'),
},
'thead, tbody tr': {
borderBottomColor: theme('colors.on-background-muted.default'),
},
'h1, h2, h3, h4': {
color: theme('colors.brand.default'),
},
code: {
color: theme('colors.on-background.default'),
borderRadius: theme('borderRadius.default'),
backgroundColor: theme('colors.on-background-code.default'),
padding: theme('padding.1'),
},
'code::before': { content: '' },
'code::after': { content: '' },
'ol > li:before': {
color: theme('colors.on-background-list.default'),
},
'ul > li:before': {
backgroundColor: theme('colors.on-background-muted.default'),
},
},
},
};
};