| 1 |
@{! variants = default, night } |
| 2 |
/* |
| 3 |
* Alloy GTK 3 palette patch — layered over adw-gtk3 |
| 4 |
* |
| 5 |
* Same @define-color set as gtk-4.0/gtk.css. adw-gtk3 exposes the |
| 6 |
* libadwaita-named tokens even in GTK 3, so this file mirrors the |
| 7 |
* GTK 4 patch verbatim. Keep them in sync — do not diverge. |
| 8 |
*/ |
| 9 |
|
| 10 |
@define-color alloy_surface_sunken @{surface.sunken}; |
| 11 |
@define-color alloy_surface @{surface.page}; |
| 12 |
@define-color alloy_surface_raised @{surface.raised}; |
| 13 |
@define-color alloy_surface_overlay @{surface.overlay}; |
| 14 |
@define-color alloy_border_subtle @{border.subtle}; |
| 15 |
@define-color alloy_border @{line.border}; |
| 16 |
@define-color alloy_border_strong @{border.strong}; |
| 17 |
@define-color alloy_text_muted @{content.muted}; |
| 18 |
@define-color alloy_text_secondary @{content.secondary}; |
| 19 |
@define-color alloy_text_primary @{content.primary}; |
| 20 |
@define-color alloy_accent_error @{status.danger}; |
| 21 |
@define-color alloy_accent_warn @{status.warning}; |
| 22 |
@define-color alloy_accent_ok @{status.success}; |
| 23 |
@define-color alloy_action_primary @{action.primary}; |
| 24 |
/* The shade tone, per the reasoning in gtk-4.0/gtk.css: a shadow stays dark in |
| 25 |
* both polarities, and `ansi.0` is the token that means the darkest tone the |
| 26 |
* theme has rather than a fixed one of its intents. */ |
| 27 |
@define-color alloy_shade @{ansi.0}; |
| 28 |
|
| 29 |
@define-color window_bg_color @alloy_surface; |
| 30 |
@define-color window_fg_color @alloy_text_primary; |
| 31 |
|
| 32 |
@define-color view_bg_color @alloy_surface_raised; |
| 33 |
@define-color view_fg_color @alloy_text_primary; |
| 34 |
|
| 35 |
@define-color headerbar_bg_color @alloy_surface_raised; |
| 36 |
@define-color headerbar_fg_color @alloy_text_primary; |
| 37 |
@define-color headerbar_border_color @alloy_border_subtle; |
| 38 |
@define-color headerbar_backdrop_color @alloy_surface; |
| 39 |
@define-color headerbar_shade_color alpha(@alloy_shade, 0.06); |
| 40 |
|
| 41 |
@define-color sidebar_bg_color @alloy_surface_sunken; |
| 42 |
@define-color sidebar_fg_color @alloy_text_primary; |
| 43 |
@define-color sidebar_backdrop_color @alloy_surface; |
| 44 |
@define-color sidebar_shade_color alpha(@alloy_shade, 0.06); |
| 45 |
|
| 46 |
@define-color card_bg_color @alloy_surface_raised; |
| 47 |
@define-color card_fg_color @alloy_text_primary; |
| 48 |
@define-color card_shade_color alpha(@alloy_shade, 0.06); |
| 49 |
|
| 50 |
@define-color popover_bg_color @alloy_surface_overlay; |
| 51 |
@define-color popover_fg_color @alloy_text_primary; |
| 52 |
|
| 53 |
@define-color accent_bg_color @alloy_action_primary; |
| 54 |
@define-color accent_fg_color @{readable_on(action.primary)}; |
| 55 |
@define-color accent_color @alloy_action_primary; |
| 56 |
|
| 57 |
@define-color destructive_bg_color @alloy_accent_error; |
| 58 |
@define-color destructive_fg_color @{readable_on(status.danger)}; |
| 59 |
@define-color destructive_color @alloy_accent_error; |
| 60 |
|
| 61 |
@define-color success_bg_color @alloy_accent_ok; |
| 62 |
@define-color success_fg_color @{readable_on(status.success)}; |
| 63 |
@define-color success_color @alloy_accent_ok; |
| 64 |
|
| 65 |
@define-color warning_bg_color @alloy_accent_warn; |
| 66 |
@define-color warning_fg_color @{readable_on(status.warning)}; |
| 67 |
@define-color warning_color @alloy_accent_warn; |
| 68 |
|
| 69 |
@define-color error_bg_color @alloy_accent_error; |
| 70 |
@define-color error_fg_color @{readable_on(status.danger)}; |
| 71 |
@define-color error_color @alloy_accent_error; |
| 72 |
|
| 73 |
@define-color borders alpha(@alloy_text_primary, 0.15); |
| 74 |
|