Added solarized theme (#63)

* Added solarized theme
This commit is contained in:
Shadman 2021-01-31 13:27:55 +06:00 committed by GitHub
parent a2a9193296
commit df0d5f99cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 123 additions and 0 deletions

View File

@ -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) ![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) ![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) ![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)

View File

@ -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)

View File

@ -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

View File

@ -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