-- Was: theme/colors.conf (Catppuccin Macchiato) -- -- hyprlang needed a paired "$nameAlpha" bare-hex variable for every colour so -- it could string-splice alpha on. In Lua we keep only the hex and build -- colour strings with the helpers below. local hex = { rosewater = "f4dbd6", flamingo = "f0c6c6", pink = "f5bde6", mauve = "c6a0f6", red = "ed8796", maroon = "ee99a0", peach = "f5a97f", yellow = "eed49f", green = "a6da95", teal = "8bd5ca", sky = "91d7e3", sapphire = "7dc4e4", blue = "8aadf4", lavender = "b7bdf8", text = "cad3f5", subtext1 = "b8c0e0", subtext0 = "a5adcb", overlay2 = "939ab7", overlay1 = "8087a2", overlay0 = "6e738d", surface2 = "5b6078", surface1 = "494d64", surface0 = "363a4f", base = "24273a", mantle = "1e2030", crust = "181926", } local M = { hex = hex } -- Opaque colour, e.g. M.rgb("lavender") -> "rgb(b7bdf8)" function M.rgb(name) return "rgb(" .. hex[name] .. ")" end -- Colour with an alpha suffix, e.g. M.rgba("lavender", "69") -> "rgba(b7bdf869)" function M.rgba(name, alpha) return "rgba(" .. hex[name] .. alpha .. ")" end return M