From df0d5f99cbd41a361e5524a81062334c1d1866e3 Mon Sep 17 00:00:00 2001 From: Shadman Date: Sun, 31 Jan 2021 13:27:55 +0600 Subject: [PATCH] Added solarized theme (#63) * Added solarized theme --- THEMES.md | 6 +++ lua/lualine/themes/solarized.lua | 11 ++++++ lua/lualine/themes/solarized_dark.lua | 53 ++++++++++++++++++++++++++ lua/lualine/themes/solarized_light.lua | 53 ++++++++++++++++++++++++++ 4 files changed, 123 insertions(+) create mode 100644 lua/lualine/themes/solarized.lua create mode 100644 lua/lualine/themes/solarized_dark.lua create mode 100644 lua/lualine/themes/solarized_light.lua diff --git a/THEMES.md b/THEMES.md index a39950f..905117d 100644 --- a/THEMES.md +++ b/THEMES.md @@ -39,3 +39,9 @@ All available themes are only best effort ports by myself/ other users. If you f ![visual](https://user-images.githubusercontent.com/13149513/103506318-a40f9180-4e86-11eb-85fd-153d6de2a62f.jpg) ![command](https://user-images.githubusercontent.com/13149513/103506333-aa057280-4e86-11eb-8098-422eca99c23a.jpg) ![replace](https://user-images.githubusercontent.com/13149513/103506349-af62bd00-4e86-11eb-9f11-bd6a56214fa3.jpg) + +### solarized +![normal](https://user-images.githubusercontent.com/13149513/104330979-c2c1f800-5518-11eb-83b8-70128d808111.jpg) +![insert](https://user-images.githubusercontent.com/13149513/104330996-c5245200-5518-11eb-96a6-78d6679c59c0.jpg) +![visual](https://user-images.githubusercontent.com/13149513/104331081-dec59980-5518-11eb-9577-616d891be64e.jpg) +![replace](https://user-images.githubusercontent.com/13149513/104331086-e08f5d00-5518-11eb-90eb-955e83bc17b9.jpg) diff --git a/lua/lualine/themes/solarized.lua b/lua/lualine/themes/solarized.lua new file mode 100644 index 0000000..264fc4e --- /dev/null +++ b/lua/lualine/themes/solarized.lua @@ -0,0 +1,11 @@ +-- ============================================================================= +-- Filename: lua/lualine/themes/solarized.lua +-- Author: shadman +-- Credit: itchyny(lightline) +-- License: MIT License +-- ============================================================================= + +local background = vim.o.background +print(background) + +return require("lualine.themes.solarized_"..background) diff --git a/lua/lualine/themes/solarized_dark.lua b/lua/lualine/themes/solarized_dark.lua new file mode 100644 index 0000000..0067daa --- /dev/null +++ b/lua/lualine/themes/solarized_dark.lua @@ -0,0 +1,53 @@ +-- ============================================================================= +-- Filename: lua/lualine/themes/solarized_dark.lua +-- Author: shadman +-- Credit: itchyny(lightline) +-- License: MIT License +-- ============================================================================= + +local M = {} + +local colors = { + base03 = '#002b36', + base02 = '#073642', + base01 = '#586e75', + base00 = '#657b83', + base0 = '#839496', + base1 = '#93a1a1', + base2 = '#eee8d5', + base3 = '#fdf6e3', + yellow = '#b58900', + orange = '#cb4b16', + red = '#dc322f', + magenta = '#d33682', + violet = '#6c71c4', + blue = '#268bd2', + cyan = '#2aa198', + green = '#859900', +} + +M.normal = { + a = { fg = colors.base03, bg = colors.blue , gui = 'bold', }, + b = { fg = colors.base03, bg = colors.base1 , }, + c = { fg = colors.base1, bg = colors.base02 , } +} + +M.insert = { + a = { fg = colors.base03, bg = colors.green , gui = 'bold', }, +} + +M.visual = { + a = { fg = colors.base03, bg = colors.magenta , gui = 'bold', }, +} + +M.replace = { + a = { fg = colors.base03, bg = colors.red , gui = 'bold', }, +} + +M.inactive = { + a = { fg = colors.base0, bg = colors.base02 , gui = 'bold', }, + b = { fg = colors.base03, bg = colors.base00 , }, + c = { fg = colors.base01, bg = colors.base02 , }, +} + +return M diff --git a/lua/lualine/themes/solarized_light.lua b/lua/lualine/themes/solarized_light.lua new file mode 100644 index 0000000..d49d727 --- /dev/null +++ b/lua/lualine/themes/solarized_light.lua @@ -0,0 +1,53 @@ +-- ============================================================================= +-- Filename: lua/lualine/themes/solarized_light.lua +-- Author: shadman +-- Credit: itchyny(lightline) +-- License: MIT License +-- ============================================================================= + +local M = {} + +local colors = { + base3 = '#002b36', + base2 = '#073642', + base1 = '#586e75', + base0 = '#657b83', + base00 = '#839496', + base01 = '#93a1a1', + base02 = '#eee8d5', + base03 = '#fdf6e3', + yellow = '#b58900', + orange = '#cb4b16', + red = '#dc322f', + magenta = '#d33682', + violet = '#6c71c4', + blue = '#268bd2', + cyan = '#2aa198', + green = '#859900', +} + +M.normal = { + a = { fg = colors.base03, bg = colors.blue , gui = 'bold', }, + b = { fg = colors.base03, bg = colors.base1 , }, + c = { fg = colors.base1, bg = colors.base02 , } +} + +M.insert = { + a = { fg = colors.base03, bg = colors.green , gui = 'bold', }, +} + +M.visual = { + a = { fg = colors.base03, bg = colors.magenta , gui = 'bold', }, +} + +M.replace = { + a = { fg = colors.base03, bg = colors.red , gui = 'bold', }, +} + +M.inactive = { + a = { fg = colors.base0, bg = colors.base02 , gui = 'bold', }, + b = { fg = colors.base03, bg = colors.base00 , }, + c = { fg = colors.base01, bg = colors.base02 , }, +} + +return M