api-client/assets/css/themes.scss

97 lines
1.9 KiB
SCSS
Raw Normal View History

/**
Main Themes:
- dark (default)
- light
2019-09-30 20:21:30 +00:00
- black
2019-10-05 09:27:24 +00:00
- auto
*/
// Dark is the default theme variant.
@mixin darkTheme {
// Dark Background color
--bg-dark-color: rgb(41, 42, 45);
// Background color
--bg-color: rgb(37, 38, 40);
2019-09-04 04:37:08 +00:00
// Auto-complete color
--atc-color: rgb(49, 49, 55);
// Text color
--fg-color: rgb(247, 248, 248);
// Light Text color
--fg-light-color: rgb(150, 155, 160);
2019-09-17 08:13:12 +00:00
// Border color
--brd-color: rgb(48, 47, 55);
// Error color
--err-color: rgb(41, 42, 45);
// Acent color
2019-09-04 02:48:24 +00:00
--ac-color: #50fa7b;
--ac-sel-color: rgb(80, 250, 123, 0.8);
// Active text color
--act-color: rgb(37, 38, 40);
}
:root {
@include darkTheme;
}
@media(prefers-color-scheme: dark) {
:root.auto {
@include darkTheme;
}
}
@mixin lightTheme {
2019-09-30 20:21:30 +00:00
// Dark Background color
2019-10-06 02:16:48 +00:00
--bg-dark-color: #f6f6f6;
2019-09-30 20:21:30 +00:00
// Background color
2019-10-05 09:27:24 +00:00
--bg-color: #ffffff;
2019-09-30 20:21:30 +00:00
// Auto-complete color
2019-10-05 09:27:24 +00:00
--atc-color: #ebebeb;
2019-09-30 20:21:30 +00:00
// Text color
2019-10-05 09:27:24 +00:00
--fg-color: #525252;
2019-09-30 20:21:30 +00:00
// Light Text color
--fg-light-color: rgb(150, 155, 160);
// Border color
2019-10-06 02:16:48 +00:00
--brd-color: #eeeeed;
2019-09-30 20:21:30 +00:00
// Error color
2019-10-06 02:16:48 +00:00
--err-color: #f6f6f6;
2019-09-30 20:21:30 +00:00
// Acent color
2019-10-05 09:27:24 +00:00
--ac-color: #57b5f9;
--ac-sel-color: #57b5f9;
2019-09-30 20:21:30 +00:00
// Active text color
2019-10-05 09:27:24 +00:00
--act-color: #ffffff;
2019-09-30 20:21:30 +00:00
}
:root.light {
@include lightTheme;
}
@media(prefers-color-scheme: light) {
:root.auto {
@include lightTheme;
}
}
@mixin blackTheme {
// Dark Background color
2019-10-06 02:16:48 +00:00
--bg-dark-color: rgb(8, 8, 8);
// Background color
2019-10-05 09:27:24 +00:00
--bg-color: #000000;
2019-09-04 04:37:08 +00:00
// Auto-complete color
2019-10-06 02:16:48 +00:00
--atc-color: rgb(18, 18, 18);
// Text color
2019-10-06 02:16:48 +00:00
--fg-color: rgb(250, 250, 250);
// Light Text color
2019-10-06 02:16:48 +00:00
--fg-light-color: rgb(100, 100, 100);
2019-09-17 08:13:12 +00:00
// Border color
2019-10-06 02:16:48 +00:00
--brd-color: rgb(16, 16, 16);
// Error color
2019-10-06 02:16:48 +00:00
--err-color: rgb(8, 8, 8);
// Acent color
2019-10-05 09:27:24 +00:00
--ac-color: #50fa7b;
--ac-sel-color: rgb(80, 250, 123, 0.8);
// Active text color
2019-10-06 02:16:48 +00:00
--act-color: #000000;
2019-10-05 09:27:24 +00:00
}
:root.black {
@include blackTheme;
}