Skip to content

Commit 3558ad1

Browse files
committed
feat: optimize background color
1 parent 303a8ed commit 3558ad1

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/variable.scss

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ body {
201201
calc(8% + var(--theme-accent-active-l) * 0.1 * var(--color-opacity))
202202
);
203203

204-
--background-primary-hsl: var(--base-accent-h), 5%, 11%;
204+
--background-primary-hsl: var(--base-accent-h), 6%, 11%;
205205
--background-primary-alt-hsl: var(--base-accent-h), 10%, 13%;
206-
--background-secondary-hsl: calc(var(--base-accent-h) - 18), 6%, 12%;
206+
--background-secondary-hsl: calc(var(--base-accent-h) - 8), 6%, 12%;
207207
--background-modifier-hover: hsl(
208208
var(--base-accent-h),
209209
var(--theme-accent-active-s),
@@ -220,7 +220,7 @@ body {
220220

221221
--background-primary-hsl: var(--base-accent-h), 4%, 10%;
222222
--background-primary-alt-hsl: var(--base-accent-h), 8%, 12%;
223-
--background-secondary-hsl: calc(var(--base-accent-h) - 18), 4%, 12%;
223+
--background-secondary-hsl: calc(var(--base-accent-h) - 8), 4%, 12%;
224224
--frame-bg: hsl(
225225
var(--base-accent-h),
226226
calc(var(--theme-accent-active-s) * 0.1),
@@ -234,6 +234,17 @@ body {
234234
}
235235

236236
&.color-use-custom {
237+
// --setting-bg-delta: 4%;
238+
// --background-primary-hsl: var(--base-accent-h),
239+
// calc(5% + var(--setting-bg-delta) / 2),
240+
// calc(11% + var(--setting-bg-delta));
241+
// --background-primary-alt-hsl: var(--base-accent-h),
242+
// calc(10% + var(--setting-bg-delta) / 2),
243+
// calc(13% + var(--setting-bg-delta));
244+
// --background-secondary-hsl: calc(var(--base-accent-h) - 18),
245+
// calc(6% + var(--setting-bg-delta) / 2),
246+
// calc(12% + var(--setting-bg-delta));
247+
237248
--base-accent-h: var(--setting-accent-h-dark, 207);
238249
--theme-accent-active-s: 24%;
239250
--theme-accent-active-l: 52%;

0 commit comments

Comments
 (0)