Skip to content

Commit 201ca01

Browse files
authored
Merge pull request #11 from pikinier20/scaladoc/typography-and-color-tokens-implementation
typography and color tokens implementation
2 parents 53ef19a + f8afafa commit 201ca01

File tree

2 files changed

+251
-0
lines changed

2 files changed

+251
-0
lines changed
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
:root {
2+
/* Light Mode */
3+
4+
/* text */
5+
--text-primary: var(--grey12);
6+
--text-secondary: var(--grey11);
7+
--text-text-tertiary: var(--grey9);
8+
--text-text-inverted: var(--grey1);
9+
10+
/* icon */
11+
--icon-default: var(--grey11);
12+
13+
/* border */
14+
--border-default: var(--grey5);
15+
--border-background-color: var(--grey1);
16+
17+
/* background */
18+
--background-default: var(--grey1);
19+
--background-neutral: var(--grey2);
20+
21+
/* action */
22+
--action-primary-content-default: var(--grey11);
23+
--action-primary-content-hover: var(--grey12);
24+
--action-primary-content-active: var(--grey12);
25+
--action-primary-content-selected: var(--grey12);
26+
27+
--action-primary-background-default-ghost: transparent;
28+
--action-primary-background-default-solid: var(--grey2);
29+
--action-primary-background-hover: var(--grey3);
30+
--action-primary-background-active: var(--grey3);
31+
--action-primary-background-selected: var(--grey4);
32+
33+
--action-primary-border-default: var(--grey5);
34+
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+
48+
/* code */
49+
--code-props-content: var(--red11);
50+
--code-props-background: var(--red3);
51+
52+
--code-syntax-highlighting-comment: var(--grey11);
53+
--code-syntax-highlighting-quote: var(--grey11);
54+
--code-syntax-highlighting-line-number: var(--grey8);
55+
--code-syntax-highlighting-title: var(--mint11);
56+
--code-syntax-highlighting-keyword: var(--indigo11);
57+
--code-syntax-highlighting-code-fg: var(--grey12);
58+
--code-syntax-highlighting-literal: var(--crimson11);
59+
--code-syntax-highlighting-type: var(--grass9);
60+
--code-syntax-highlighting-subst: var(--yellow11);
61+
--code-syntax-highlighting-meta: var(--yellow11);
62+
--code-syntax-highlighting-string: var(--lime9);
63+
--code-syntax-highlighting-deletion: var(--purple9);
64+
--code-syntax-highlighting-variable: var(--purple9);
65+
66+
--code-method-highlighting-type: var(--purple9);
67+
--code-method-highlighting-type-link: var(--sky11);
68+
--code-method-highlighting-code-fg: var(--grey12);
69+
--code-method-highlighting-link-sig-fig: var(--sky11);
70+
--code-method-highlighting-keyword: var(--crimson11);
71+
72+
/* api child */
73+
--api-child-package-background: var(--yellow11);
74+
--api-child-class-background: var(--mint11);
75+
--api-child-object-background: var(--indigo11);
76+
--api-child-trait-background: var(--sky11);
77+
--api-child-val-background: var(--lime11);
78+
--api-child-def-background: var(--lime11);
79+
--api-child-static-doc-background: var(--grey11);
80+
--api-child-given-background: var(--purple11);
81+
--api-child-method-background: var(--indigo11);
82+
--api-child-enum-background: var(--orange11);
83+
--api-child-type-background: var(--crimson11);
84+
}
85+
86+
:root {
87+
/* Dark Mode */
88+
89+
/* text */
90+
--text-primary: var(--grey12);
91+
--text-secondary: var(--grey11);
92+
--text-text-tertiary: var(--grey9);
93+
--text-text-inverted: var(--grey1);
94+
95+
/* icon */
96+
--icon-default: var(--grey11);
97+
98+
/* border */
99+
--border-default: var(--grey6);
100+
--border-background-color: var(--grey1);
101+
102+
/* background */
103+
--background-default: var(--grey1);
104+
--background-neutral: var(--grey3);
105+
106+
/* action */
107+
--action-primary-content-default: var(--grey11);
108+
--action-primary-content-hover: var(--grey12);
109+
--action-primary-content-active: var(--grey12);
110+
--action-primary-content-selected: var(--grey12);
111+
112+
--action-primary-background-default-ghost: transparent;
113+
--action-primary-background-default-solid: var(--grey3);
114+
--action-primary-background-hover: var(--grey4);
115+
--action-primary-background-active: var(--grey4);
116+
--action-primary-background-selected: var(--grey5);
117+
--action-primary-border-default: var(--grey6);
118+
119+
/* code */
120+
--code-props-content: var(--red11);
121+
--code-props-background: var(--red3);
122+
123+
--code-syntax-highlighting-comment: var(--grey11);
124+
--code-syntax-highlighting-quote: var(--grey11);
125+
--code-syntax-highlighting-line-number: var(--grey8);
126+
--code-syntax-highlighting-title: var(--mint11);
127+
--code-syntax-highlighting-keyword: var(--indigo11);
128+
--code-syntax-highlighting-code-fg: var(--grey12);
129+
--code-syntax-highlighting-literal: var(--crimson11);
130+
--code-syntax-highlighting-type: var(--grass9);
131+
--code-syntax-highlighting-subst: var(--yellow11);
132+
--code-syntax-highlighting-meta: var(--yellow11);
133+
--code-syntax-highlighting-string: var(--lime9);
134+
--code-syntax-highlighting-deletion: var(--purple9);
135+
--code-syntax-highlighting-variable: var(--purple9);
136+
137+
--code-method-highlighting-type: var(--purple9);
138+
--code-method-highlighting-type-link: var(--sky11);
139+
--code-method-highlighting-code-fg: var(--grey12);
140+
--code-method-highlighting-link-sig-fig: var(--sky11);
141+
--code-method-highlighting-keyword: var(--crimson11);
142+
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+
156+
/* api child */
157+
--api-child-package-background: var(--yellow11);
158+
--api-child-class-background: var(--mint11);
159+
--api-child-object-background: var(--indigo11);
160+
--api-child-trait-background: var(--sky11);
161+
--api-child-val-background: var(--lime11);
162+
--api-child-def-background: var(--lime11);
163+
--api-child-static-doc-background: var(--grey11);
164+
--api-child-given-background: var(--purple11);
165+
--api-child-method-background: var(--indigo11);
166+
--api-child-enum-background: var(--orange11);
167+
--api-child-type-background: var(--crimson11);
168+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
.h700 {
2+
font-size: 52px;
3+
line-height: 64px;
4+
font-weight: 500;
5+
}
6+
7+
.h600 {
8+
font-size: 40px;
9+
line-height: 56px;
10+
font-weight: 700;
11+
}
12+
13+
.h500 {
14+
font-size: 32px;
15+
line-height: 40px;
16+
font-weight: 500;
17+
}
18+
19+
.h400 {
20+
font-size: 24px;
21+
line-height: 32px;
22+
font-weight: 500;
23+
}
24+
25+
.h300 {
26+
font-size: 20px;
27+
line-height: 24px;
28+
font-weight: 700;
29+
}
30+
31+
.h200 {
32+
font-size: 16px;
33+
line-height: 24px;
34+
font-weight: 500;
35+
}
36+
37+
.h100 {
38+
font-size: 13px;
39+
line-height: 16px;
40+
font-weight: 500;
41+
}
42+
43+
.h50 {
44+
font-size: 9px;
45+
line-height: 12px;
46+
font-weight: 600;
47+
}
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)