forked from embark-theme/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
282 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Main | ||
on: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
- '.gitignore' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
- '.gitignore' | ||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Luacheck | ||
uses: nebularg/actions-luacheck@v1 | ||
with: | ||
files: . | ||
annotate: warning | ||
|
||
format: | ||
name: Format | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: StyLua | ||
uses: JohnnyMorganz/stylua-action@v1.1.1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --color always --check . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
" Colors | ||
let s:black = { "gui": "#212121", "cterm": "0", "cterm16" : "0" } | ||
let s:medium_gray = { "gui": "#767676", "cterm": "243", "cterm16" : "243" } | ||
let s:white = { "gui": "#F3F3F3", "cterm": "15", "cterm16" : "15" } | ||
let s:actual_white = { "gui": "#FFFFFF", "cterm": "231", "cterm16" : "231" } | ||
let s:light_black = { "gui": "#424242", "cterm": "8", "cterm16" : "8" } | ||
let s:lighter_black = { "gui": "#545454", "cterm": "240", "cterm16" : "240" } | ||
|
||
" lighter shadows and darker grays | ||
let s:subtle_black = { "gui": "#303030", "cterm": "236", "cterm16" : "236" } | ||
let s:light_gray = { "gui": "#B2B2B2", "cterm": "249", "cterm16" : "249" } | ||
let s:lighter_gray = { "gui": "#C6C6C6", "cterm": "251", "cterm16" : "251" } | ||
|
||
" flat colors: | ||
let s:space = { "gui": "#1e1c31", "cterm": "233", "cterm16": "NONE"} | ||
let s:deep_space= { "gui": "#100E23", "cterm": "232", "cterm16": "8"} | ||
let s:eclipse = { "gui": "#3E3859", "cterm": "236", "cterm16": "0"} | ||
|
||
let s:red = { "gui": "#F48FB1", "cterm": "204", "cterm16": "1"} | ||
let s:dark_red = { "gui": "#ff5458", "cterm": "203", "cterm16": "9"} | ||
|
||
let s:green = { "gui": "#A1EFD3", "cterm": "120", "cterm16": "2"} | ||
let s:dark_green = { "gui": "#62d196", "cterm": "119", "cterm16": "10"} | ||
|
||
let s:yellow = { "gui": "#ffe9aa", "cterm": "228", "cterm16": "3"} | ||
let s:dark_yellow = { "gui": "#ffb378", "cterm": "215", "cterm16": "11"} | ||
|
||
let s:blue = { "gui": "#91ddff", "cterm": "159", "cterm16": "4"} | ||
let s:dark_blue = { "gui": "#65b2ff", "cterm": "75", "cterm16": "12"} | ||
|
||
let s:purple = { "gui": "#c991e1", "cterm": "141", "cterm16": "5"} | ||
let s:dark_purple = { "gui": "#906cff", "cterm": "135", "cterm16": "13"} | ||
|
||
let s:cyan = { "gui": "#aaffe4", "cterm": "122", "cterm16": "6"} | ||
let s:dark_cyan = { "gui": "#63f2f1", "cterm": "121", "cterm16": "14"} | ||
|
||
let s:stardust = { "gui": "#cbe3e7", "cterm": "253", "cterm16": "7"} | ||
let s:cosmos = { "gui": "#a6b3cc", "cterm": "252", "cterm16": "15"} | ||
|
||
let s:bg = s:space | ||
let s:bg_subtle = s:deep_space | ||
let s:bg_dark = s:eclipse | ||
let s:norm = s:stardust | ||
let s:norm_subtle = s:cosmos | ||
let s:visual = s:bg_subtle | ||
let g:airline#themes#embark#palette = {} | ||
|
||
let s:N1 = [ s:bg_subtle.gui, s:cyan.gui, s:bg_subtle.cterm16, s:cyan.cterm16 ] | ||
let s:N2 = [ s:bg_subtle.gui, s:dark_cyan.gui, s:bg_subtle.cterm16, s:dark_cyan.cterm16 ] | ||
let s:N3 = [ s:white.gui, s:bg_subtle.gui, s:white.cterm16, s:bg_subtle.cterm16 ] | ||
let g:airline#themes#embark#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) | ||
|
||
let g:airline#themes#embark#palette.normal_modified = { | ||
\ 'airline_c': [ s:N3[0] , s:N3[1] , s:N3[2] , s:N3[3], '' ] , | ||
\ } | ||
|
||
let s:I1 = [ s:bg_subtle.gui , s:red.gui , s:bg_subtle.cterm16 , s:red.cterm16] | ||
let s:I2 = [ s:bg_subtle.gui , s:dark_red.gui , s:bg_subtle.cterm16 , s:dark_red.cterm16] | ||
let s:I3 = [ s:white.gui, s:bg_subtle.gui, s:white.cterm16, s:bg_subtle.cterm16 ] | ||
let g:airline#themes#embark#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) | ||
let g:airline#themes#embark#palette.insert_modified = { | ||
\ 'airline_c': [ s:white.gui , s:bg_subtle.gui , s:white.cterm16, s:bg_subtle.cterm16 , '' ] , | ||
\ } | ||
let g:airline#themes#embark#palette.insert_paste = { | ||
\ 'airline_a': [ s:I1[0] , s:yellow.gui , s:I1[2] , s:yellow.cterm16 , '' ] , | ||
\ } | ||
|
||
|
||
let g:airline#themes#embark#palette.replace = copy(g:airline#themes#embark#palette.insert) | ||
let g:airline#themes#embark#palette.replace.airline_a = [ s:I2[0] , s:yellow.gui , s:I2[2] , s:yellow.cterm16 , '' ] | ||
let g:airline#themes#embark#palette.replace_modified = g:airline#themes#embark#palette.insert_modified | ||
|
||
|
||
let s:V1 = [ s:bg_subtle.gui , s:yellow.gui , s:bg_subtle.cterm16 , s:yellow.cterm16] | ||
let s:V2 = [ s:bg_subtle.gui , s:dark_yellow.gui , s:bg_subtle.cterm16 , s:dark_yellow.cterm16] | ||
let s:V3 = [ s:white.gui, s:bg_subtle.gui, s:white.cterm16, s:bg_subtle.cterm16 ] | ||
let g:airline#themes#embark#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) | ||
let g:airline#themes#embark#palette.visual_modified = { | ||
\ 'airline_c': [ s:V3[0] , s:V3[1] , s:V3[2] , s:V3[3], '' ] , | ||
\ } | ||
|
||
let s:IA1 = [ s:bg_subtle.gui , s:purple.gui , s:bg_subtle.cterm16 , s:purple.cterm16] | ||
let s:IA2 = [ s:bg_subtle.gui , s:dark_purple.gui , s:bg_subtle.cterm16 , s:dark_purple.cterm16] | ||
let s:IA3 = [ s:white.gui, s:bg_subtle.gui, s:white.cterm16, s:bg_subtle.cterm16 ] | ||
let g:airline#themes#embark#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) | ||
let g:airline#themes#embark#palette.inactive_modified = { | ||
\ 'airline_c': [ s:IA3[0] , s:IA3[1] , s:IA3[2] , s:IA3[3], '' ] , | ||
\ } | ||
|
||
|
||
let s:WI = [ s:bg_subtle.gui, s:red.gui, s:bg_subtle.cterm16, s:red.cterm16 ] | ||
let g:airline#themes#embark#palette.normal.airline_warning = [ | ||
\ s:WI[0], s:WI[1], s:WI[2], s:WI[3] | ||
\ ] | ||
|
||
let g:airline#themes#embark#palette.normal_modified.airline_warning = | ||
\ g:airline#themes#embark#palette.normal.airline_warning | ||
|
||
let g:airline#themes#embark#palette.insert.airline_warning = | ||
\ g:airline#themes#embark#palette.normal.airline_warning | ||
|
||
let g:airline#themes#embark#palette.insert_modified.airline_warning = | ||
\ g:airline#themes#embark#palette.normal.airline_warning | ||
|
||
let g:airline#themes#embark#palette.visual.airline_warning = | ||
\ g:airline#themes#embark#palette.normal.airline_warning | ||
|
||
let g:airline#themes#embark#palette.visual_modified.airline_warning = | ||
\ g:airline#themes#embark#palette.normal.airline_warning | ||
|
||
let g:airline#themes#embark#palette.replace.airline_warning = | ||
\ g:airline#themes#embark#palette.normal.airline_warning | ||
|
||
let g:airline#themes#embark#palette.replace_modified.airline_warning = | ||
\ g:airline#themes#embark#palette.normal.airline_warning | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
" Colors | ||
let s:deep_space= { "gui": "#100E23", "cterm": "232", "cterm16": "8"} | ||
let s:space = { "gui": "#1e1c31", "cterm": "233", "cterm16": "NONE"} | ||
let s:eclipse = { "gui": "#3E3859", "cterm": "236", "cterm16": "0"} | ||
|
||
let s:red = { "gui": "#F48FB1", "cterm": "204", "cterm16": "1"} | ||
let s:dark_red = { "gui": "#ff5458", "cterm": "203", "cterm16": "9"} | ||
|
||
let s:green = { "gui": "#A1EFD3", "cterm": "120", "cterm16": "2"} | ||
let s:dark_green = { "gui": "#62d196", "cterm": "119", "cterm16": "10"} | ||
|
||
let s:yellow = { "gui": "#ffe9aa", "cterm": "228", "cterm16": "3"} | ||
let s:dark_yellow = { "gui": "#ffb378", "cterm": "215", "cterm16": "11"} | ||
|
||
let s:blue = { "gui": "#91ddff", "cterm": "159", "cterm16": "4"} | ||
let s:dark_blue = { "gui": "#65b2ff", "cterm": "75", "cterm16": "12"} | ||
|
||
let s:purple = { "gui": "#c991e1", "cterm": "141", "cterm16": "5"} | ||
let s:dark_purple = { "gui": "#906cff", "cterm": "135", "cterm16": "13"} | ||
|
||
let s:cyan = { "gui": "#aaffe4", "cterm": "122", "cterm16": "6"} | ||
let s:dark_cyan = { "gui": "#63f2f1", "cterm": "121", "cterm16": "14"} | ||
|
||
let s:clouds = { "gui": "#cbe3e7", "cterm": "253", "cterm16": "7"} | ||
let s:dark_clouds = { "gui": "#6B697E", "cterm": "252", "cterm16": "15"} | ||
|
||
let s:bg = s:space | ||
let s:bg_dark = s:deep_space | ||
let s:bg_bright = s:eclipse | ||
let s:norm = s:clouds | ||
let s:norm_subtle = s:dark_clouds | ||
let s:visual = s:bg_bright | ||
|
||
" lightline embark colors | ||
let s:lfc = { | ||
\'space': [s:space.gui, s:space.cterm16], | ||
\'deep_space': [s:deep_space.gui, s:deep_space.cterm16], | ||
\'eclipse' : [s:eclipse.gui, s:eclipse.cterm16], | ||
\'red' : [s:red.gui, s:red.cterm16], | ||
\'dark_red' : [s:dark_red.gui, s:dark_red.cterm16], | ||
\'green' : [s:green.gui, s:green.cterm16], | ||
\'dark_green' : [s:dark_green.gui, s:dark_green.cterm16], | ||
\'yellow' : [s:yellow.gui, s:yellow.cterm16], | ||
\'dark_yellow' : [s:dark_yellow.gui, s:dark_yellow.cterm16], | ||
\'blue' : [s:blue.gui, s:blue.cterm16], | ||
\'dark_blue' : [s:dark_blue.gui, s:dark_blue.cterm16], | ||
\'purple' : [s:purple.gui, s:purple.cterm16], | ||
\'dark_purple' : [s:dark_purple.gui, s:dark_purple.cterm16], | ||
\'cyan' : [s:cyan.gui, s:cyan.cterm16], | ||
\'dark_cyan' : [s:dark_cyan.gui, s:dark_cyan.cterm16], | ||
\'clouds' : [s:clouds.gui, s:clouds.cterm16], | ||
\'dark_clouds' : [s:dark_clouds.gui, s:dark_clouds.cterm16], | ||
\'bg': [s:bg.gui, s:bg.cterm16], | ||
\'bg_dark': [s:bg_dark.gui, s:bg_dark.cterm16], | ||
\'bg_bright': [s:bg_bright.gui, s:bg_bright.cterm16], | ||
\'norm': [s:norm.gui, s:norm.cterm16], | ||
\'norm_subtle': [s:norm_subtle.gui, s:norm_subtle.cterm16], | ||
\} | ||
|
||
let s:p = { 'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {} } | ||
|
||
" Tabline | ||
let s:p.tabline.left = [ [ s:lfc.clouds, s:lfc.bg_dark ], [s:lfc.clouds, s:lfc.eclipse] ] | ||
let s:p.tabline.tabsel = [ [ s:lfc.bg_dark, s:lfc.dark_cyan ] ] | ||
let s:p.tabline.middle = [ [ s:lfc.clouds, s:lfc.bg_dark ] ] | ||
let s:p.tabline.right = [ [ s:lfc.bg_dark, s:lfc.dark_cyan ] ] | ||
|
||
" Normal mode | ||
let s:p.normal.left = [ [ s:lfc.bg_dark, s:lfc.cyan ], [ s:lfc.clouds, s:lfc.eclipse ] ] | ||
let s:p.normal.middle = [ [ s:lfc.clouds, s:lfc.bg_dark ] ] | ||
let s:p.normal.right = [ [ s:lfc.bg_dark, s:lfc.cyan ], [ s:lfc.clouds, s:lfc.eclipse ] ] | ||
let s:p.normal.error = [ [ s:lfc.red, s:lfc.bg_dark ] ] | ||
let s:p.normal.warning = [ [ s:lfc.yellow, s:lfc.bg_dark ] ] | ||
|
||
" Visual mode | ||
let s:p.visual.left = [ [ s:lfc.bg_dark, s:lfc.yellow ], [ s:lfc.bg_dark, s:lfc.dark_yellow ] ] | ||
let s:p.visual.right = [ [ s:lfc.bg_dark, s:lfc.yellow ], [ s:lfc.bg_dark, s:lfc.dark_yellow ] ] | ||
|
||
" Replace mode | ||
let s:p.replace.left = [ [ s:lfc.bg_dark, s:lfc.green ], [ s:lfc.bg_dark, s:lfc.dark_green ] ] | ||
let s:p.replace.right = [ [ s:lfc.bg_dark, s:lfc.green ], [ s:lfc.bg_dark, s:lfc.dark_green ] ] | ||
|
||
" Insert mode | ||
let s:p.insert.left = [ [ s:lfc.bg_dark, s:lfc.red ], [ s:lfc.bg_dark, s:lfc.dark_red ] ] | ||
let s:p.insert.right = [ [ s:lfc.bg_dark, s:lfc.red ], [ s:lfc.bg_dark, s:lfc.dark_red ] ] | ||
|
||
" Inactive split | ||
let s:p.inactive.left = [ [ s:lfc.eclipse, s:lfc.bg_dark ], [ s:lfc.eclipse, s:lfc.bg_dark ] ] | ||
let s:p.inactive.middle = [ [ s:lfc.eclipse, s:lfc.bg_dark ] ] | ||
let s:p.inactive.right = [ [ s:lfc.eclipse, s:lfc.bg_dark ], [ s:lfc.eclipse, s:lfc.bg_dark ] ] | ||
|
||
let g:lightline#colorscheme#embark#palette = lightline#colorscheme#flatten(s:p) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
local colors = { | ||
-- lualine background color | ||
color0 = '#585273', | ||
|
||
-- mode color | ||
color1 = '#F48FB1', | ||
color2 = '#A1EFD3', | ||
color3 = '#d4bfff', | ||
|
||
-- mode text color | ||
color4 = '#cbe3e7', | ||
|
||
-- inactive background color | ||
color5 = '#100e23', | ||
} | ||
|
||
-- LuaFormatter on | ||
return { | ||
normal = { | ||
a = { fg = colors.color4, bg = colors.color0 }, | ||
}, | ||
insert = { | ||
a = { fg = colors.color4, bg = colors.color2 }, | ||
}, | ||
visual = { | ||
a = { fg = colors.color4, bg = colors.color3 }, | ||
}, | ||
command = { | ||
a = { fg = colors.color4, bg = colors.color0 }, | ||
}, | ||
replace = { | ||
a = { fg = colors.color4, bg = colors.color3 }, | ||
}, | ||
inactive = { | ||
a = { fg = colors.color4, bg = colors.color5 }, | ||
}, | ||
} |