aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend Lind Madsen <erlendf80@gmail.com>2022-01-15 02:37:27 +0100
committerErlend Lind Madsen <erlendf80@gmail.com>2022-01-15 02:37:27 +0100
commitb06a2e3609911e98573e2046b60b5f6234343c5e (patch)
tree0ad3b69631cea5097976352e458ec1c00ec4c75c
parentf6262bf2f3d06e2b12a2e8b4c7995153be86ff2b (diff)
downloadvis-minimal-theme-b06a2e3609911e98573e2046b60b5f6234343c5e.tar.gz
only use 3 fore and 3 back colors
-rw-r--r--minimal-dark.lua87
-rw-r--r--minimal-light.lua94
2 files changed, 78 insertions, 103 deletions
diff --git a/minimal-dark.lua b/minimal-dark.lua
index b842309..1efdd07 100644
--- a/minimal-dark.lua
+++ b/minimal-dark.lua
@@ -1,56 +1,47 @@
-- vis-minimal-theme (https://github.com/erf/vis-minimal-theme)
-- by Erlend Lind Madsen
-local lexers = vis.lexers
-
-local col = {
- BACK = '#000000',
- FORE = '#ffffff',
- STAT_BACK = '#444444',
- STAT_FORE = '#bbbbbb',
- COMMENT = '#484848',
- VAL = '#bbbbbb',
- base04 = '#0000ff',
- ERROR = '#ffffff',
- TYPE = '#ffffff',
- VAR = '#444444',
- ID = '#ffffff',
- KEY = '#eeeeee',
- base0F = '#ffff00',
-}
-
-lexers.col = col
+local back0 = '#000000'
+local back1 = '#282828'
+local back2 = '#484848'
+local fore0 = '#ffffff'
+local fore1 = '#d8d8d8'
+local fore2 = '#b8b8b8'
-local fg = ',fore:'..col.FORE..','
-local bg = ',back:'..col.BACK..','
+local lexers = vis.lexers
-lexers.STYLE_DEFAULT = bg..fg
-lexers.STYLE_NOTHING = bg
-lexers.STYLE_CLASS = 'fore:'..col.TYPE
-lexers.STYLE_COMMENT = 'fore:'..col.COMMENT..',italics'
-lexers.STYLE_CONSTANT = 'fore:'..col.VAL
-lexers.STYLE_DEFINITION = 'fore:'..col.KEY
-lexers.STYLE_ERROR = 'fore:'..col.ERROR..',italics'
-lexers.STYLE_FUNCTION = 'fore:'..col.VAR
-lexers.STYLE_KEYWORD = 'fore:'..col.KEY
-lexers.STYLE_LABEL = 'fore:'..col.TYPE
-lexers.STYLE_NUMBER = 'fore:'..col.VAL
-lexers.STYLE_OPERATOR = 'fore:'..col.FORE
-lexers.STYLE_REGEX = 'fore:'..col.VAL
-lexers.STYLE_STRING = 'fore:'..col.VAL
-lexers.STYLE_PREPROCESSOR = 'fore:'..col.TYPE
-lexers.STYLE_TAG = 'fore:'..col.TYPE
-lexers.STYLE_TYPE = 'fore:'..col.TYPE
-lexers.STYLE_VARIABLE = 'fore:'..col.VAR
-lexers.STYLE_EMBEDDED = 'fore:'..col.base0F
-lexers.STYLE_IDENTIFIER = 'fore:'..col.ID
+lexers.STYLE_DEFAULT ='back:'..back0..',fore:'..fore0
+lexers.STYLE_NOTHING = 'back:'..back0
+lexers.STYLE_CLASS = 'fore:'..fore0
+lexers.STYLE_COMMENT = 'fore:'..back2
+lexers.STYLE_CONSTANT = 'fore:'..fore0
+lexers.STYLE_DEFINITION = 'fore:'..fore0
+lexers.STYLE_ERROR = 'fore:'..fore0
+lexers.STYLE_FUNCTION = 'fore:'..fore0
+lexers.STYLE_KEYWORD = 'fore:'..fore2
+lexers.STYLE_LABEL = 'fore:'..fore0
+lexers.STYLE_NUMBER = 'fore:'..fore1
+lexers.STYLE_OPERATOR = 'fore:'..fore0
+lexers.STYLE_REGEX = 'fore:'..fore1
+lexers.STYLE_STRING = 'fore:'..fore1
+lexers.STYLE_PREPROCESSOR = 'fore:'..fore0
+lexers.STYLE_TAG = 'fore:'..fore0
+lexers.STYLE_TYPE = 'fore:'..fore0
+lexers.STYLE_VARIABLE = 'fore:'..fore0
+lexers.STYLE_WHITESPACE = ''
+lexers.STYLE_EMBEDDED = 'back:'..back1
+lexers.STYLE_IDENTIFIER = 'fore:'..fore0
-lexers.STYLE_CURSOR = 'fore:'..col.BACK..',back:'..col.FORE
-lexers.STYLE_CURSOR_PRIMARY = 'fore:'..col.BACK..',back:'..col.FORE
-lexers.STYLE_CURSOR_LINE = 'back:'..col.STAT_BACK
-lexers.STYLE_COLOR_COLUMN = 'back:'..col.STAT_BACK
-lexers.STYLE_STATUS = 'fore:'..col.base04..',back:'..col.STAT_BACK
-lexers.STYLE_STATUS_FOCUSED = 'fore:'..col.STAT_FORE..',back:'..col.STAT_BACK
+lexers.STYLE_LINENUMBER = 'fore:'..fore1
+lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER
+lexers.STYLE_CURSOR = 'reverse'
+lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',fore:'..fore1
+lexers.STYLE_CURSOR_LINE = 'underlined'
+lexers.STYLE_COLOR_COLUMN = 'back:'..back1
+lexers.STYLE_SELECTION = 'back:'..fore1
+lexers.STYLE_STATUS = 'reverse'
+lexers.STYLE_STATUS_FOCUSED = 'reverse'
lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
-lexers.STYLE_INFO = 'fore:default, back:default,bold'
+lexers.STYLE_INFO = 'fore:default,back:default'
lexers.STYLE_EOF = ''
+
diff --git a/minimal-light.lua b/minimal-light.lua
index 5f4f6ed..d96bf0a 100644
--- a/minimal-light.lua
+++ b/minimal-light.lua
@@ -1,63 +1,47 @@
-- vis-minimal-theme (https://github.com/erf/vis-minimal-theme)
-- by Erlend Lind Madsen
--- based on base16-grayscale-dark by Petr Shevtsov (https://github.com/pshevtsov/base16-vis/themes/base16-grayscale-dark)
-local lexers = vis.lexers
-
-local colors = {
- ['base00'] = '#ffffff',
- ['base01'] = '#888888',
- ['base02'] = '#000000',
- ['base03'] = '#cccccc',
- ['base04'] = '#000000',
- ['base05'] = '#000000',
- ['base06'] = '#000000',
- ['base07'] = '#000000',
- ['base08'] = '#000000',
- ['base09'] = '#444444',
- ['base0A'] = '#000000',
- ['base0B'] = '#555555',
- ['base0C'] = '#000000',
- ['base0D'] = '#000000',
- ['base0E'] = '#666666',
- ['base0F'] = '#000000',
-}
-
-lexers.colors = colors
+local back0 = '#ffffff'
+local back1 = '#d8d8d8'
+local back2 = '#b8b8b8'
+local fore0 = '#000000'
+local fore1 = '#282828'
+local fore2 = '#484848'
-local fg = ',fore:'..colors.base05..','
-local bg = ',back:'..colors.base00..','
+local lexers = vis.lexers
-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_DEFAULT ='back:'..back0..',fore:'..fore0
+lexers.STYLE_NOTHING = 'back:'..back0
+lexers.STYLE_CLASS = 'fore:'..fore0
+lexers.STYLE_COMMENT = 'fore:'..back2
+lexers.STYLE_CONSTANT = 'fore:'..fore0
+lexers.STYLE_DEFINITION = 'fore:'..fore0
+lexers.STYLE_ERROR = 'fore:'..fore0
+lexers.STYLE_FUNCTION = 'fore:'..fore0
+lexers.STYLE_KEYWORD = 'fore:'..fore2
+lexers.STYLE_LABEL = 'fore:'..fore0
+lexers.STYLE_NUMBER = 'fore:'..fore1
+lexers.STYLE_OPERATOR = 'fore:'..fore0
+lexers.STYLE_REGEX = 'fore:'..fore1
+lexers.STYLE_STRING = 'fore:'..fore1
+lexers.STYLE_PREPROCESSOR = 'fore:'..fore0
+lexers.STYLE_TAG = 'fore:'..fore0
+lexers.STYLE_TYPE = 'fore:'..fore0
+lexers.STYLE_VARIABLE = 'fore:'..fore0
+lexers.STYLE_WHITESPACE = ''
+lexers.STYLE_EMBEDDED = 'back:'..back1
+lexers.STYLE_IDENTIFIER = 'fore:'..fore0
-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_LINENUMBER = 'fore:'..fore1
+lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER
+lexers.STYLE_CURSOR = 'back:'..back2
+lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',fore:'..fore1
+lexers.STYLE_CURSOR_LINE = 'underlined'
+lexers.STYLE_COLOR_COLUMN = 'back:'..back1
+lexers.STYLE_SELECTION = 'back:'..back2
+lexers.STYLE_STATUS = 'reverse'
+lexers.STYLE_STATUS_FOCUSED = 'reverse'
lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
-lexers.STYLE_INFO = 'fore:default,back:default,bold'
+lexers.STYLE_INFO = 'fore:default,back:default'
lexers.STYLE_EOF = ''
+