aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend Lind Madsen <erlendf80@gmail.com>2022-07-27 10:36:13 +0200
committerErlend Lind Madsen <erlendf80@gmail.com>2022-07-27 10:39:24 +0200
commitadd97eefd3a85ed63d653ee75f4be0665c03d91f (patch)
tree5ca3d9e1e92b6020f2677b3bbe29f84ea851256b
parentbf11d46c9f8cf037ac598977f4c0cf7e8afc0376 (diff)
downloadvis-minimal-theme-add97eefd3a85ed63d653ee75f4be0665c03d91f.tar.gz
add light-clear and dark-clear themes
-rw-r--r--README.md4
-rw-r--r--dark-clear.lua50
-rw-r--r--light-clear.lua (renamed from clear.lua)2
3 files changed, 53 insertions, 3 deletions
diff --git a/README.md b/README.md
index 95a9b2a..1f308cf 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
# vis-minimal-theme
-Minimal black, white and clear theme for [vis](https://github.com/martanne/vis)
+Minimal **black** and **white** theme for [vis](https://github.com/martanne/vis)
We only use 3 shades of black and white per theme.
-Clear theme is made for a terminal gradient or background image.
+There are also **black-clear** and **white-clear**, if you'd like to use the terminal background.
## Install
diff --git a/dark-clear.lua b/dark-clear.lua
new file mode 100644
index 0000000..fb8f384
--- /dev/null
+++ b/dark-clear.lua
@@ -0,0 +1,50 @@
+-- vis-minimal-theme (https://github.com/erf/vis-minimal-theme)
+-- dark-clear by Erlend Lind Madsen
+
+local black0 = '#000000'
+local black1 = '#383838'
+local black2 = '#686868'
+
+local white0 = '#ffffff'
+local white1 = '#c8c8c8'
+local white2 = '#989898'
+
+local clear0 = '#00000000'
+
+local lexers = vis.lexers
+
+lexers.STYLE_DEFAULT ='back:'..clear0..',fore:'..white0
+lexers.STYLE_NOTHING = 'back:'..black0
+lexers.STYLE_CLASS = 'fore:'..white0
+lexers.STYLE_COMMENT = 'fore:'..black2
+lexers.STYLE_CONSTANT = 'fore:'..white0
+lexers.STYLE_DEFINITION = 'fore:'..white0
+lexers.STYLE_ERROR = 'fore:'..white0
+lexers.STYLE_FUNCTION = 'fore:'..white0
+lexers.STYLE_KEYWORD = 'fore:'..white2
+lexers.STYLE_LABEL = 'fore:'..white0
+lexers.STYLE_NUMBER = 'fore:'..white1
+lexers.STYLE_OPERATOR = 'fore:'..white0
+lexers.STYLE_REGEX = 'fore:'..white1
+lexers.STYLE_STRING = 'fore:'..white1
+lexers.STYLE_PREPROCESSOR = 'fore:'..white0
+lexers.STYLE_TAG = 'fore:'..white0
+lexers.STYLE_TYPE = 'fore:'..white0
+lexers.STYLE_VARIABLE = 'fore:'..white0
+lexers.STYLE_WHITESPACE = ''
+lexers.STYLE_EMBEDDED = 'back:'..black1
+lexers.STYLE_IDENTIFIER = 'fore:'..white0
+
+lexers.STYLE_LINENUMBER = 'fore:'..white1
+lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER
+lexers.STYLE_CURSOR = 'back:'..white2
+lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',fore:'..white1
+lexers.STYLE_CURSOR_LINE = 'underlined'
+lexers.STYLE_COLOR_COLUMN = 'back:'..black1
+lexers.STYLE_SELECTION = 'back:'..black2
+lexers.STYLE_STATUS = 'reverse'
+lexers.STYLE_STATUS_FOCUSED = 'back:'..black1..',fore:'..white1
+lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
+lexers.STYLE_INFO = 'fore:default,back:default'
+lexers.STYLE_EOF = ''
+
diff --git a/clear.lua b/light-clear.lua
index 4a7487f..56d0841 100644
--- a/clear.lua
+++ b/light-clear.lua
@@ -1,5 +1,5 @@
-- vis-minimal-theme (https://github.com/erf/vis-minimal-theme)
--- light by Erlend Lind Madsen
+-- light-clear by Erlend Lind Madsen
local black0 = '#000000'
local black1 = '#383838'