Skip to content

Commit ce128dc

Browse files
committed
tweak background colours
1 parent 8185d74 commit ce128dc

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
align-items: center;
1717
justify-content: space-between;
1818
padding: 0.6rem var(--sk-page-padding-side);
19-
background-color: var(--sk-bg-2);
19+
background-color: var(--sk-bg-1);
2020
white-space: nowrap;
2121
flex: 0;
2222
gap: 1rem;

apps/svelte.dev/src/routes/docs/[...path]/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
4242
.toc-container {
43-
background: var(--sk-bg-3);
43+
background: var(--sk-bg-2);
4444
display: none;
4545
}
4646

packages/site-kit/src/lib/nav/Nav.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
188188
height: var(--sk-nav-height);
189189
margin: 0 auto;
190190
padding: 0 var(--sk-page-padding-side);
191-
background-color: var(--sk-bg-2);
191+
background-color: var(--sk-bg-1);
192192
font-family: var(--sk-font-family-body);
193193
user-select: none;
194194
isolation: isolate;
@@ -203,6 +203,10 @@ Top navigation bar for the application. It provides a slot for the left side, th
203203
height: 4px;
204204
background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
205205
}
206+
207+
:root.dark & {
208+
background-color: var(--sk-bg-3);
209+
}
206210
}
207211
208212
a {

packages/site-kit/src/lib/styles/tokens/colours.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
/* Background colours */
1919
--sk-bg-1: hsl(0, 0%, 100%);
20-
--sk-bg-2: hsl(0, 0%, 100%);
21-
--sk-bg-3: hsl(0, 0%, 99%);
22-
--sk-bg-4: hsl(0, 0%, 95%);
20+
--sk-bg-2: hsl(0, 0%, 99.3%);
21+
--sk-bg-3: hsl(0, 0%, 98.2%);
22+
--sk-bg-4: hsl(0, 0%, 95%); /* hover states and highlights */
2323
--sk-bg-accent: var(--sk-fg-accent);
2424
--sk-bg-selection: hsla(204, 100%, 63%, 0.3);
2525

@@ -56,14 +56,14 @@
5656
--sk-fg-accent: hsl(12, 94%, 62%);
5757

5858
/* Background colours */
59-
--sk-bg-1: hsl(var(--sk-bg-hue), 15%, 8%);
60-
--sk-bg-2: hsl(var(--sk-bg-hue), 15%, 15%);
61-
--sk-bg-3: hsl(var(--sk-bg-hue), 15%, 12%);
62-
--sk-bg-4: hsl(var(--sk-bg-hue), 15%, 22%);
59+
--sk-bg-1: hsl(var(--sk-bg-hue), 10%, 12%);
60+
--sk-bg-2: hsl(var(--sk-bg-hue), 12%, 14%);
61+
--sk-bg-3: hsl(var(--sk-bg-hue), 14%, 16%);
62+
--sk-bg-4: hsl(var(--sk-bg-hue), 15%, 21%);
6363
--sk-bg-accent: hsl(15, 100%, 35%);
6464

6565
/* Border colour */
66-
--sk-border: hsl(var(--sk-bg-hue), 15%, 25%);
66+
--sk-border: hsl(var(--sk-bg-hue), 15%, 22%);
6767

6868
/* Syntax highlighting */
6969
--shiki-color-text: hsl(45, 7%, 75%);

0 commit comments

Comments
 (0)