-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonospace.styles.ts
80 lines (79 loc) · 1.77 KB
/
monospace.styles.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
import { defineGlobalStyles } from "@pandacss/dev";
// adapted from https://github.com/owickstrom/the-monospace-web/blob/main/src/index.css
export default defineGlobalStyles({
"*": {
scrollbarColor: "token(colors.fg.default) transparent",
scrollbarWidth: "thin",
},
":root": {
fontOpticalSizing: "auto",
fontStyle: "normal",
fontVariantNumeric: "tabular-nums lining-nums",
fontWeight: "normal",
fontSize: "14px",
sm: {
fontSize: "16px",
},
},
body: {
lineHeight: "token(lineHeights.base)",
},
html: {
backgroundColor: "bg.default",
color: "fg.default",
},
h1: {
textTransform: "uppercase",
marginBottom: "calc(2 * token(lineHeights.base))",
fontSize: "1.5rem",
lineHeight: "calc(1.5 * token(lineHeights.base))",
sm: {
fontSize: "2rem",
lineHeight: "calc(2 * token(lineHeights.base))",
},
},
h2: {
fontSize: "1rem",
textTransform: "uppercase",
},
hr: {
position: "relative",
display: "block",
height: "token(lineHeights.base)",
margin: "calc(token(lineHeights.base) * 1.5) 0",
border: "none",
color: "token(colors.fg.default)",
"&:after": {
display: "block",
content: '""',
position: "absolute",
top: "calc(token(lineHeights.base) / 2 - token(borderWidths.base))",
left: 0,
width: "100%",
borderTop:
"calc(token(borderWidths.base) * 3) double token(colors.fg.default)",
height: 0,
},
},
a: {
backgroundColor: "bg.canvas",
textDecoration: "underline",
textDecorationThickness: "token(borderWidths.base)",
_hover: {
color: "bg.canvas",
backgroundColor: "fg.default",
},
'&:link,&:visited': {
color: "fg.default",
},
'&::after,&::before': {
display: 'inline'
},
},
strong: {
fontWeight: "bold",
},
em: {
fontStyle: "italic"
}
});