Last active
August 29, 2015 14:15
-
-
Save thejeshgn/270de0b8198563539878 to your computer and use it in GitHub Desktop.
My modified lua theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Monokai theme for Textadept | |
-- Theme author: Wimer Hazenberg (http://www.monokai.nl) | |
-- Base16 (https://github.com/chriskempson/base16) | |
-- Build with Base16 Builder (https://github.com/chriskempson/base16-builder) | |
-- Original Repository: https://github.com/rgieseke/ta-themes | |
-- Theme: http://chriskempson.github.io/base16/#monokai | |
-- Modified Repository: https://gist.github.com/thejeshgn/270de0b8198563539878/ | |
-- Font: http://www.marksimonson.com/fonts/view/anonymous-pro | |
local buffer = buffer | |
local property, property_int = buffer.property, buffer.property_int | |
property['color.base00'] = 0x222827 | |
property['color.base01'] = 0x303838 | |
property['color.base02'] = 0x3e4849 | |
property['color.base03'] = 0x5e7175 | |
property['color.base04'] = 0x859fa5 | |
property['color.base05'] = 0xf2f8f8 | |
property['color.base06'] = 0xf1f4f5 | |
property['color.base07'] = 0xf5f8f9 | |
property['color.base08'] = 0x7226f9 | |
property['color.base09'] = 0x1f97fd | |
property['color.base0A'] = 0x75bff4 | |
property['color.base0B'] = 0x2ee2a6 | |
property['color.base0C'] = 0xe4efa1 | |
property['color.base0D'] = 0xefd966 | |
property['color.base0E'] = 0xff81ae | |
property['color.base0F'] = 0x3366cc | |
-- Default font. | |
property['font'], property['fontsize'] = 'Anonymous Pro', 14 | |
-- Predefined styles. | |
property['style.default'] = 'font:%(font),size:%(fontsize),'..'fore:%(color.base05),back:%(color.base00)' | |
property['style.linenumber'] = 'fore:%(color.base03),back:%(color.base00)' | |
property['style.bracelight'] = 'fore:%(color.base0C),underlined' | |
property['style.bracebad'] = 'fore:%(color.base08)' | |
property['style.controlchar'] = '%(style.nothing)' | |
property['style.indentguide'] = 'fore:%(color.base03)' | |
property['style.calltip'] = 'fore:%(color.base02),back:%(color.base07)' | |
-- Token styles. | |
property['style.class'] = 'fore:%(color.base0A)' | |
property['style.comment'] = 'fore:%(color.base03)' | |
property['style.constant'] = 'fore:%(color.base09)' | |
property['style.embedded'] = 'fore:%(color.base0F),back:%(color.base06)' | |
property['style.error'] = 'fore:%(color.base08),italics' | |
property['style.function'] = 'fore:%(color.base09)' | |
property['style.identifier'] = '' | |
property['style.keyword'] = 'fore:%(color.base08)' --'fore:%(color.base0D)' | |
property['style.label'] = 'fore:%(color.base09)' | |
property['style.number'] = 'fore:%(color.base0C)' | |
property['style.operator'] = 'fore:%(color.base0E)' | |
property['style.preprocessor'] = 'fore:%(color.base0A)' | |
property['style.regex'] = 'fore:%(color.base0C)' | |
property['style.string'] = 'fore:%(color.base0B)' | |
property['style.type'] = 'fore:%(color.base0E)' | |
property['style.variable'] = 'fore:%(color.base0D)' | |
property['style.whitespace'] = '' | |
-- Multiple Selection and Virtual Space. | |
--buffer.additional_sel_alpha = | |
--buffer.additional_sel_fore = | |
--buffer.additional_sel_back = | |
--buffer.additional_caret_fore = | |
-- Caret and Selection Styles. | |
buffer:set_sel_fore(true, property_int['color.base00']) | |
buffer:set_sel_back(true, property_int['color.base04']) | |
--buffer.sel_alpha = | |
buffer.caret_fore = property_int['color.base07'] | |
buffer.caret_line_back = property_int['color.base01'] | |
--buffer.caret_line_back_alpha = | |
-- Fold Margin. | |
buffer:set_fold_margin_colour(true, property_int['color.base00']) | |
buffer:set_fold_margin_hi_colour(true, property_int['color.base00']) | |
-- Markers. | |
local MARK_BOOKMARK, t_run = textadept.bookmarks.MARK_BOOKMARK, textadept.run | |
--buffer.marker_fore[MARK_BOOKMARK] = property_int['color.base05'] | |
buffer.marker_back[MARK_BOOKMARK] = property_int['color.base0D'] | |
--buffer.marker_fore[t_run.MARK_WARNING] = property_int['color.base05'] | |
buffer.marker_back[t_run.MARK_WARNING] = property_int['color.base0A'] | |
--buffer.marker_fore[t_run.MARK_ERROR] = property_int['color.base05'] | |
buffer.marker_back[t_run.MARK_ERROR] = property_int['color.base08'] | |
for i = 25, 31 do -- fold margin markers | |
buffer.marker_fore[i] = property_int['color.base00'] | |
buffer.marker_back[i] = property_int['color.base03'] | |
buffer.marker_back_selected[i] = property_int['color.base02'] | |
end | |
-- Indicators. | |
local INDIC_BRACEMATCH = textadept.editing.INDIC_BRACEMATCH | |
buffer.indic_fore[INDIC_BRACEMATCH] = property_int['color.base06'] | |
local INDIC_HIGHLIGHT = textadept.editing.INDIC_HIGHLIGHT | |
buffer.indic_fore[INDIC_HIGHLIGHT] = property_int['color.base0F'] | |
buffer.indic_alpha[INDIC_HIGHLIGHT] = 255 | |
-- Long Lines. | |
buffer.edge_colour = property_int['color.base01'] | |
-- Add red and green for diff lexer. | |
property['color.red'] = property['color.base08'] | |
property['color.green'] = property['color.base0B'] | |
-- Other settings | |
buffer.view_ws = buffer.WS_VISIBLEALWAYS | |
buffer.use_tabs = true | |
buffer.wrap_visual_flags = buffer.WRAPVISUALFLAGLOC_START_BY_TEXT | |
buffer.wrap_mode = buffer.WRAP_WHITESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
.base00-background { background-color: #272822; } | |
.base01-background { background-color: #383830; } | |
.base02-background { background-color: #49483e; } | |
.base03-background { background-color: #75715e; } | |
.base04-background { background-color: #a59f85; } | |
.base05-background { background-color: #f8f8f2; } | |
.base06-background { background-color: #f5f4f1; } | |
.base07-background { background-color: #f9f8f5; } | |
.base08-background { background-color: #f92672; } | |
.base09-background { background-color: #fd971f; } | |
.base0A-background { background-color: #f4bf75; } | |
.base0B-background { background-color: #a6e22e; } | |
.base0C-background { background-color: #a1efe4; } | |
.base0D-background { background-color: #66d9ef; } | |
.base0E-background { background-color: #ae81ff; } | |
.base0F-background { background-color: #cc6633; } | |
.base00 { color: #272822; } | |
.base01 { color: #383830; } | |
.base02 { color: #49483e; } | |
.base03 { color: #75715e; } | |
.base04 { color: #a59f85; } | |
.base05 { color: #f8f8f2; } | |
.base06 { color: #f5f4f1; } | |
.base07 { color: #f9f8f5; } | |
.base08 { color: #f92672; } | |
.base09 { color: #fd971f; } | |
.base0A { color: #f4bf75; } | |
.base0B { color: #a6e22e; } | |
.base0C { color: #a1efe4; } | |
.base0D { color: #66d9ef; } | |
.base0E { color: #ae81ff; } | |
.base0F { color: #cc6633; } | |
</style> | |
</head> | |
<body> | |
<div> | |
<div class="block base00-background base07">00</div> | |
<div class="block base01-background base07">01</div> | |
<div class="block base02-background base07">02</div> | |
<div class="block base03-background base07">03</div> | |
<div class="block base04-background base00">04</div> | |
<div class="block base05-background base00">05</div> | |
<div class="block base06-background base00">06</div> | |
<div class="block base07-background base00">07</div> | |
<br> | |
<div class="block base08-background base07">08</div> | |
<div class="block base09-background base07">09</div> | |
<div class="block base0A-background base07">0A</div> | |
<div class="block base0B-background base07">0B</div> | |
<div class="block base0C-background base07">0C</div> | |
<div class="block base0D-background base07">0D</div> | |
<div class="block base0E-background base07">0E</div> | |
<div class="block base0F-background base07">0F</div> | |
</div> | |
</body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment