Skip to content

Commit 42f9e8d

Browse files
committed
more
1 parent 63e56a9 commit 42f9e8d

File tree

1 file changed

+19
-23
lines changed

1 file changed

+19
-23
lines changed

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

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@
1515
--sk-fg-4: hsl(0, 0%, 45%);
1616
--sk-fg-accent: hsl(12, 93%, 43%);
1717

18-
--shiki-color-text: var(--sk-fg-2);
19-
--shiki-token-constant: var(--shiki-color-text);
20-
--shiki-token-string: hsl(30, 100%, 30%);
21-
--shiki-token-comment: var(--sk-fg-4);
22-
--shiki-token-keyword: hsl(204, 100%, 38%);
23-
--shiki-token-parameter: var(--shiki-color-text);
24-
--shiki-token-function: var(--sk-fg-accent);
25-
--shiki-token-string-expression: var(--shiki-token-string);
26-
--shiki-token-punctuation: var(--shiki-color-text);
27-
--shiki-token-link: var(--shiki-token-keyword);
28-
2918
/* Background colours */
3019
--sk-bg-1: hsl(0, 0%, 100%);
3120
--sk-bg-2: hsl(0, 0%, 100%);
@@ -37,12 +26,21 @@
3726
/* Border color — use this for all borders, except 'active' borders (e.g. current nav) which use `--sk-fg-accent` */
3827
--sk-border: hsl(0, 0%, 92%);
3928

29+
/* Syntax highlighting — these come from `createCssVariablesTheme`, but are used elsewhere as well */
30+
--shiki-color-text: var(--sk-fg-2);
31+
--shiki-token-constant: var(--shiki-color-text);
32+
--shiki-token-string: hsl(30, 100%, 30%);
33+
--shiki-token-comment: var(--sk-fg-4);
34+
--shiki-token-keyword: hsl(204, 100%, 38%);
35+
--shiki-token-parameter: var(--shiki-color-text);
36+
--shiki-token-function: var(--sk-fg-accent);
37+
--shiki-token-string-expression: var(--shiki-token-string);
38+
--shiki-token-punctuation: var(--shiki-color-text);
39+
--shiki-token-link: var(--shiki-token-keyword);
40+
4041
/* Misc */
4142
--sk-scrollbar: rgba(0, 0, 0, 0.3);
4243
--sk-shadow: drop-shadow(0px 0px 14px rgba(0, 0, 0, 0.1));
43-
44-
/* overrides */
45-
--shiki-color-background: var(--sk-bg-2);
4644
}
4745

4846
:root.dark {
@@ -57,12 +55,6 @@
5755
--sk-fg-4: hsl(var(--sk-bg-hue), 10%, 45%);
5856
--sk-fg-accent: hsl(12, 94%, 62%);
5957

60-
--shiki-color-text: hsl(45, 7%, 75%);
61-
--shiki-token-comment: hsl(0, 0%, 55%);
62-
--shiki-token-keyword: hsl(204, 88%, 65%);
63-
--shiki-token-function: hsl(19, 67%, 75%);
64-
--shiki-token-string: hsl(41, 37%, 68%);
65-
6658
/* Background colours */
6759
--sk-bg-1: hsl(var(--sk-bg-hue), 15%, 8%);
6860
--sk-bg-2: hsl(var(--sk-bg-hue), 15%, 15%);
@@ -73,10 +65,14 @@
7365
/* Border colour */
7466
--sk-border: hsl(var(--sk-bg-hue), 15%, 25%);
7567

68+
/* Syntax highlighting */
69+
--shiki-color-text: hsl(45, 7%, 75%);
70+
--shiki-token-comment: hsl(0, 0%, 55%);
71+
--shiki-token-keyword: hsl(204, 88%, 65%);
72+
--shiki-token-function: hsl(19, 67%, 75%);
73+
--shiki-token-string: hsl(41, 37%, 68%);
74+
7675
/* Misc */
7776
--sk-scrollbar: rgba(255, 255, 255, 0.3);
7877
--sk-shadow: drop-shadow(1px 2px 16px rgba(0, 0, 0, 0.5));
79-
80-
/* overrides */
81-
--shiki-color-background: var(--sk-bg-3);
8278
}

0 commit comments

Comments
 (0)