Merge common dark mode customizations into main stylesheet
This commit is contained in:
parent
f4cfb094c4
commit
aad6b06e12
@ -3,8 +3,9 @@
|
||||
@use "../settings/config" as cfg;
|
||||
@use "sass:math";
|
||||
|
||||
$thumb-color: -color-bg-default !default;
|
||||
$thumb-color-border: -color-accent-emphasis !default;
|
||||
// use borderless slider for dark mode by default
|
||||
$thumb-color: if(cfg.$darkMode, -color-fg-default, -color-bg-default) !default;
|
||||
$thumb-color-border: if(cfg.$darkMode, -color-fg-default, -color-accent-emphasis) !default;
|
||||
$thumb-size: 8px !default;
|
||||
$thumb-border-width: 2px !default;
|
||||
|
||||
|
@ -10,7 +10,8 @@ $padding-y: 10px !default;
|
||||
$margin-arrow: 10px !default;
|
||||
$margin-content: 20px !default;
|
||||
|
||||
$elevation-color: -color-border-subtle !default;
|
||||
// for elevation darker than bg color should be used for both light and dark modes
|
||||
$elevation-color: if(cfg.$darkMode, -color-bg-inset, -color-border-default) !default;
|
||||
$elevation-interactive: map-get(cfg.$elevation, 2) !default;
|
||||
|
||||
.titled-pane {
|
||||
|
@ -130,14 +130,4 @@ $nord16: #B48EAD; // hsl(311, 20.2, 63.1)
|
||||
);
|
||||
|
||||
@use "general";
|
||||
|
||||
@forward "components/slider" as slider-* with (
|
||||
$thumb-color: -color-fg-default,
|
||||
$thumb-color-border: -color-fg-default
|
||||
);
|
||||
|
||||
@forward "components/titled-pane" as titled-pane-* with (
|
||||
$elevation-color: -color-bg-inset
|
||||
);
|
||||
|
||||
@use "components";
|
||||
|
@ -112,14 +112,4 @@
|
||||
);
|
||||
|
||||
@use "general";
|
||||
|
||||
@forward "components/slider" as slider-* with (
|
||||
$thumb-color: -color-fg-emphasis,
|
||||
$thumb-color-border: -color-fg-emphasis
|
||||
);
|
||||
|
||||
@forward "components/titled-pane" as titled-pane-* with (
|
||||
$elevation-color: -color-bg-inset
|
||||
);
|
||||
|
||||
@use "components";
|
||||
|
Loading…
Reference in New Issue
Block a user