nix/darwin/sketchybar/config/colors.lua
2025-04-08 23:41:12 -05:00

26 lines
462 B
Lua

local function with_alpha(color, alpha)
if alpha > 1.0 or alpha < 0.0 then
return color
end
return (color & 0x00ffffff) | (math.floor(alpha * 255.0) << 24)
end
return {
black = 0xff181819,
white = 0xffd3b58d,
red = 0xffF92672,
blue = 0xff66D9EF,
grey = 0xff7f8490,
transparent = 0x00000000,
bar = {
bg = 0xff072626,
border = 0xffFD971F,
},
popup = {
bg = with_alpha(0xff072626, 0.6),
border = 0xffFD971F,
},
with_alpha = with_alpha,
}