diff --git a/pywal/colors.py b/pywal/colors.py index 0fed29e..2127847 100644 --- a/pywal/colors.py +++ b/pywal/colors.py @@ -93,10 +93,16 @@ def create_palette(img, colors, light): colors["colors"]["color8"] = util.darken_color(raw_colors[0], 0.5) colors["colors"]["color15"] = raw_colors[15] + colors["special"]["light"] = colors["special"]["background"] + colors["special"]["dark"] = colors["special"]["foreground"] + else: for i, color in enumerate(raw_colors): colors["colors"]["color%s" % i] = color + colors["special"]["light"] = colors["special"]["foreground"] + colors["special"]["dark"] = colors["special"]["background"] + return colors diff --git a/pywal/templates/colors.Xresources b/pywal/templates/colors.Xresources index 1410f5a..5d87403 100644 --- a/pywal/templates/colors.Xresources +++ b/pywal/templates/colors.Xresources @@ -51,6 +51,10 @@ URxvt*borderColor: {background.alpha} *.color66: {color0} *color66: {color0} +! Static light/dark colors. +light: {light} +dark: {dark} + ! Xclock colors. XClock*foreground: {foreground} XClock*background: {background} diff --git a/pywal/templates/colors.css b/pywal/templates/colors.css index f348e63..b8c3957 100644 --- a/pywal/templates/colors.css +++ b/pywal/templates/colors.css @@ -25,4 +25,8 @@ --color13: {color13}; --color14: {color14}; --color15: {color15}; + + /* Static */ + --dark: {dark}; + --light: {light}; }} diff --git a/pywal/templates/colors.json b/pywal/templates/colors.json index 537a534..fc9b853 100644 --- a/pywal/templates/colors.json +++ b/pywal/templates/colors.json @@ -5,7 +5,9 @@ "special": {{ "background": "{background}", "foreground": "{foreground}", - "cursor": "{cursor}" + "cursor": "{cursor}", + "dark": "{dark}", + "light": "{light}" }}, "colors": {{ "color0": "{color0}", diff --git a/pywal/templates/colors.scss b/pywal/templates/colors.scss index 001be1f..e5c4de9 100644 --- a/pywal/templates/colors.scss +++ b/pywal/templates/colors.scss @@ -24,3 +24,7 @@ $color12: {color12}; $color13: {color13}; $color14: {color14}; $color15: {color15}; + +// Static +$dark: {dark}; +$light: {light}; diff --git a/pywal/templates/colors.sh b/pywal/templates/colors.sh index ba852b7..e99c83e 100644 --- a/pywal/templates/colors.sh +++ b/pywal/templates/colors.sh @@ -25,6 +25,10 @@ color13='{color13}' color14='{color14}' color15='{color15}' +# Static +light='{light}' +dark='{dark}' + # FZF colors export FZF_DEFAULT_OPTS=" $FZF_DEFAULT_OPTS diff --git a/pywal/templates/colors.yml b/pywal/templates/colors.yml index c3d6e47..781f1f6 100644 --- a/pywal/templates/colors.yml +++ b/pywal/templates/colors.yml @@ -4,6 +4,8 @@ special: background: "{background}" foreground: "{foreground}" cursor: "{cursor}" + dark: "{dark}" + light: "{light}" colors: color0: "{color0}"