A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 _colors.scss

View raw Download
text/plain • 1.47 kiB
ASCII text
        
            
1
// When color definition differs for dark and light variant,
2
// it gets @if ed depending on $variant
3
4
@function gtkalpha($c,$a) {
5
@return unquote("alpha(#{$c},#{$a})");
6
}
7
8
9
$base_color: if($variant =='light', #ffffff, #444444);
10
$bg_color: if($variant =='light', #eeeeee, #333333);
11
$fg_color: if($variant =='light', #333333, #eeeeee);
12
13
$light_color: if($variant =='light', darken($base_color,2%), lighten($base_color,4%));
14
$dark_color: if($variant =='light', darken($bg_color,4%), darken($bg_color,2%));
15
16
$selected_fg_color: #ffffff;
17
$selected_bg_color: if($variant == 'light', #3498db, #2980b9);
18
19
$fill_color: gtkalpha(currentColor, 0.2);
20
$borders_color: if($variant =='light', transparentize(black, 0.9), transparentize(black, 0.8));
21
22
$link_color: if($variant == 'light', #3498db, #2980b9);
23
$link_visited_color: if($variant == 'light', #9b59b6, #8e44ad);
24
25
$warning_color: if($variant =='light', #e67e22, #d35400);
26
$error_color: if($variant =='light', #e74c3c, #c0392b);
27
$success_color: if($variant =='light', #2ecc71, #27ae60);
28
$destructive_color: if($variant =='light', #e74c3c, #c0392b);
29
30
//insensitive state derived colors
31
$insensitive_fg_color: transparentize($fg_color, 0.6);
32
$insensitive_base_color: mix($bg_color, $base_color, 50%);
33
34
//colors for the backdrop state, derived from the main colors.
35
$backdrop_fg_color: transparentize($fg_color, 0.2);
36
$backdrop_selected_fg_color: transparentize($selected_fg_color, 0.2);
37
$backdrop_insensitive_fg_color: transparentize($fg_color, 1 - 0.4 * 0.8);
38