2021-07-25 23:16:05 +00:00
|
|
|
@import '../../variables.less';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Base theme
|
|
|
|
*/
|
|
|
|
: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;
|
|
|
|
|
2021-07-25 23:16:05 +00:00
|
|
|
--color-surface-0: @color-surface-0;
|
|
|
|
--color-surface-1: @color-surface-1;
|
|
|
|
--color-surface-2: @color-surface-2;
|
|
|
|
--color-surface-3: @color-surface-3;
|
|
|
|
--color-surface-4: @color-surface-4;
|
2021-07-27 06:13: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% )';
|
|
|
|
|
2021-07-27 06:13:22 +00:00
|
|
|
--color-surface-2--hover: @color-surface-2--hover;
|
|
|
|
--color-surface-2--active: @color-surface-2--active;
|
2022-04-24 19:24:09 +00:00
|
|
|
|
|
|
|
--box-shadow-card: @box-shadow-card;
|
|
|
|
--box-shadow-dialog: @box-shadow-dialog;
|
|
|
|
|
|
|
|
--surface-shadow: var( --color-primary__h ) 10% 20%;
|
|
|
|
--shadow-strength: 0.02;
|
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 {
|
2021-07-27 21:18:23 +00:00
|
|
|
--color-primary__l: @color-primary__l-dark;
|
|
|
|
|
2021-07-25 23:16:05 +00:00
|
|
|
--color-surface-0: @color-surface-0-dark;
|
|
|
|
--color-surface-1: @color-surface-1-dark;
|
|
|
|
--color-surface-2: @color-surface-2-dark;
|
|
|
|
--color-surface-3: @color-surface-3-dark;
|
|
|
|
--color-surface-4: @color-surface-4-dark;
|
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% )';
|
|
|
|
|
2021-07-27 06:13:22 +00:00
|
|
|
--color-surface-2--hover: @color-surface-2-dark--hover;
|
|
|
|
--color-surface-2--active: @color-surface-2-dark--active;
|
2022-04-24 19:24:09 +00:00
|
|
|
|
|
|
|
--surface-shadow: var( --color-primary__h ) 50% 3%;
|
|
|
|
--shadow-strength: 0.8;
|
2022-10-23 23:40:19 +00:00
|
|
|
|
2022-10-28 03:01:23 +00:00
|
|
|
// Dark theme usually have an illusion of thicker fonts
|
|
|
|
// So we have to tune it back
|
|
|
|
font-variation-settings: 'GRAD' -90;
|
2021-07-25 23:16:05 +00:00
|
|
|
}
|