aboutsummaryrefslogtreecommitdiff
path: root/lua/lualine/themes/prismite.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lualine/themes/prismite.lua')
-rw-r--r--lua/lualine/themes/prismite.lua53
1 files changed, 53 insertions, 0 deletions
diff --git a/lua/lualine/themes/prismite.lua b/lua/lualine/themes/prismite.lua
new file mode 100644
index 0000000..25e50d5
--- /dev/null
+++ b/lua/lualine/themes/prismite.lua
@@ -0,0 +1,53 @@
+local colors = require "prismite.palette"
+local utils = require "prismite.utils"
+
+local styles = {
+ normal = {
+ a = { bg = colors.blue, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg_high, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+ insert = {
+ a = { bg = colors.green, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg_high, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+ visual = {
+ a = { bg = colors.pink, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg_high, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+ replace = {
+ a = { bg = colors.red, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg_high, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+ command = {
+ a = { bg = colors.cyan, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg_high, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+ inactive = {
+ a = { bg = colors.bg, fg = colors.bg, gui = "bold" },
+ b = { bg = colors.bg, fg = colors.fg },
+ c = { bg = colors.bg, fg = colors.fg },
+ },
+}
+
+for _, segments in pairs(styles) do
+ for _, segment in pairs(segments) do
+ if type(segment.fg) == "table" and utils.is_oklch(segment.fg) then
+ segment.fg = utils.oklch2hex(segment.fg)
+ end
+
+ if type(segment.bg) == "table" and utils.is_oklch(segment.bg) then
+ segment.bg = utils.oklch2hex(segment.bg)
+ end
+
+ if type(segment.sp) == "table" and utils.is_oklch(segment.sp) then
+ segment.sp = utils.oklch2hex(segment.sp)
+ end
+ end
+end
+
+return styles