{{- $themeName := .chezmoi.config.data.theme -}} -- Theme Bridge: {{ $themeName }} local theme = {} {{- if eq $themeName "apex-neon" }} theme.base = "rgb(050505)" theme.surface = "rgb(141414)" theme.overlay = "rgb(262626)" theme.muted = "rgb(404040)" theme.text = "rgb(ededed)" theme.love = "rgb(ff0044)" theme.gold = "rgb(ffb700)" theme.pine = "rgb(00ff99)" theme.foam = "rgb(00eaff)" theme.iris = "rgb(9d00ff)" theme.rose = "rgb(ff8899)" theme.splash_text = "rgba(edededee)" theme.dec_shadow = "rgba(000000ee)" theme.glow = "rgba(ff0044ee)" theme.border_active = { colors = { "rgba(ff0044ff)", "rgba(9d00ffff)" }, angle = 45 } theme.border_inactive = { colors = { "rgba(40404044)", "rgba(14141444)" }, angle = 45 } theme.border_nogroup_active = { colors = { "rgba(00eaffff)", "rgba(00ff99ff)" }, angle = 45 } theme.border_nogroup_inactive = { colors = { "rgba(40404044)", "rgba(14141444)" }, angle = 45 } theme.border_group_active = { colors = { "rgba(ffb700ff)", "rgba(ff0044ff)" }, angle = 45 } theme.border_group_inactive = { colors = { "rgba(40404066)", "rgba(14141466)" }, angle = 45 } theme.border_grouplocked_active = { colors = { "rgba(00eaffff)", "rgba(9d00ffff)" }, angle = 45 } theme.border_grouplocked_inactive = { colors = { "rgba(00eaff66)", "rgba(9d00ff66)" }, angle = 45 } theme.groupbar_text = "rgba(050505ff)" theme.groupbar_active = { colors = { "rgba(ff0044ff)", "rgba(9d00ffaa)" } } theme.groupbar_inactive = { colors = { "rgba(141414ee)", "rgba(404040aa)" } } theme.groupbar_grouplocked_active = { colors = { "rgba(00eaffff)", "rgba(9d00ffff)" } } theme.groupbar_grouplocked_inactive = { colors = { "rgba(00eaffaa)", "rgba(9d00ffaa)" } } {{- else if eq $themeName "apex-aeon" }} theme.base = "rgb(f5f5f5)" theme.surface = "rgb(e8e8e8)" theme.overlay = "rgb(ffffff)" theme.muted = "rgb(737373)" theme.text = "rgb(0a0a0a)" theme.love = "rgb(ff0044)" theme.gold = "rgb(d18f00)" theme.pine = "rgb(00b377)" theme.foam = "rgb(007a88)" theme.iris = "rgb(7a3cff)" theme.rose = "rgb(ff4d6d)" theme.splash_text = "rgba(0a0a0aee)" theme.dec_shadow = "rgba(73737388)" theme.glow = "rgba(ff0044ee)" theme.border_active = { colors = { "rgba(ff0044ff)", "rgba(7a3cffff)" }, angle = 45 } theme.border_inactive = { colors = { "rgba(73737344)", "rgba(e8e8e844)" }, angle = 45 } theme.border_nogroup_active = { colors = { "rgba(007a88ff)", "rgba(00b377ff)" }, angle = 45 } theme.border_nogroup_inactive = { colors = { "rgba(73737344)", "rgba(e8e8e844)" }, angle = 45 } theme.border_group_active = { colors = { "rgba(d18f00ff)", "rgba(ff0044ff)" }, angle = 45 } theme.border_group_inactive = { colors = { "rgba(73737366)", "rgba(e8e8e866)" }, angle = 45 } theme.border_grouplocked_active = { colors = { "rgba(007a88ff)", "rgba(7a3cffff)" }, angle = 45 } theme.border_grouplocked_inactive = { colors = { "rgba(007a8866)", "rgba(7a3cff66)" }, angle = 45 } theme.groupbar_text = "rgba(0a0a0aff)" theme.groupbar_active = { colors = { "rgba(ff0044ff)", "rgba(7a3cffaa)" } } theme.groupbar_inactive = { colors = { "rgba(e8e8e8ee)", "rgba(737373aa)" } } theme.groupbar_grouplocked_active = { colors = { "rgba(007a88ff)", "rgba(7a3cffff)" } } theme.groupbar_grouplocked_inactive = { colors = { "rgba(007a88aa)", "rgba(7a3cffaa)" } } {{- end }} -- Apply colors to config hl.config({ general = { ["col.active_border"] = theme.border_active, ["col.inactive_border"] = theme.border_inactive, ["col.nogroup_border"] = theme.border_nogroup_inactive, ["col.nogroup_border_active"] = theme.border_nogroup_active }, decoration = { shadow = { color = theme.dec_shadow }, glow = { color = theme.glow } }, group = { ["col.border_active"] = theme.border_group_active, ["col.border_inactive"] = theme.border_group_inactive, ["col.border_locked_active"] = theme.border_grouplocked_active, ["col.border_locked_inactive"] = theme.border_grouplocked_inactive, groupbar = { text_color = theme.groupbar_text, ["col.active"] = theme.groupbar_active, ["col.inactive"] = theme.groupbar_inactive, ["col.locked_active"] = theme.groupbar_grouplocked_active, ["col.locked_inactive"] = theme.groupbar_grouplocked_inactive } }, misc = { ["col.splash"] = theme.splash_text } }) return theme