Skip to content

Commit 51094bb

Browse files
authored
More token tweaks (#751)
* rename border tokens * fix * get rid of --sk-bg-5 * fix border usage * fixes * move raised styles into buttons.css, add comment on usage * prettier * more
1 parent bf77603 commit 51094bb

File tree

20 files changed

+60
-67
lines changed

20 files changed

+60
-67
lines changed

apps/svelte.dev/src/lib/components/PageControls.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
6262
.controls {
6363
max-width: calc(var(--sk-page-content-width) + 1rem);
64-
border-top: 1px solid var(--sk-border-medium);
64+
border-top: 1px solid var(--sk-border);
6565
padding: 1rem 0 0 0;
6666
margin: 1rem 0 0 0;
6767
text-wrap: balance;

apps/svelte.dev/src/routes/(authed)/apps/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
padding: 0.5rem 1rem;
210210
line-height: 1;
211211
display: flex;
212-
border: 1px solid var(--sk-border-medium);
212+
border: 1px solid var(--sk-border);
213213
border-radius: var(--sk-border-radius);
214214
z-index: 2;
215215
font: var(--sk-font-ui-large);

apps/svelte.dev/src/routes/(authed)/playground/[id]/AppControls.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
304304
input {
305305
background: transparent;
306-
border: 1px solid var(--sk-border-medium);
306+
border: 1px solid var(--sk-border);
307307
border-radius: var(--sk-border-radius);
308308
color: currentColor;
309309
width: 0;

apps/svelte.dev/src/routes/tutorial/[...slug]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
/* we transform the default state, rather than the editor state, because otherwise
370370
the positioning of tooltips is wrong (doesn't take into account transforms) */
371371
transform: translate(50%, 0);
372-
border-top: 1px solid var(--sk-border-medium);
372+
border-top: 1px solid var(--sk-border);
373373
}
374374
375375
.top.offset {

apps/svelte.dev/src/routes/tutorial/[...slug]/Chrome.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
input {
7575
flex: 1;
7676
padding: 0.2rem 0.6rem;
77-
border: 1px solid var(--sk-border-medium);
77+
border: 1px solid var(--sk-border);
7878
/* TODO this should apply to all buttons/inputs? */
7979
border-radius: var(--sk-border-radius);
8080
color: var(--sk-fg-1);

packages/editor/src/lib/codemirror.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130

131131
&.cm-panels-top,
132132
&.cm-panels-bottom {
133-
border-top: 1px solid var(--sk-border-medium);
134-
border-bottom: 1px solid var(--sk-border-medium);
133+
border-top: 1px solid var(--sk-border);
134+
border-bottom: 1px solid var(--sk-border);
135135
}
136136

137137
.cm-panel {
@@ -179,7 +179,7 @@
179179
font: inherit;
180180
background: inherit;
181181
color: var(--sk-fg-1);
182-
border: 1px solid var(--sk-border-medium);
182+
border: 1px solid var(--sk-border);
183183
border-radius: var(--sk-border-radius);
184184
margin: 0;
185185
}

packages/repl/src/lib/Input/ComponentSelector.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
height: 1px;
200200
bottom: 0px;
201201
left: 0;
202-
background-color: var(--sk-bg-4);
202+
background-color: var(--sk-border);
203203
}
204204
}
205205

packages/repl/src/lib/Output/Output.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
height: 1px;
158158
bottom: 0px;
159159
left: 0;
160-
background-color: var(--sk-bg-4);
160+
background-color: var(--sk-border);
161161
}
162162
}
163163

packages/repl/src/lib/Output/console/ConsoleTable.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
margin: 8px;
9797
overflow: auto;
9898
max-height: 200px;
99-
border: 1px solid var(--sk-border-medium);
99+
border: 1px solid var(--sk-border);
100100
border-radius: 2px;
101101
overscroll-behavior: none;
102102
}

packages/repl/src/lib/Repl.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,6 @@
234234
}
235235
}
236236
237-
.divider::after {
238-
background-color: var(--sk-bg-5);
239-
}
240-
241237
[data-pane='main'] > .divider::after {
242238
height: calc(100% - var(--sk-pane-controls-height));
243239
top: var(--sk-pane-controls-height);

0 commit comments

Comments
 (0)