2024-04-25 20:19:53 +00:00
|
|
|
/**
|
|
|
|
* Dark theme mixin
|
|
|
|
* Dark theme needs a mixin because it is being used by the auto theme as well
|
|
|
|
*/
|
2024-05-07 22:58:15 +00:00
|
|
|
.theme-dark() {
|
2024-04-25 20:19:53 +00:00
|
|
|
--color-primary__l: 60%;
|
|
|
|
|
2024-05-28 17:58:43 +00:00
|
|
|
--color-surface-0__s: 20%;
|
|
|
|
--color-surface-0__l: 8%;
|
|
|
|
|
|
|
|
--color-surface-1__s: 25%;
|
|
|
|
--color-surface-1__l: 10%;
|
|
|
|
|
|
|
|
--color-surface-2__s: 25%;
|
|
|
|
--color-surface-2__l: 13%;
|
|
|
|
|
|
|
|
--color-surface-3__s: 15%;
|
|
|
|
--color-surface-3__l: 18%;
|
|
|
|
|
|
|
|
--color-surface-4__s: 15%;
|
|
|
|
--color-surface-4__l: 23%;
|
|
|
|
|
|
|
|
--delta-hover-state: 4%;
|
2024-04-25 20:19:53 +00:00
|
|
|
|
2024-06-30 05:04:30 +00:00
|
|
|
--color-emphasized: ~'hsl( var( --color-primary__h ), 80%, 95% )';
|
2024-04-25 20:19:53 +00:00
|
|
|
--color-base: ~'hsl( var( --color-primary__h ), 25%, 80% )';
|
2024-06-30 05:04:30 +00:00
|
|
|
--color-subtle: ~'hsl( var( --color-primary__h ), 25%, 65% )';
|
2024-04-25 20:19:53 +00:00
|
|
|
|
2024-07-01 00:41:31 +00:00
|
|
|
--background-color-progressive-subtle: ~'hsl( var( --color-primary__h ), var( --color-primary__s ), 15% )';
|
|
|
|
--background-color-button-quiet--hover: rgba( 255, 255, 255, 0.04 );
|
|
|
|
--background-color-button-quiet--active: rgba( 255, 255, 255, 0.08 );
|
|
|
|
--background-color-icon: ~'rgba( 255, 255, 255, var( --opacity-icon-base ) )';
|
|
|
|
--background-color-icon--hover: ~'rgba( 255, 255, 255, var( --opacity-icon-base--hover ) )';
|
|
|
|
--background-color-icon--active: ~'rgba( 255, 255, 255, var( --opacity-icon-base--active ) )';
|
2024-04-25 20:19:53 +00:00
|
|
|
|
2024-05-07 22:57:25 +00:00
|
|
|
--border-color-base: rgba( 255, 255, 255, 0.05 );
|
|
|
|
--border-color-subtle: rgba( 255, 255, 255, 0.02 );
|
|
|
|
--border-color-interactive: rgba( 255, 255, 255, 0.08 );
|
2024-04-25 20:19:53 +00:00
|
|
|
|
|
|
|
--surface-shadow: var( --color-primary__h ), 50%, 3%;
|
|
|
|
--shadow-strength: 0.8;
|
|
|
|
|
|
|
|
--filter-invert: invert( 1 ) hue-rotate( 180deg );
|
|
|
|
|
|
|
|
--font-grade: -25;
|
|
|
|
|
|
|
|
// FIXME: Browsers seem to treat GRAD differently, disabling for now
|
|
|
|
// Dark theme usually have an illusion of thicker fonts
|
|
|
|
// So we have to tune it back
|
|
|
|
// font-variation-settings: 'GRAD' -90;
|
|
|
|
|
|
|
|
color-scheme: dark;
|
|
|
|
}
|
|
|
|
|
2024-04-25 20:24:09 +00:00
|
|
|
.feature-pure-black() {
|
2024-05-28 17:58:43 +00:00
|
|
|
--color-surface-0__l: 0%;
|
|
|
|
|
|
|
|
--color-surface-1__s: 20%;
|
|
|
|
|
|
|
|
--color-surface-1__l: 4%;
|
|
|
|
|
|
|
|
--color-surface-2__l: 6%;
|
|
|
|
|
|
|
|
--color-surface-3__l: 9%;
|
|
|
|
|
|
|
|
--color-surface-4__l: 14%;
|
|
|
|
|
|
|
|
--delta-hover-state: 6%;
|
2024-05-07 22:57:25 +00:00
|
|
|
|
2024-04-25 20:24:09 +00:00
|
|
|
--shadow-strength: 0.04;
|
|
|
|
}
|
|
|
|
|
2024-04-25 20:19:53 +00:00
|
|
|
.skin-theme-clientpref-night {
|
|
|
|
:root& {
|
|
|
|
.theme-dark();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.skin-theme-clientpref-os {
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
|
|
|
:root& {
|
|
|
|
.theme-dark();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 19:45:24 +00:00
|
|
|
.citizen-feature-pure-black-clientpref-1 {
|
|
|
|
:root.skin-theme-clientpref-night& {
|
2024-04-25 19:59:43 +00:00
|
|
|
.feature-pure-black();
|
2024-04-25 19:45:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
|
|
|
:root.skin-theme-clientpref-os& {
|
2024-04-25 19:59:43 +00:00
|
|
|
.feature-pure-black();
|
2024-04-25 19:45:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-04-25 21:03:23 +00:00
|
|
|
|
2024-04-25 21:51:46 +00:00
|
|
|
.citizen-feature-custom-font-size-clientpref-small {
|
2024-04-25 21:03:23 +00:00
|
|
|
.citizen-body {
|
|
|
|
font-size: var( --font-size-small );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 21:51:46 +00:00
|
|
|
.citizen-feature-custom-font-size-clientpref-large {
|
2024-04-25 21:03:23 +00:00
|
|
|
.citizen-body {
|
|
|
|
font-size: var( --font-size-large );
|
|
|
|
}
|
|
|
|
}
|
2024-04-25 21:41:22 +00:00
|
|
|
|
2024-04-25 21:51:46 +00:00
|
|
|
.citizen-feature-custom-width-clientpref-standard {
|
2024-04-25 21:41:22 +00:00
|
|
|
:root& {
|
|
|
|
--width-layout: 1080px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 21:51:46 +00:00
|
|
|
.citizen-feature-custom-width-clientpref-wide {
|
2024-04-25 21:41:22 +00:00
|
|
|
:root& {
|
|
|
|
--width-layout: 1600px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-25 21:51:46 +00:00
|
|
|
.citizen-feature-custom-width-clientpref-full {
|
2024-04-25 21:41:22 +00:00
|
|
|
:root& {
|
|
|
|
--width-layout: 100vw;
|
|
|
|
}
|
|
|
|
}
|