-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvariables.scss
96 lines (90 loc) · 3.06 KB
/
variables.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@use "sass:color";
/* === Selector, if the theme is "light" or "dark" === */
$theme: "light";
/* === Shared === */
$success-color: #6cc872;
$warning-color: #f49e2f;
$error-color: #bb331b;
$theme-accent: #0065bd; // TUM blue
/* === Light mode (default) === */
/*
This is not in an @if block because sass requires the variables
to be declared outside an @if scope.
*/
/* -- Overwriting of spectre.css variables -- */
$primary-color: $theme-accent;
$secondary-color: #64a0c8;
$body-font-color: #3b4351;
$light-color: #fff;
$dark-color: #303742;
$bg-color: #f7f8f9;
$border-color: #e1e1e1;
$border-color-dark: color.adjust($border-color, $lightness: -10%);
$border-color-light: color.adjust($border-color, $lightness: 8%);
/* -- Custom vars -- */
$header-color: #fff;
$header-shadow-color: rgba(0, 0, 0, 10%);
$autocomplete-box-shadow: 0 0.05rem 0.2rem rgba(48, 55, 66, 30%);
$autocomplete-comment-color: #777;
$autocomplete-filter-bg: #f8f8f8;
$autocomplete-filter-text: $autocomplete-comment-color;
$footer-color: #fafafa;
$footer-setting-color-disabled: $footer-color;
$footer-setting-bg-disabled: #999;
$feedback-overlay-bg: rgba(247, 248, 249, 75%);
$feedback-box-shadow: 0 0.2rem 0.5rem rgba(48, 55, 66, 30%);
$toast-btn-bg: rgba(0, 0, 0, 13%);
$toast-btn-bg-hover: rgba(0, 0, 0, 20%);
$toast-btn-bg-active: rgba(0, 0, 0, 27%);
$card-highlighted-bg: #f7f7f7;
$text-gray: #aaa;
$border-light: #eee;
$card-border: $border-color;
$card-shadow: 3px 3px 4px rgba(106, 106, 106, 3%);
$card-shadow-dark: 3px 3px 4px rgba(106, 106, 106, 5%);
$image-loading-bg: #eee;
$container-loading-bg: #fbfbfb;
$roomfinder-selected-bg: #f2f2f2;
$search-border: #f0f0f0;
$search-border-hover: #dadee4;
$code-bg: #fcf2f2;
/* === Dark mode === */
@if $theme == "dark" {
/* -- Overwriting of spectre.css variables -- */
$primary-color: #59b2ff !global;
$secondary-color: #213d55 !global;
$body-font-color: #d2d7df !global;
$dark-color: #9aa0aa !global;
$light-color: #17181a !global; // Also sets body background
$border-color: #444 !global;
$border-color-light: #353535 !global;
$border-color-dark: #767c84 !global;
$bg-color: #222428 !global;
/* -- Custom vars -- */
$header-color: #1b1c1e;
$header-shadow-color: rgba(0, 0, 0, 40%);
$autocomplete-box-shadow: 0 0.05rem 0.2rem rgba(0, 0, 0, 60%);
$autocomplete-comment-color: #777;
$autocomplete-filter-bg: #232526;
$autocomplete-filter-text: #999;
$footer-color: #1b1c1e;
$footer-setting-color-disabled: #fff;
$footer-setting-bg-disabled: #333;
$feedback-overlay-bg: rgba(0, 0, 0, 70%);
$feedback-box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 50%);
$toast-btn-bg: rgba(255, 255, 255, 7%);
$toast-btn-bg-hover: rgba(255, 255, 255, 20%);
$toast-btn-bg-active: rgba(0, 0, 0, 7%);
$card-highlighted-bg: #0e0e0e;
$text-gray: #aaa;
$border-light: $border-color;
$card-border: $border-color;
$card-shadow: 3px 3px 4px rgba(0, 0, 0, 20%);
$card-shadow-dark: $card-shadow;
$image-loading-bg: #444;
$container-loading-bg: #2a2b2f;
$roomfinder-selected-bg: #282c35;
$search-border: #353535;
$search-border-hover: #444;
$code-bg: #201e1e;
}