Skip to content

Commit c2aa2cb

Browse files
author
Filip Łukasik
committed
update typography and color tokens
1 parent 197e831 commit c2aa2cb

File tree

2 files changed

+81
-59
lines changed

2 files changed

+81
-59
lines changed

scaladoc/resources/dotty_res/styles/color-tokens.css

Lines changed: 28 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
--text-primary: var(--grey12);
66
--text-secondary: var(--grey11);
77
--text-text-tertiary: var(--grey9);
8+
--text-text-inverted: var(--grey1);
89

910
/* icon */
1011
--icon-default: var(--grey11);
@@ -31,6 +32,19 @@
3132

3233
--action-primary-border-default: var(--grey5);
3334

35+
/* semantic */
36+
--semantic-content-grey: var(--grey11);
37+
--semantic-content-sky: var(--sky11);
38+
--semantic-content-grass: var(--grass11);
39+
--semantic-content-yellow: var(--yellow11);
40+
--semantic-content-red: var(--red11);
41+
42+
--semantic-background-grey: var(--grey3);
43+
--semantic-background-sky: var(--sky3);
44+
--semantic-background-grass: var(--grass3);
45+
--semantic-background-yellow: var(--yellow3);
46+
--semantic-background-red: var(--red3);
47+
3448
/* code */
3549
--code-props-content: var(--red11);
3650
--code-props-background: var(--red3);
@@ -56,37 +70,16 @@
5670
--code-method-highlighting-keyword: var(--crimson11);
5771

5872
/* api child */
59-
--api-child-package-content: var(--yellow1);
6073
--api-child-package-background: var(--yellow11);
61-
62-
--api-child-class-content: var(--mint1);
6374
--api-child-class-background: var(--mint11);
64-
65-
--api-child-object-content: var(--indigo1);
6675
--api-child-object-background: var(--indigo11);
67-
68-
--api-child-trait-content: var(--sky1);
6976
--api-child-trait-background: var(--sky11);
70-
71-
--api-child-val-content: var(--lime1);
7277
--api-child-val-background: var(--lime11);
73-
74-
--api-child-def-content: var(--lime1);
7578
--api-child-def-background: var(--lime11);
76-
77-
--api-child-static-doc-content: var(--grey1);
7879
--api-child-static-doc-background: var(--grey11);
79-
80-
--api-child-given-content: var(--purple1);
8180
--api-child-given-background: var(--purple11);
82-
83-
--api-child-method-content: var(--indigo1);
8481
--api-child-method-background: var(--indigo11);
85-
86-
--api-child-enum-content: var(--orange1);
8782
--api-child-enum-background: var(--orange11);
88-
89-
--api-child-type-content: var(--crimson1);
9083
--api-child-type-background: var(--crimson11);
9184
}
9285

@@ -97,6 +90,7 @@
9790
--text-primary: var(--grey12);
9891
--text-secondary: var(--grey11);
9992
--text-text-tertiary: var(--grey9);
93+
--text-text-inverted: var(--grey1);
10094

10195
/* icon */
10296
--icon-default: var(--grey11);
@@ -146,37 +140,29 @@
146140
--code-method-highlighting-link-sig-fig: var(--sky11);
147141
--code-method-highlighting-keyword: var(--crimson11);
148142

143+
/* semantic */
144+
--semantic-content-grey: var(--grey11);
145+
--semantic-content-sky: var(--sky11);
146+
--semantic-content-grass: var(--grass11);
147+
--semantic-content-yellow: var(--yellow11);
148+
--semantic-content-red: var(--red11);
149+
150+
--semantic-background-grey: var(--grey4);
151+
--semantic-background-sky: var(--sky4);
152+
--semantic-background-grass: var(--grass4);
153+
--semantic-background-yellow: var(--yellow4);
154+
--semantic-background-red: var(--red4);
155+
149156
/* api child */
150-
--api-child-package-content: var(--yellow1);
151157
--api-child-package-background: var(--yellow11);
152-
153-
--api-child-class-content: var(--mint1);
154158
--api-child-class-background: var(--mint11);
155-
156-
--api-child-object-content: var(--indigo1);
157159
--api-child-object-background: var(--indigo11);
158-
159-
--api-child-trait-content: var(--sky1);
160160
--api-child-trait-background: var(--sky11);
161-
162-
--api-child-val-content: var(--lime1);
163161
--api-child-val-background: var(--lime11);
164-
165-
--api-child-def-content: var(--lime1);
166162
--api-child-def-background: var(--lime11);
167-
168-
--api-child-static-doc-content: var(--grey1);
169163
--api-child-static-doc-background: var(--grey11);
170-
171-
--api-child-given-content: var(--purple1);
172164
--api-child-given-background: var(--purple11);
173-
174-
--api-child-method-content: var(--indigo1);
175165
--api-child-method-background: var(--indigo11);
176-
177-
--api-child-enum-content: var(--orange1);
178166
--api-child-enum-background: var(--orange11);
179-
180-
--api-child-type-content: var(--crimson1);
181167
--api-child-type-background: var(--crimson11);
182168
}
Lines changed: 53 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,83 @@
11
h700 {
2-
font-size: 52;
3-
line-height: 64;
2+
font-size: 52px;
3+
line-height: 64px;
44
font-weight: 500;
55
}
66

77
h600 {
8-
font-size: 40;
9-
line-height: 56;
8+
font-size: 40px;
9+
line-height: 56px;
1010
font-weight: 700;
1111
}
1212

1313
h500 {
14-
font-size: 32;
15-
line-height: 40;
16-
font-weight: medium;
14+
font-size: 32px;
15+
line-height: 40px;
16+
font-weight: 500;
1717
}
1818

1919
h400 {
20-
font-size: 24;
21-
line-height: 32;
20+
font-size: 24px;
21+
line-height: 32px;
2222
font-weight: 500;
2323
}
2424

2525
h300 {
26-
font-size: 20;
27-
line-height: 24;
26+
font-size: 20px;
27+
line-height: 24px;
2828
font-weight: 700;
2929
}
3030

3131
h200 {
32-
font-size: 16;
33-
line-height: 24;
32+
font-size: 16px;
33+
line-height: 24px;
3434
font-weight: 500;
3535
}
3636

3737
h100 {
38-
font-size: 13;
39-
line-height: 16;
38+
font-size: 13px;
39+
line-height: 16px;
4040
font-weight: 500;
4141
}
4242

4343
h50 {
44-
font-size: 9;
45-
line-height: 12;
44+
font-size: 9px;
45+
line-height: 12px;
4646
font-weight: 600;
4747
}
48+
49+
.body-large {
50+
font-size: 20px;
51+
line-height: 24px;
52+
font-weight: 400;
53+
}
54+
55+
.body-medium {
56+
font-size: 16px;
57+
line-height: 24px;
58+
font-weight: 400;
59+
}
60+
61+
.body-small {
62+
font-size: 13px;
63+
line-height: 16px;
64+
font-weight: 400;
65+
}
66+
67+
.mono-medium {
68+
font-size: 16px;
69+
line-height: 24px;
70+
font-weight: 400;
71+
}
72+
73+
.mono-small-inline {
74+
font-size: 13px;
75+
line-height: 16px;
76+
font-weight: 400;
77+
}
78+
79+
.mono-small-block {
80+
font-size: 13px;
81+
line-height: 20px;
82+
font-weight: 400;
83+
}

0 commit comments

Comments
 (0)