mirror of
https://github.com/danth/stylix
synced 2024-11-23 04:33:15 +00:00
71 lines
2.9 KiB
Text
71 lines
2.9 KiB
Text
$is_highcontrast: "false";
|
|
|
|
$base_color: #{{base00-hex}};
|
|
$bg_color: #{{base00-hex}};
|
|
$fg_color: #{{base05-hex}};
|
|
|
|
$selected_fg_color: #{{base00-hex}};
|
|
$selected_bg_color: #{{base03-hex}};
|
|
$selected_borders_color: if($variant== 'light', darken($selected_bg_color, 15%), darken($selected_bg_color, 30%));
|
|
|
|
$borders_color: if($variant == 'light', transparentize($fg_color, .5), transparentize($fg_color, .9));
|
|
$borders_edge: if($variant == 'light', rgba(255,255,255,0.8), lighten($bg_color, 5%));
|
|
|
|
$link_color: #{{base0D-hex}};
|
|
$link_visited_color: #{{base0D-hex}};
|
|
|
|
$warning_color: #{{base0E-hex}};
|
|
$error_color: #{{base08-hex}};
|
|
$success_color: #{{base0B-hex}};
|
|
$destructive_color: $error_color;
|
|
|
|
$osd_fg_color: #{{base05-hex}};
|
|
$osd_bg_color: #{{base01-hex}};
|
|
$osd_insensitive_bg_color: transparentize(mix($osd_fg_color, opacify($osd_bg_color, 1), 10%), 0.5);
|
|
$osd_insensitive_fg_color: $fg_color;
|
|
$osd_borders_color: transparentize(black, 0.3);
|
|
$osd_outer_borders_color: transparentize($osd_fg_color, 0.98);
|
|
|
|
$shadow_color: if($variant == 'light', rgba(0,0,0,0.1), rgba(0,0,0,0.2));
|
|
|
|
// button
|
|
$button_mix_factor: 5%;
|
|
|
|
// cards
|
|
$card_bg_color: #{{base01-hex}};
|
|
$card_outer_borders_color: transparentize($fg_color, 0.98);
|
|
|
|
// notifications
|
|
$bubble_buttons_color: $card_bg_color;
|
|
|
|
// overview background color
|
|
$system_bg_color: $base_color;
|
|
|
|
//insensitive state derived colors
|
|
$insensitive_fg_color: $fg_color;
|
|
$insensitive_bg_color: mix($bg_color, $base_color, 60%);
|
|
$insensitive_borders_color: mix($borders_color, $base_color, 60%);
|
|
|
|
//colors for the backdrop state, derived from the main colors.
|
|
$backdrop_base_color: if($variant =='light', darken($base_color,1%), lighten($base_color,1%));
|
|
$backdrop_bg_color: $bg_color;
|
|
$backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 80%);
|
|
$backdrop_insensitive_color: if($variant =='light', darken($backdrop_bg_color,15%), lighten($backdrop_bg_color,15%));
|
|
$backdrop_borders_color: mix($borders_color, $bg_color, 90%);
|
|
$backdrop_dark_fill: mix($backdrop_borders_color,$backdrop_bg_color, 35%);
|
|
|
|
|
|
// derived checked colors
|
|
$checked_bg_color: if($variant=='light', darken($bg_color, 7%), lighten($bg_color, 7%));
|
|
$card_checked_bg_color: if($variant=='light', darken($card_bg_color, 7%), lighten($card_bg_color, 7%));
|
|
$checked_fg_color: if($variant=='light', darken($fg_color, 7%), lighten($fg_color, 7%));
|
|
|
|
// derived hover colors
|
|
$hover_bg_color: if($variant=='light', darken($bg_color, 3%), lighten($bg_color, 10%));
|
|
$card_hover_bg_color: if($variant=='light', darken($card_bg_color, 3%), lighten($card_bg_color, 10%));
|
|
$hover_fg_color: if($variant=='light', darken($fg_color, 5%), lighten($fg_color, 10%));
|
|
|
|
// derived active colors
|
|
$active_bg_color: if($variant=='light', darken($bg_color, 5%), lighten($bg_color, 12%));
|
|
$card_active_bg_color: if($variant=='light', darken($card_bg_color, 5%), lighten($card_bg_color, 12%));
|
|
$active_fg_color: if($variant=='light', darken($fg_color, 5%), lighten($fg_color, 12%));
|