aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrxi <rxi@users.noreply.github.com>2020-04-26 13:48:43 +0100
committerrxi <rxi@users.noreply.github.com>2020-04-26 13:48:43 +0100
commit71e39904f39edc63c5b5611369a02f94ed578b23 (patch)
tree6766603384a871e58ac63cda14b1131662554475
parent98f8f42a41aaf63619686efd9e5d7d11a615a216 (diff)
downloadlite-xl-colors-71e39904f39edc63c5b5611369a02f94ed578b23.tar.gz
lite-xl-colors-71e39904f39edc63c5b5611369a02f94ed578b23.zip
Added color theme `github`
-rw-r--r--README.md3
-rw-r--r--colors/github.lua31
2 files changed, 33 insertions, 1 deletions
diff --git a/README.md b/README.md
index e8bb24e..ffccb52 100644
--- a/README.md
+++ b/README.md
@@ -19,4 +19,5 @@ Theme | Preview
Theme | Preview
------|-----------------------------------------
---- | ---
+[`github`](colors/github.lua?raw=1) | ![github_preview](https://user-images.githubusercontent.com/3920290/80308013-800e9300-87c4-11ea-88a7-1f56104a7423.png)
+
diff --git a/colors/github.lua b/colors/github.lua
new file mode 100644
index 0000000..c2ba66c
--- /dev/null
+++ b/colors/github.lua
@@ -0,0 +1,31 @@
+local style = require "core.style"
+local common = require "core.common"
+
+-- GitHubs style varies from language to language so its hard to get perfect
+-- Originally written by thebirk, 2019
+
+style.background = { common.color "#fbfbfb" }
+style.background2 = { common.color "#f2f2f2" }
+style.background3 = { common.color "#f2f2f2" }
+style.text = { common.color "#404040" }
+style.caret = { common.color "#181818" }
+style.accent = { common.color "#0366d6" }
+style.dim = { common.color "#b0b0b0" }
+style.divider = { common.color "#e8e8e8" }
+style.selection = { common.color "#b7dce8" }
+style.line_number = { common.color "#d0d0d0" }
+style.line_number2 = { common.color "#808080" }
+style.line_highlight = { common.color "#f2f2f2" }
+style.scrollbar = { common.color "#e0e0e0" }
+style.scrollbar2 = { common.color "#c0c0c0" }
+
+style.syntax["normal"] = { common.color "#24292e" }
+style.syntax["symbol"] = { common.color "#24292e" }
+style.syntax["comment"] = { common.color "#6a737d" }
+style.syntax["keyword"] = { common.color "#d73a49" }
+style.syntax["keyword2"] = { common.color "#d73a49" }
+style.syntax["number"] = { common.color "#005cc5" }
+style.syntax["literal"] = { common.color "#005cc5" }
+style.syntax["string"] = { common.color "#032f62" }
+style.syntax["operator"] = { common.color "#d73a49" }
+style.syntax["function"] = { common.color "#005cc5" }