Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 2e21c62

Browse files
committed
fix: font size updates
1 parent 19c6fec commit 2e21c62

2 files changed

Lines changed: 59 additions & 11 deletions

File tree

packages/ui/src/components/markdown.css

Lines changed: 56 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,70 @@
55
color: var(--text-base);
66
text-wrap: pretty;
77

8+
strong {
9+
font-weight: var(--font-weight-medium);
10+
}
11+
812
/* text-12-regular */
913
font-family: var(--font-family-sans);
10-
font-size: var(--font-size-small);
14+
font-size: var(--font-size-base);
1115
font-style: normal;
1216
font-weight: var(--font-weight-regular);
13-
line-height: var(--line-height-large); /* 166.667% */
17+
line-height: var(--line-height-large);
1418
letter-spacing: var(--letter-spacing-normal);
1519

16-
h1,
17-
h2,
20+
h1 {
21+
margin-top: 40px;
22+
font-weight: var(--font-weight-medium);
23+
color: var(--text-strong);
24+
25+
strong {
26+
font-weight: var(--font-weight-medium);
27+
}
28+
}
29+
30+
h2 {
31+
margin-top: 32px;
32+
font-weight: var(--font-weight-medium);
33+
color: var(--text-strong);
34+
35+
strong {
36+
font-weight: var(--font-weight-medium);
37+
}
38+
}
39+
1840
h3 {
19-
margin-top: 16px;
20-
margin-bottom: 8px;
41+
margin-top: 24px;
2142
font-weight: var(--font-weight-medium);
43+
color: var(--text-strong);
44+
45+
46+
strong {
47+
font-weight: var(--font-weight-medium);
48+
}
49+
}
50+
51+
h1 {
52+
font-size: 15px;
2253
}
2354

2455
p {
56+
margin-top: 16px;
2557
margin-bottom: 8px;
2658
}
2759

2860
ul,
2961
ol {
3062
margin-top: 16px;
31-
margin-bottom: 16px;
63+
64+
li {
65+
margin-bottom: 12px;
66+
line-height: var(--line-height-large);
67+
}
68+
69+
li:last-child {
70+
margin-bottom: 0;
71+
}
3272
}
3373

3474
hr {
@@ -37,6 +77,14 @@
3777
border-color: var(--border-weaker-base);
3878
}
3979

80+
.shiki {
81+
font-size: 13px;
82+
background: var(--surface-raised-base) !important; /* temporary fix to test style */
83+
padding: 8px 12px;
84+
border-radius: 4px;
85+
border: 0.5px solid var(--border-weak-base);
86+
}
87+
4088
pre {
4189
margin-top: 2rem;
4290
margin-bottom: 2rem;
@@ -51,7 +99,7 @@
5199
:not(pre) > code {
52100
font-family: var(--font-family-mono);
53101
font-feature-settings: var(--font-family-mono--font-feature-settings);
54-
font-size: 0.9em;
102+
font-size: 13px;
55103
/* background-color: var(--surface-base-strong); */
56104
/* padding: 0.15em 0.35em; */
57105
/* border-radius: var(--radius-sm); */

packages/ui/src/styles/theme.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
--font-size-x-large: 20px;
1111
--font-weight-regular: 400;
1212
--font-weight-medium: 500;
13-
--line-height-large: 20px;
14-
--line-height-x-large: 24px;
15-
--line-height-2x-large: 30px;
13+
--line-height-large: 150%;
14+
--line-height-x-large: 180%;
15+
--line-height-2x-large: 200%;
1616
--letter-spacing-normal: 0;
1717
--letter-spacing-tight: -0.1599999964237213;
1818
--letter-spacing-tightest: -0.3199999928474426;

0 commit comments

Comments
 (0)