#!/usr/bin/env bash

# colors_window_backgroundalternate="rgb(49,54,59)"
# colors_window_backgroundnormal="rgb(42,46,50)"
# colors_window_decorationfocus="rgb(61,174,233)"
# colors_window_decorationhover="rgb(61,174,233)"
# colors_window_foregroundactive="rgb(61,174,233)"
# colors_window_foregroundinactive="rgb(161,169,177)"
# colors_window_foregroundlink="rgb(29,153,243)"
# colors_window_foregroundnegative="rgb(218,68,83)"
# colors_window_foregroundneutral="rgb(246,116,0)"
# colors_window_foregroundnormal="rgb(252,252,252)"
# colors_window_foregroundpositive="rgb(39,174,96)"
# colors_window_foregroundvisited="rgb(155,89,182)"

echo "
:root,
body {
  --primary: $colors_window_backgroundalternate;
  --on-primary:$colors_window_decorationfocus;
  --primary-container:$colors_window_decorationhover;
  --on-primary-container:$colors_window_foregroundnormal;
  --secondary:#f7f7f7;
  --on-secondary:#3c3a3a;
  --secondary-container:rgb(189 189 189 / 70%);
  --tertiary:#3a6df0;
  --on-tertiary:#fff;
  --tertiary-container:#ebddff;
  --on-tertiary-container:#201634;
  --error:#ba1a1a;
  --on-error:#ffffff;
  --error-container:#ffdad6;
  --on-error-container:#410002;
  --background: $colors_window_backgroundnormal;
  --on-background:#3c3a3a;
  --surface:$colors_window_backgroundnormal;
  --on-surface:$colors_window_foregroundnormal;
  --surface-variant:#efefef;
  --on-surface-variant:#41474d;
  --outline:#72787e;
  --outline-variant:#c1c7ce;
  --shadow:#000000;
  --scrim:#000000;
  --inverse-surface:#2e3133;
  --inverse-on-surface:#f0f0f3;
  --inverse-primary:#8dcdff;
  --surface-dim:#d9dadd;
  --surface-bright:#f9f9fc;
  --surface-container-lowest:#ffffff;
  --surface-container-low: rgba(0,0,0,0.03);
  --surface-container:rgba(0,0,0,0.06);
  --surface-container-high:rgba(0,0,0,0.09);
  --surface-container-highest:rgba(0,0,0,0.12);
  --overlay: rgb(0 0 0 /0.5);
  --active: rgb(0 0 0 / 0.1);
  --elevate1: 0 0.1rem 0.2rem 0 rgb(0 0 0 / 16%);
  --elevate2: 0 0.25rem 0.5rem 0 rgb(0 0 0 / 0.30);
  --elevate3: 0 0.375rem 0.75rem 0 rgb(0 0 0 / 0.45);
  --button-elevate1: 0 0.090rem 0.090rem 0 rgb(0 0 0 / 40%);
  --onhover-elevate1: 0 0.25rem 0.5rem 0 rgb(0 0 0 / 18%);
  --body: transparent;
}
"
# Show the defined variables for verification
declare -p | grep '^declare --' | grep -E 'color_|button_|window_|tooltip_|foreground_|background_|decoration_|highlight_|wm_'

# Example:
# colors_button_backgroundalternate="rgb(210,210,210)"
# colors_button_backgroundnormal="rgb(235,235,235)"
# colors_button_decorationfocus="rgb(61,174,233)"
# colors_button_decorationhover="rgb(142,203,233)"
# colors_button_foregroundactive="rgb(255,128,224)"
# colors_button_foregroundinactive="rgb(136,135,134)"
# colors_button_foregroundlink="rgb(53,132,228)"
# colors_button_foregroundnegative="rgb(191,3,3)"
# colors_button_foregroundneutral="rgb(176,128,0)"
# colors_button_foregroundnormal="rgb(49,54,59)"
# colors_button_foregroundpositive="rgb(0,110,40)"
# colors_button_foregroundvisited="rgb(69,40,134)"
# colors_tooltip_backgroundalternate="rgb(0,0,0)"
# colors_tooltip_backgroundnormal="rgb(0,0,0)"
# colors_tooltip_decorationfocus="rgb(67,192,255)"
# colors_tooltip_decorationhover="rgb(155,223,255)"
# colors_tooltip_foregroundactive="rgb(255,128,224)"
# colors_tooltip_foregroundinactive="rgb(255,255,127)"
# colors_tooltip_foregroundlink="rgb(53,132,228)"
# colors_tooltip_foregroundnegative="rgb(255,106,108)"
# colors_tooltip_foregroundneutral="rgb(255,183,0)"
# colors_tooltip_foregroundnormal="rgb(255,255,255)"
# colors_tooltip_foregroundpositive="rgb(0,255,89)"
# colors_tooltip_foregroundvisited="rgb(165,157,255)"
# colors_window_backgroundalternate="rgb(224,224,225)"
# colors_window_backgroundnormal="rgb(255,255,255)"
# colors_window_decorationfocus="rgb(61,174,233)"
# colors_window_decorationhover="rgb(142,203,233)"
# colors_window_foregroundactive="rgb(255,128,224)"
# colors_window_foregroundinactive="rgb(136,135,134)"
# colors_window_foregroundlink="rgb(53,132,228)"
# colors_window_foregroundnegative="rgb(191,3,3)"
# colors_window_foregroundneutral="rgb(176,128,0)"
# colors_window_foregroundnormal="rgb(31,31,31)"
# colors_window_foregroundpositive="rgb(0,110,40)"
# colors_window_foregroundvisited="rgb(69,40,134)"
# kfiledialog_settings_decoration_position="rgb(2)"
# var_name="wm_inactiveforeground"
# wm_activebackground="rgb(235,235,235)"
# wm_activeblend="rgb(255,0,0)"
# wm_activeforeground="rgb(0,0,0)"
# wm_inactivebackground="rgb(250,250,250)"
# wm_inactiveblend="rgb(235,235,235)"
# wm_inactiveforeground="rgb(104,108,111)" 
