2021-07-25 23:16:05 +00:00
|
|
|
/**
|
2024-03-19 19:48:53 +00:00
|
|
|
* Base/light theme
|
2021-07-25 23:16:05 +00:00
|
|
|
*/
|
|
|
|
:root {
|
2021-07-27 19:49:12 +00:00
|
|
|
--color-primary__h: @color-primary__h;
|
|
|
|
--color-primary__s: @color-primary__s;
|
|
|
|
--color-primary__l: @color-primary__l;
|
|
|
|
|
2024-04-19 19:20:45 +00:00
|
|
|
--color-surface-0: ~'hsl( var( --color-primary__h ), 30%, 96% )';
|
|
|
|
--color-surface-1: ~'hsl( var( --color-primary__h ), 40%, 94% )';
|
|
|
|
--color-surface-2: ~'hsl( var( --color-primary__h ), 30%, 92% )';
|
|
|
|
--color-surface-3: ~'hsl( var( --color-primary__h ), 20%, 90% )';
|
|
|
|
--color-surface-4: ~'hsl( var( --color-primary__h ), 10%, 88% )';
|
2021-07-27 06:13:22 +00:00
|
|
|
|
2024-03-19 19:48:53 +00:00
|
|
|
--color-base--emphasized: ~'hsl( var( --color-primary__h ), 85%, 5% )';
|
|
|
|
--color-base: ~'hsl( var( --color-primary__h ), 30%, 20% )';
|
|
|
|
--color-base--subtle: ~'hsl( var( --color-primary__h ), 30%, 35% )';
|
|
|
|
|
|
|
|
--background-color-overlay: ~'hsla( var( --color-primary__h ), 25%, 94%, 0.95 )';
|
|
|
|
--background-color-overlay--lighter: ~'hsla( var( --color-primary__h ), 25%, 94%, 0.6 )';
|
2023-06-08 19:44:22 +00:00
|
|
|
|
2021-07-27 19:49:12 +00:00
|
|
|
--color-primary: ~'hsl( var( --color-primary__h ), var( --color-primary__s ), var( --color-primary__l ) )';
|
|
|
|
--color-primary--hover: ~'hsl( var( --color-primary__h ), var( --color-primary__s ), calc( var( --color-primary__l ) * 1.2 ) )';
|
|
|
|
--color-primary--active: ~'hsl( var( --color-primary__h ), var( --color-primary__s ), calc( var( --color-primary__l ) * 0.8 ) )';
|
|
|
|
--background-color-primary--hover: ~'hsl( var( --color-primary__h ), var( --color-primary__s ), 95% )';
|
|
|
|
--background-color-primary--active: ~'hsl( var( --color-primary__h ), var( --color-primary__s ), 90% )';
|
|
|
|
|
2024-03-19 19:48:53 +00:00
|
|
|
--color-surface-2--hover: ~'hsl( var( --color-primary__h ), 30%, 94% )';
|
|
|
|
--color-surface-2--active: ~'hsl( var( --color-primary__h ), 30%, 90% )';
|
2022-04-24 19:24:09 +00:00
|
|
|
|
2023-06-01 23:00:33 +00:00
|
|
|
--background-color-destructive: rgba( 221, 51, 51, 0.1 );
|
|
|
|
--background-color-success: rgba( 0, 175, 137, 0.1 );
|
|
|
|
--background-color-warning: rgba( 255, 204, 51, 0.1 );
|
|
|
|
|
2023-06-26 19:25:12 +00:00
|
|
|
--background-image-destructive: linear-gradient( var( --background-color-destructive ), var( --background-color-destructive ) );
|
|
|
|
--background-image-success: linear-gradient( var( --background-color-success ), var( --background-color-success ) );
|
|
|
|
--background-image-warning: linear-gradient( var( --background-color-warning ), var( --background-color-warning ) );
|
|
|
|
|
2024-04-19 19:14:18 +00:00
|
|
|
--border-color-base: rgba( 0, 0, 0, 0.08 );
|
|
|
|
--border-color-subtle: rgba( 0, 0, 0, 0.05 );
|
|
|
|
--border-color-interactive: rgba( 0, 0, 0, 0.11 );
|
|
|
|
|
2022-04-24 19:24:09 +00:00
|
|
|
--box-shadow-card: @box-shadow-card;
|
|
|
|
--box-shadow-dialog: @box-shadow-dialog;
|
|
|
|
|
2023-07-03 12:48:41 +00:00
|
|
|
--surface-shadow: var( --color-primary__h ), 10%, 20%;
|
2022-04-24 19:24:09 +00:00
|
|
|
--shadow-strength: 0.02;
|
2023-08-03 21:41:54 +00:00
|
|
|
|
|
|
|
--font-grade: 0;
|
2021-07-25 23:16:05 +00:00
|
|
|
}
|
|
|
|
|
2021-07-27 21:33:59 +00:00
|
|
|
a {
|
|
|
|
--color-link: ~'var( --color-primary )';
|
|
|
|
--color-link--hover: ~'var( --color-primary--hover )';
|
|
|
|
--color-link--active: ~'var( --color-primary--active )';
|
|
|
|
}
|
|
|
|
|
2021-07-25 23:16:05 +00:00
|
|
|
/**
|
|
|
|
* Dark theme
|
|
|
|
*/
|
|
|
|
:root.skin-citizen-dark {
|
2022-12-14 19:06:06 +00:00
|
|
|
--color-primary__l: 60%;
|
2021-07-27 21:18:23 +00:00
|
|
|
|
2023-07-03 12:48:41 +00:00
|
|
|
--color-surface-0: ~'hsl( var( --color-primary__h ), 20%, 10% )';
|
|
|
|
--color-surface-1: ~'hsl( var( --color-primary__h ), 25%, 12% )';
|
|
|
|
--color-surface-2: ~'hsl( var( --color-primary__h ), 25%, 15% )';
|
|
|
|
--color-surface-3: ~'hsl( var( --color-primary__h ), 15%, 20% )';
|
|
|
|
--color-surface-4: ~'hsl( var( --color-primary__h ), 15%, 25% )';
|
2022-12-14 19:06:06 +00:00
|
|
|
|
2023-07-03 12:48:41 +00:00
|
|
|
--color-base--emphasized: ~'hsl( var( --color-primary__h ), 80%, 95% )';
|
|
|
|
--color-base: ~'hsl( var( --color-primary__h ), 25%, 80% )';
|
|
|
|
--color-base--subtle: ~'hsl( var( --color-primary__h ), 25%, 65% )';
|
2021-07-27 06:13:22 +00:00
|
|
|
|
2021-07-27 19:49:12 +00:00
|
|
|
--background-color-primary--hover: ~'hsl( var( --color-primary__h ), var( --color-primary__s ), 15% )';
|
|
|
|
--background-color-primary--active: ~'hsl( var( --color-primary__h ), var( --color-primary__s ), 20% )';
|
|
|
|
|
2023-07-03 12:48:41 +00:00
|
|
|
--background-color-overlay: ~'hsla( var( --color-primary__h ), 20%, 10%, 0.95 )';
|
|
|
|
--background-color-overlay--lighter: ~'hsla( var( --color-primary__h ), 20%, 10%, 0.6 )';
|
2022-12-14 19:06:06 +00:00
|
|
|
|
2023-07-03 12:48:41 +00:00
|
|
|
--color-surface-2--hover: ~'hsl( var( --color-primary__h ), 30%, 19% )';
|
|
|
|
--color-surface-2--active: ~'hsl( var( --color-primary__h ), 30%, 11% )';
|
2022-04-24 19:24:09 +00:00
|
|
|
|
2024-04-19 19:14:18 +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 );
|
|
|
|
|
2023-07-03 12:48:41 +00:00
|
|
|
--surface-shadow: var( --color-primary__h ), 50%, 3%;
|
2022-04-24 19:24:09 +00:00
|
|
|
--shadow-strength: 0.8;
|
2022-10-23 23:40:19 +00:00
|
|
|
|
2023-07-10 20:56:56 +00:00
|
|
|
--filter-invert: invert( 1 ) hue-rotate( 180deg );
|
|
|
|
|
2023-08-03 21:41:54 +00:00
|
|
|
--font-grade: -25;
|
|
|
|
|
2022-11-23 23:37:00 +00:00
|
|
|
// FIXME: Browsers seem to treat GRAD differently, disabling for now
|
2022-10-28 03:01:23 +00:00
|
|
|
// Dark theme usually have an illusion of thicker fonts
|
|
|
|
// So we have to tune it back
|
2022-11-23 23:37:00 +00:00
|
|
|
// font-variation-settings: 'GRAD' -90;
|
2021-07-25 23:16:05 +00:00
|
|
|
}
|