Skip to content

Commit 10dfc78

Browse files
committed
wip: replace hardcoded spacing and font values with design tokens
1 parent 4c783a3 commit 10dfc78

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

cloud/app/src/routes/index.css

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
a {
1212
color: var(--color-text);
1313
text-decoration: underline;
14-
text-underline-offset: 0.1875rem;
14+
text-underline-offset: var(--space-0-75);
1515
}
1616

1717
background: var(--color-bg);
@@ -54,21 +54,16 @@
5454
text-decoration: underline;
5555
align-items: center;
5656
justify-content: center;
57-
text-underline-offset: 0.1875rem;
57+
text-underline-offset: var(--space-0-75);
5858
border-right: 2px solid var(--color-border);
59-
60-
a {
61-
color: var(--color-text);
62-
text-decoration: underline;
63-
}
6459
}
6560

6661
[data-slot="right"] {
6762
flex: 1;
6863
display: flex;
6964
align-items: center;
7065
justify-content: center;
71-
gap: 0.625rem;
66+
gap: var(--space-2-5);
7267
padding: 0 var(--space-6);
7368
}
7469

@@ -78,7 +73,7 @@
7873
align-items: center;
7974
cursor: pointer;
8075
color: var(--color-text-secondary);
81-
font-size: 1.125rem;
76+
font-size: var(--font-size-lg);
8277
font-family: var(--font-mono);
8378
gap: var(--space-2);
8479
}
@@ -141,7 +136,8 @@
141136
align-items: start;
142137
gap: var(--space-3);
143138

144-
&:nth-child(1) {}
139+
&:nth-child(1) {
140+
}
145141

146142
&:nth-child(2) {
147143
border-left: 2px solid var(--color-border);
@@ -221,8 +217,8 @@
221217
[data-component="copy-status"] {
222218
[data-slot="copy"] {
223219
display: block;
224-
width: 16px;
225-
height: 16px;
220+
width: var(--space-4);
221+
height: var(--space-4);
226222
color: var(--color-text-dimmed);
227223

228224
[data-copied] & {
@@ -232,8 +228,8 @@
232228

233229
[data-slot="check"] {
234230
display: none;
235-
width: 16px;
236-
height: 16px;
231+
width: var(--space-4);
232+
height: var(--space-4);
237233
color: white;
238234

239235
[data-copied] & {

cloud/app/src/style/token/space.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ body {
22
--space-0: 0;
33
--space-px: 1px;
44
--space-0-5: 0.125rem;
5+
--space-0-75: 0.1875rem;
56
--space-1: 0.25rem;
67
--space-1-5: 0.375rem;
78
--space-2: 0.5rem;

0 commit comments

Comments
 (0)