Skip to content

Commit

Permalink
Vis themes
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Feb 14, 2018
1 parent b913fb8 commit 278b0cc
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 1 deletion.
63 changes: 63 additions & 0 deletions config/vis/themes/base16-rebecca.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
-- base16-vis (https://github.com/pshevtsov/base16-vis)
-- by Petr Shevtsov
-- Rebecca scheme by Victor Borja (http://github.com/vic) based on Rebecca Theme (http://github.com/vic/rebecca-theme)

local lexers = vis.lexers

local colors = {
['base00'] = '#292a44',
['base01'] = '#663399',
['base02'] = '#383a62',
['base03'] = '#666699',
['base04'] = '#a0a0c5',
['base05'] = '#f1eff8',
['base06'] = '#ccccff',
['base07'] = '#53495d',
['base08'] = '#a0a0c5',
['base09'] = '#efe4a1',
['base0A'] = '#ae81ff',
['base0B'] = '#6dfedf',
['base0C'] = '#8eaee0',
['base0D'] = '#2de0a7',
['base0E'] = '#7aa5ff',
['base0F'] = '#ff79c6',
}

lexers.colors = colors

local fg = ',fore:'..colors.base05..','
local bg = ',back:'..colors.base00..','

lexers.STYLE_DEFAULT = bg..fg
lexers.STYLE_NOTHING = bg
lexers.STYLE_CLASS = 'fore:'..colors.base0A
lexers.STYLE_COMMENT = 'fore:'..colors.base03..',italics'
lexers.STYLE_CONSTANT = 'fore:'..colors.base09
lexers.STYLE_DEFINITION = 'fore:'..colors.base0E
lexers.STYLE_ERROR = 'fore:'..colors.base08..',italics'
lexers.STYLE_FUNCTION = 'fore:'..colors.base0D
lexers.STYLE_KEYWORD = 'fore:'..colors.base0E
lexers.STYLE_LABEL = 'fore:'..colors.base0A
lexers.STYLE_NUMBER = 'fore:'..colors.base09
lexers.STYLE_OPERATOR = 'fore:'..colors.base05
lexers.STYLE_REGEX = 'fore:'..colors.base0C
lexers.STYLE_STRING = 'fore:'..colors.base0B
lexers.STYLE_PREPROCESSOR = 'fore:'..colors.base0A
lexers.STYLE_TAG = 'fore:'..colors.base0A
lexers.STYLE_TYPE = 'fore:'..colors.base0A
lexers.STYLE_VARIABLE = 'fore:'..colors.base0D
lexers.STYLE_WHITESPACE = 'fore:'..colors.base02
lexers.STYLE_EMBEDDED = 'fore:'..colors.base0F
lexers.STYLE_IDENTIFIER = 'fore:'..colors.base08

lexers.STYLE_LINENUMBER = 'fore:'..colors.base02..',back:'..colors.base00
lexers.STYLE_CURSOR = 'fore:'..colors.base00..',back:'..colors.base05
lexers.STYLE_CURSOR_PRIMARY = 'fore:'..colors.base00..',back:'..colors.base05
lexers.STYLE_CURSOR_LINE = 'back:'..colors.base01
lexers.STYLE_COLOR_COLUMN = 'back:'..colors.base01
lexers.STYLE_SELECTION = 'back:'..colors.base02
lexers.STYLE_STATUS = 'fore:'..colors.base04..',back:'..colors.base01
lexers.STYLE_STATUS_FOCUSED = 'fore:'..colors.base09..',back:'..colors.base01
lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
lexers.STYLE_INFO = 'fore:default,back:default,bold'
lexers.STYLE_EOF = ''
63 changes: 63 additions & 0 deletions config/vis/themes/base16-spacemacs.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
-- base16-vis (https://github.com/pshevtsov/base16-vis)
-- by Petr Shevtsov
-- Spacemacs scheme by Nasser Alshammari (https://github.com/nashamri/spacemacs-theme)

local lexers = vis.lexers

local colors = {
['base00'] = '#1f2022',
['base01'] = '#282828',
['base02'] = '#444155',
['base03'] = '#585858',
['base04'] = '#b8b8b8',
['base05'] = '#a3a3a3',
['base06'] = '#e8e8e8',
['base07'] = '#f8f8f8',
['base08'] = '#f2241f',
['base09'] = '#ffa500',
['base0A'] = '#b1951d',
['base0B'] = '#67b11d',
['base0C'] = '#2d9574',
['base0D'] = '#4f97d7',
['base0E'] = '#a31db1',
['base0F'] = '#b03060',
}

lexers.colors = colors

local fg = ',fore:'..colors.base05..','
local bg = ',back:'..colors.base00..','

lexers.STYLE_DEFAULT = bg..fg
lexers.STYLE_NOTHING = bg
lexers.STYLE_CLASS = 'fore:'..colors.base0A
lexers.STYLE_COMMENT = 'fore:'..colors.base03..',italics'
lexers.STYLE_CONSTANT = 'fore:'..colors.base09
lexers.STYLE_DEFINITION = 'fore:'..colors.base0E
lexers.STYLE_ERROR = 'fore:'..colors.base08..',italics'
lexers.STYLE_FUNCTION = 'fore:'..colors.base0D
lexers.STYLE_KEYWORD = 'fore:'..colors.base0E
lexers.STYLE_LABEL = 'fore:'..colors.base0A
lexers.STYLE_NUMBER = 'fore:'..colors.base09
lexers.STYLE_OPERATOR = 'fore:'..colors.base05
lexers.STYLE_REGEX = 'fore:'..colors.base0C
lexers.STYLE_STRING = 'fore:'..colors.base0B
lexers.STYLE_PREPROCESSOR = 'fore:'..colors.base0A
lexers.STYLE_TAG = 'fore:'..colors.base0A
lexers.STYLE_TYPE = 'fore:'..colors.base0A
lexers.STYLE_VARIABLE = 'fore:'..colors.base0D
lexers.STYLE_WHITESPACE = 'fore:'..colors.base02
lexers.STYLE_EMBEDDED = 'fore:'..colors.base0F
lexers.STYLE_IDENTIFIER = 'fore:'..colors.base08

lexers.STYLE_LINENUMBER = 'fore:'..colors.base02..',back:'..colors.base00
lexers.STYLE_CURSOR = 'fore:'..colors.base00..',back:'..colors.base05
lexers.STYLE_CURSOR_PRIMARY = 'fore:'..colors.base00..',back:'..colors.base05
lexers.STYLE_CURSOR_LINE = 'back:'..colors.base01
lexers.STYLE_COLOR_COLUMN = 'back:'..colors.base01
lexers.STYLE_SELECTION = 'back:'..colors.base02
lexers.STYLE_STATUS = 'fore:'..colors.base04..',back:'..colors.base01
lexers.STYLE_STATUS_FOCUSED = 'fore:'..colors.base09..',back:'..colors.base01
lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
lexers.STYLE_INFO = 'fore:default,back:default,bold'
lexers.STYLE_EOF = ''
2 changes: 1 addition & 1 deletion config/vis/visrc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require('plugins/textobject-lexer')
vis.events.subscribe(vis.events.INIT, function()
-- vis:command('set theme subtle-256')
-- vis:command('set theme light-16')
vis:command('set theme solarized')
vis:command('set theme base16-spacemacs')
end)


Expand Down

0 comments on commit 278b0cc

Please sign in to comment.