-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolors.lua
More file actions
executable file
·50 lines (44 loc) · 1.27 KB
/
Copy pathcolors.lua
File metadata and controls
executable file
·50 lines (44 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
-- Catppuccin Mocha color palette
-- Official colors from https://github.com/catppuccin/catppuccin
return {
-- Accent colors
rosewater = 0xfff5e0dc,
flamingo = 0xfff2cdcd,
pink = 0xfff5c2e7,
mauve = 0xffcba6f7,
red = 0xfff38ba8,
maroon = 0xffeba0ac,
peach = 0xfffab387,
yellow = 0xfff9e2af,
green = 0xffa6e3a1,
teal = 0xff94e2d5,
sky = 0xff89dceb,
sapphire = 0xff74c7ec,
blue = 0xff89b4fa,
lavender = 0xffb4befe,
-- Text colors
text = 0xffcdd6f4, -- Primary text
subtext1 = 0xffbac2de, -- Secondary text
subtext0 = 0xffa6adc8, -- Tertiary text
-- Overlay colors (for borders, inactive states)
overlay2 = 0xff9399b2,
overlay1 = 0xff7f849c,
overlay0 = 0xff6c7086, -- Use this instead of 'grey'
-- Surface colors (for backgrounds)
surface2 = 0xff585b70,
surface1 = 0xff45475a,
surface0 = 0xff313244,
-- Base colors (for main backgrounds)
base = 0xff1e1e2e, -- Main bar background
mantle = 0xff181825, -- Secondary background
crust = 0xff11111b, -- Darkest background
-- Utility
transparent = 0x00000000,
-- Helper function to apply alpha to colors
with_alpha = function(color, alpha)
if alpha > 1.0 or alpha < 0.0 then
return color
end
return (color & 0x00ffffff) | (math.floor(alpha * 255.0) << 24)
end,
}