From add97eefd3a85ed63d653ee75f4be0665c03d91f Mon Sep 17 00:00:00 2001 From: Erlend Lind Madsen Date: Wed, 27 Jul 2022 10:36:13 +0200 Subject: add light-clear and dark-clear themes --- README.md | 4 ++-- clear.lua | 50 -------------------------------------------------- dark-clear.lua | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ light-clear.lua | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 102 insertions(+), 52 deletions(-) delete mode 100644 clear.lua create mode 100644 dark-clear.lua create mode 100644 light-clear.lua 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/clear.lua b/clear.lua deleted file mode 100644 index 4a7487f..0000000 --- a/clear.lua +++ /dev/null @@ -1,50 +0,0 @@ --- vis-minimal-theme (https://github.com/erf/vis-minimal-theme) --- light 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:'..black0 -lexers.STYLE_NOTHING = 'back:'..white0 -lexers.STYLE_CLASS = 'fore:'..black0 -lexers.STYLE_COMMENT = 'fore:'..white2 -lexers.STYLE_CONSTANT = 'fore:'..black0 -lexers.STYLE_DEFINITION = 'fore:'..black0 -lexers.STYLE_ERROR = 'fore:'..black0 -lexers.STYLE_FUNCTION = 'fore:'..black0 -lexers.STYLE_KEYWORD = 'fore:'..black2 -lexers.STYLE_LABEL = 'fore:'..black0 -lexers.STYLE_NUMBER = 'fore:'..black1 -lexers.STYLE_OPERATOR = 'fore:'..black0 -lexers.STYLE_REGEX = 'fore:'..black1 -lexers.STYLE_STRING = 'fore:'..black1 -lexers.STYLE_PREPROCESSOR = 'fore:'..black0 -lexers.STYLE_TAG = 'fore:'..black0 -lexers.STYLE_TYPE = 'fore:'..black0 -lexers.STYLE_VARIABLE = 'fore:'..black0 -lexers.STYLE_WHITESPACE = '' -lexers.STYLE_EMBEDDED = 'back:'..white1 -lexers.STYLE_IDENTIFIER = 'fore:'..black0 - -lexers.STYLE_LINENUMBER = 'fore:'..black1 -lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER -lexers.STYLE_CURSOR = 'back:'..white2 -lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',fore:'..black1 -lexers.STYLE_CURSOR_LINE = 'underlined' -lexers.STYLE_COLOR_COLUMN = 'back:'..white1 -lexers.STYLE_SELECTION = 'back:'..white1 -lexers.STYLE_STATUS = 'reverse' -lexers.STYLE_STATUS_FOCUSED = 'back:'..white1..',fore:'..black1 -lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT -lexers.STYLE_INFO = 'fore:default,back:default' -lexers.STYLE_EOF = '' - 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/light-clear.lua b/light-clear.lua new file mode 100644 index 0000000..56d0841 --- /dev/null +++ b/light-clear.lua @@ -0,0 +1,50 @@ +-- vis-minimal-theme (https://github.com/erf/vis-minimal-theme) +-- light-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:'..black0 +lexers.STYLE_NOTHING = 'back:'..white0 +lexers.STYLE_CLASS = 'fore:'..black0 +lexers.STYLE_COMMENT = 'fore:'..white2 +lexers.STYLE_CONSTANT = 'fore:'..black0 +lexers.STYLE_DEFINITION = 'fore:'..black0 +lexers.STYLE_ERROR = 'fore:'..black0 +lexers.STYLE_FUNCTION = 'fore:'..black0 +lexers.STYLE_KEYWORD = 'fore:'..black2 +lexers.STYLE_LABEL = 'fore:'..black0 +lexers.STYLE_NUMBER = 'fore:'..black1 +lexers.STYLE_OPERATOR = 'fore:'..black0 +lexers.STYLE_REGEX = 'fore:'..black1 +lexers.STYLE_STRING = 'fore:'..black1 +lexers.STYLE_PREPROCESSOR = 'fore:'..black0 +lexers.STYLE_TAG = 'fore:'..black0 +lexers.STYLE_TYPE = 'fore:'..black0 +lexers.STYLE_VARIABLE = 'fore:'..black0 +lexers.STYLE_WHITESPACE = '' +lexers.STYLE_EMBEDDED = 'back:'..white1 +lexers.STYLE_IDENTIFIER = 'fore:'..black0 + +lexers.STYLE_LINENUMBER = 'fore:'..black1 +lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER +lexers.STYLE_CURSOR = 'back:'..white2 +lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',fore:'..black1 +lexers.STYLE_CURSOR_LINE = 'underlined' +lexers.STYLE_COLOR_COLUMN = 'back:'..white1 +lexers.STYLE_SELECTION = 'back:'..white1 +lexers.STYLE_STATUS = 'reverse' +lexers.STYLE_STATUS_FOCUSED = 'back:'..white1..',fore:'..black1 +lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT +lexers.STYLE_INFO = 'fore:default,back:default' +lexers.STYLE_EOF = '' + -- cgit