This repository has been archived by the owner on Feb 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.ts
129 lines (129 loc) · 2.8 KB
/
default.ts
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
export const DEFAULT = {
'h1,h2,h3,h4,h5,h6': {
color: 'var(--uno-prose-headings)',
'font-weight': '600',
'line-height': 1.25,
},
a: {
color: 'var(--uno-prose-links)',
'text-decoration': 'underline',
'font-weight': '500',
},
'a code': {
color: 'var(--uno-prose-links)',
},
'p,ul,ol,pre': {
margin: '1em 0',
'line-height': 1.75,
},
blockquote: {
margin: '1em 0',
'padding-left': '1em',
'font-style': 'italic',
'border-left': '.25em solid var(--uno-prose-borders)',
},
// taking 16px as a base, we scale h1, h2, h3, and h4 like
// 16 (base) > 18 (h4) > 22 (h3) > 28 (h2) > 36 (h1)
h1: {
margin: '1rem 0', // h1 is always at the top of the page, so only margin 1 * root font size
'font-size': '2.25em',
},
h2: {
margin: '1.75em 0 .5em',
'font-size': '1.75em',
},
h3: {
margin: '1.5em 0 .5em',
'font-size': '1.375em',
},
h4: {
margin: '1em 0',
'font-size': '1.125em',
},
'img,video': {
'max-width': '100%',
},
'figure,picture': {
margin: '1em 0',
},
figcaption: {
color: 'var(--uno-prose-captions)',
'font-size': '.875em',
},
code: {
color: 'var(--uno-prose-code)',
'font-size': '.875em',
'font-weight': 600,
'font-family':
'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation-Mono,Courier-New,monospace',
},
':not(pre) > code::before,:not(pre) > code::after': {
content: '"`"',
},
pre: {
padding: '1.25rem 1.5rem',
'overflow-x': 'auto',
'border-radius': '.375rem',
},
'pre,code': {
'white-space': 'pre',
'word-spacing': 'normal',
'word-break': 'normal',
'word-wrap': 'normal',
'-moz-tab-size': 4,
'-o-tab-size': 4,
'tab-size': 4,
'-webkit-hyphens': 'none',
'-moz-hyphens': 'none',
hyphens: 'none',
background: 'transparent',
},
'pre code': {
'font-weight': 'inherit',
},
'ol,ul': {
'padding-left': '1.25em',
},
ul: {
'list-style-type': 'disc',
},
'ol > li::marker,ul > li::marker,summary::marker': {
color: 'var(--uno-prose-lists)',
},
hr: {
margin: '2em 0',
border: '1px solid var(--uno-prose-hr)',
},
table: {
display: 'block',
margin: '1em 0',
'border-collapse': 'collapse',
'overflow-x': 'auto',
},
'tr:nth-child(2n)': {
background: 'var(--uno-prose-bg-soft)',
},
'td,th': {
border: '1px solid var(--uno-prose-borders)',
padding: '.625em 1em',
},
abbr: {
cursor: 'help',
},
kbd: {
color: 'var(--uno-prose-code)',
border: '1px solid',
padding: '.25rem .5rem',
'font-size': '.875em',
'border-radius': '.25rem',
},
details: {
margin: '1em 0',
padding: '1.25rem 1.5rem',
background: 'var(--uno-prose-bg-soft)',
},
summary: {
cursor: 'pointer',
'font-weight': '600',
},
}