summaryrefslogtreecommitdiffstats
path: root/core/css/variables.scss
blob: 748ebd68725cdf7b662659f1ddef61f06f1859c8 (plain)
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
// SCSS darken/lighten function override 
@function nc-darken($color, $value) {
	@return darken($color, $value);
}

@function nc-lighten($color, $value) {
	@return lighten($color, $value);
}

// SCSS variables
// DEPRECATED, please use CSS4 vars
$color-main-text: #000;
$color-main-background: #fff;

// used for different active/disabled states
$color-background-dark: nc-darken($color-main-background, 7%);
$color-background-darker: nc-darken($color-main-background, 14%);

$color-primary: #0082c9;
$color-primary-text: #ffffff;
$color-primary-text-dark: nc-darken($color-primary-text, 7%);
$color-primary-element: $color-primary;
$color-primary-element-light: nc-lighten($color-primary-element, 15%);

$color-error: #e9322d;
$color-warning: #eca700;
$color-success: #46ba61;

// rgb(118, 118, 118) / #767676
// min. color contrast for normal text on white background according to WCAG AA
// (Works as well: color: #000; opacity: 0.57;)
$color-text-maxcontrast: nc-lighten($color-main-text, 46.2%);
$color-text-light: nc-lighten($color-main-text, 15%);
$color-text-lighter: nc-lighten($color-main-text, 30%);

$image-logo: url('../img/logo.svg?v=1');
$image-login-background: url('../img/background.png?v=2');

$color-loading-light: #777;
$color-loading-dark: #ccc;

$color-box-shadow: rgba(nc-darken($color-main-background, 70%), 0.75);

// light border like file table or app-content list
$color-border: nc-darken($color-main-background, 7%);
// darker border like inputs or very visible elements
$color-border-dark: nc-darken($color-main-background, 14%);
$border-radius: 3px;