97
|
1 // When color definition differs for dark and light variant
|
|
2 // it gets @if ed depending on $variant
|
|
3
|
|
4 $base_color: if($variant == 'light', #ffffff, lighten(desaturate(#241f31, 100%), 2%));
|
|
5 $text_color: if($variant == 'light', black, white);
|
|
6 $bg_color: if($variant == 'light', #f6f5f4, darken(desaturate(#3d3846, 100%), 4%));
|
|
7 $fg_color: if($variant == 'light', #2e3436, #eeeeec);
|
|
8
|
|
9 $selected_fg_color: #ffffff;
|
|
10 $selected_bg_color: if($variant == 'light', #3584e4, darken(#3584e4, 20%));
|
|
11 $selected_borders_color: if($variant== 'light', darken($selected_bg_color, 15%), darken($selected_bg_color, 30%));
|
|
12 $borders_color: if($variant == 'light', darken($bg_color, 18%), darken($bg_color, 10%));
|
|
13 $alt_borders_color: if($variant == 'light', darken($bg_color, 24%), darken($bg_color, 18%));
|
|
14 $borders_edge: if($variant == 'light', transparentize(white, 0.2), transparentize($fg_color, 0.93));
|
|
15 $link_color: if($variant == 'light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 20%));
|
|
16 $link_visited_color: if($variant == 'light', darken($selected_bg_color, 20%), lighten($selected_bg_color, 10%));
|
|
17 $top_hilight: $borders_edge;
|
|
18 $dark_fill: mix($borders_color, $bg_color, 50%);
|
|
19 $headerbar_color: if($variant == 'light', lighten($bg_color, 5%), darken($bg_color, 3%));
|
|
20 $menu_color: if($variant == 'light', $base_color, mix($bg_color, $base_color, 20%));
|
|
21 $popover_bg_color: $bg_color;
|
|
22 $popover_hover_color: lighten($bg_color, 5%);
|
|
23
|
|
24 $scrollbar_bg_color: if($variant == 'light', mix($bg_color, $fg_color, 80%), mix($base_color, $bg_color, 50%));
|
|
25 $scrollbar_slider_color: mix($fg_color, $bg_color, 60%);
|
|
26 $scrollbar_slider_hover_color: mix($fg_color, $bg_color, 80%);
|
|
27 $scrollbar_slider_active_color: if($variant=='light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 10%));
|
|
28
|
|
29 $warning_color: #f57900;
|
|
30 $error_color: #cc0000;
|
|
31 $success_color: if($variant == 'light', #33d17a, darken(#33d17a, 10%));
|
|
32 $destructive_color: if($variant == 'light', #e01b24, darken(#e01b24, 10%));
|
|
33
|
|
34 $osd_fg_color: #eeeeec;
|
|
35 $osd_text_color: white;
|
|
36 $osd_bg_color: if($variant == 'light', transparentize(darken(desaturate(#3d3846, 100%), 4%),0.1), transparentize(darken(desaturate(#3d3846, 100%), 10%),0.1));
|
|
37 $osd_insensitive_bg_color: transparentize(mix($osd_fg_color, opacify($osd_bg_color, 1), 10%), 0.5);
|
|
38 $osd_insensitive_fg_color: mix($osd_fg_color, opacify($osd_bg_color, 1), 50%);
|
|
39 $osd_borders_color: transparentize(black, 0.3);
|
|
40
|
|
41 $sidebar_bg_color: mix($bg_color, $base_color, 50%);
|
|
42 $base_hover_color: transparentize($fg_color, 0.95);
|
|
43
|
|
44 $tooltip_borders_color: transparentize(white, 0.9);
|
|
45 $shadow_color: transparentize(black, 0.9);
|
|
46
|
|
47 $drop_target_color: #4e9a06;
|
|
48
|
|
49 //insensitive state derived colors
|
|
50 $insensitive_fg_color: mix($fg_color, $bg_color, 50%);
|
|
51 $insensitive_bg_color: mix($bg_color, $base_color, 60%);
|
|
52 $insensitive_borders_color: $borders_color;
|
|
53
|
|
54 //colors for the backdrop state, derived from the main colors.
|
|
55 $backdrop_base_color: if($variant == 'light', darken($base_color, 1%), lighten($base_color, 1%));
|
|
56 $backdrop_text_color: mix($text_color, $backdrop_base_color, 80%);
|
|
57 $backdrop_bg_color: $bg_color;
|
|
58 $backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 50%);
|
|
59 $backdrop_insensitive_color: if($variant == 'light', darken($backdrop_bg_color, 15%), lighten($backdrop_bg_color, 15%));
|
|
60 $backdrop_selected_fg_color: if($variant == 'light', $backdrop_base_color, $backdrop_text_color);
|
|
61 $backdrop_borders_color: mix($borders_color, $bg_color, 80%);
|
|
62 $backdrop_dark_fill: mix($backdrop_borders_color, $backdrop_bg_color, 35%);
|
|
63 $backdrop_sidebar_bg_color: mix($backdrop_bg_color, $backdrop_base_color, 50%);
|
|
64
|
|
65 $backdrop_scrollbar_bg_color: darken($backdrop_bg_color, 3%);
|
|
66 $backdrop_scrollbar_slider_color: mix($backdrop_fg_color, $backdrop_bg_color, 40%);
|
|
67
|
|
68 $backdrop_menu_color: if($variant == 'light', $backdrop_base_color, mix($backdrop_bg_color, $backdrop_base_color, 20%));
|
|
69
|
|
70 //special cased widget colors
|
|
71 $suggested_bg_color: $selected_bg_color;
|
|
72 $suggested_border_color: $selected_borders_color;
|
|
73 $progress_bg_color: $selected_bg_color;
|
|
74 $progress_border_color: $selected_borders_color;
|
|
75 $checkradio_bg_color: if($variant == 'light', $selected_bg_color, lighten($selected_bg_color,10%));
|
|
76 $checkradio_fg_color: $selected_fg_color;
|
|
77 $checkradio_borders_color: if($variant == 'light', darken($checkradio_bg_color,20%), darken($checkradio_bg_color,40%));
|