Skip to content

Commit 136ff79

Browse files
authored
use hsl old fashioned form (sveltejs#502)
* use hsl old fashioned form * feedback * feedback
1 parent 37f5ec1 commit 136ff79

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

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

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,21 @@
7272
--sk-back-5: hsl(0, 0%, 92%);
7373
--sk-back-6: hsl(0, 0%, 86%);
7474

75-
--sk-text-1: hsl(0 0 5);
76-
--sk-text-2: hsl(0 0 12);
77-
--sk-text-3: hsl(0 0 27);
78-
--sk-text-4: hsl(0 0 45);
75+
--sk-text-1: hsl(0, 0%, 5%);
76+
--sk-text-2: hsl(0, 0%, 12%);
77+
--sk-text-3: hsl(0, 0%, 27%);
78+
--sk-text-4: hsl(0, 0%, 45%);
7979
--sk-scrollbar: rgba(0, 0, 0, 0.3);
80-
--sk-shadow: drop-shadow(0px 0px 14px rgba(0 0 0 / 0.1));
80+
--sk-shadow: drop-shadow(0px 0px 14px rgba(0, 0, 0, 0.1));
8181

8282
/* same in light mode, different in dark mode */
8383
--sk-theme-1-variant: hsl(15, 100%, 50%);
8484

8585
--sk-code-base: var(--sk-text-2);
8686
--sk-code-comment: var(--sk-text-4);
87-
--sk-code-keyword: hsl(204 100 38);
87+
--sk-code-keyword: hsl(204 100% 38%);
8888
--sk-code-function: var(--sk-theme-1);
89-
--sk-code-string: hsl(30 100 30);
89+
--sk-code-string: hsl(30 100% 30%);
9090
--sk-code-number: hsl(120, 100%, 25%);
9191
--sk-code-template-string: hsl(2, 80%, 47%);
9292
--sk-code-tags: var(--sk-code-function);
@@ -129,39 +129,39 @@
129129

130130
--sk-back-hue: 220;
131131

132-
--sk-back-1: hsl(var(--sk-back-hue) 15 8);
133-
--sk-back-2: hsl(var(--sk-back-hue) 15 15);
134-
--sk-back-3: hsl(var(--sk-back-hue) 15 12);
135-
--sk-back-4: hsl(var(--sk-back-hue) 15 22);
136-
--sk-back-5: hsl(var(--sk-back-hue) 15 25);
137-
--sk-back-6: hsl(var(--sk-back-hue) 15 32);
138-
--sk-back-translucent: hsl(0 0 100 / 0.1);
132+
--sk-back-1: hsl(var(--sk-back-hue), 15%, 8%);
133+
--sk-back-2: hsl(var(--sk-back-hue), 15%, 15%);
134+
--sk-back-3: hsl(var(--sk-back-hue), 15%, 12%);
135+
--sk-back-4: hsl(var(--sk-back-hue), 15%, 22%);
136+
--sk-back-5: hsl(var(--sk-back-hue), 15%, 25%);
137+
--sk-back-6: hsl(var(--sk-back-hue), 15%, 32%);
138+
--sk-back-translucent: hsla(0, 0%, 100%, 0.1);
139139
--sk-theme-1-hsl: 12, 94%, 62%;
140-
--sk-text-1: hsl(var(--sk-back-hue) 10 90%);
141-
--sk-text-2: hsl(var(--sk-back-hue) 10 80%);
142-
--sk-text-3: hsl(var(--sk-back-hue) 10 65%);
143-
--sk-text-4: hsl(var(--sk-back-hue) 10 45%);
140+
--sk-text-1: hsl(var(--sk-back-hue), 10%, 90%);
141+
--sk-text-2: hsl(var(--sk-back-hue), 10%, 80%);
142+
--sk-text-3: hsl(var(--sk-back-hue), 10%, 65%);
143+
--sk-text-4: hsl(var(--sk-back-hue), 10%, 45%);
144144
--sk-text-translucent: hsla(0, 0%, 100%, 0.9);
145145
--sk-scrollbar: rgba(255, 255, 255, 0.3);
146-
--sk-shadow: drop-shadow(1px 2px 16px rgb(0 0 0 / 0.5));
146+
--sk-shadow: drop-shadow(1px 2px 16px rgba(0, 0, 0, 0.5));
147147

148148
--sk-theme-1-variant: hsl(15, 100%, 40%);
149149

150150
--sk-text-warning-hsl: 32, 67%, 56%;
151151

152-
--sk-code-base: hsl(45 7 75);
153-
--sk-code-comment: hsl(0 0 55);
154-
--sk-code-keyword: hsl(204 88 65);
155-
--sk-code-function: hsl(19 67 75);
156-
--sk-code-string: hsl(41 37 68);
157-
--sk-code-number: hsl(120 100 25);
158-
--sk-code-template-string: hsl(2 80 47);
152+
--sk-code-base: hsl(45, 7%, 75%);
153+
--sk-code-comment: hsl(0, 0%, 55%);
154+
--sk-code-keyword: hsl(204, 88%, 65%);
155+
--sk-code-function: hsl(19, 67%, 75%);
156+
--sk-code-string: hsl(41, 37%, 68%);
157+
--sk-code-number: hsl(120, 100%, 25%);
158+
--sk-code-template-string: hsl(2, 80%, 47%);
159159
--sk-code-tags: var(--sk-code-function);
160160
--sk-code-important: var(--sk-code-string);
161161

162-
--sk-code-diff-base: hsla(0 0 100 / 0.5);
163-
--sk-code-diff-inserted: hsl(120 46 48);
164-
--sk-code-diff-removed: hsl(2 64 70);
162+
--sk-code-diff-base: hsla(0, 0%, 100%, 0.5);
163+
--sk-code-diff-inserted: hsl(120, 46%, 48%);
164+
--sk-code-diff-removed: hsl(2, 64%, 70%);
165165

166166
/* overrides */
167167
--shiki-color-background: var(--sk-back-3);

0 commit comments

Comments
 (0)