Skip to content

Commit

Permalink
Update to the new syntax-colors
Browse files Browse the repository at this point in the history
  • Loading branch information
benogle committed Mar 1, 2014
1 parent 81813d5 commit 2af5a6d
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 14 deletions.
39 changes: 25 additions & 14 deletions index.less
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
@import 'syntax-variables';

.editor-colors {
background-color: #1d1f21;
color: #c5c8c6;
background-color: @syntax-background-color;
color: @syntax-text-color;
}

.editor {
.invisible-character,
.invisible-character {
color: @syntax-invisible-character-color;
}

.indent-guide {
color: rgba(197, 200, 198, .2);
color: @syntax-indent-guide-color;
}

.wrap-guide {
background-color: rgba(197, 200, 198, .1);
background-color: @syntax-wrap-guide-color;
}

.gutter {
background-color: @syntax-gutter-background-color;
}
.gutter .cursor-line {
background-color: @syntax-gutter-background-color-selected;
}
.line-number.cursor-line-no-selection {
background-color: @syntax-gutter-background-color-selected;
}

.gutter .line-number.folded,
Expand All @@ -20,19 +35,15 @@
}

.invisible {
color: #c5c8c6;
color: @syntax-text-color;
}

.cursor {
border-color: #FFFFFF;
border-color: @syntax-cursor-color;
}

.selection .region {
background-color: #444444;
}

.line-number.cursor-line-no-selection {
background-color: rgba(255, 255, 255, 0.14);
background-color: @syntax-selection-color;
}

// Markdown Styles
Expand Down Expand Up @@ -92,11 +103,11 @@

.search-results .marker .region {
background-color: transparent;
border: 1px solid #ddd;
border: 1px solid @syntax-result-marker-color;
}

.search-results .marker.current-result .region {
border: 1px solid #0d0;
border: 1px solid @syntax-result-marker-color-selected;
}
}

Expand Down
26 changes: 26 additions & 0 deletions stylesheets/syntax-variables.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
// This file has fallback variables. It specifies all syntax variables that
// themes must implement if they include a syntax-variables.less file.

// General colors
@syntax-text-color: #c5c8c6;
@syntax-cursor-color: white;
@syntax-selection-color: #444444;
@syntax-background-color: #1d1f21;

// Guide colors
@syntax-wrap-guide-color: rgba(197, 200, 198, .1);
@syntax-indent-guide-color: rgba(197, 200, 198, .2);
@syntax-invisible-character-color: rgba(197, 200, 198, .2);

// For find and replace markers
@syntax-result-marker-color: #888;
@syntax-result-marker-color-selected: white;

// Gutter colors
@syntax-gutter-text-color: @syntax-text-color;
@syntax-gutter-text-color-selected: @syntax-gutter-text-color;
@syntax-gutter-background-color: lighten(@syntax-background-color, 5%);
@syntax-gutter-background-color-selected: rgba(255, 255, 255, 0.14);

// For git diff info. i.e. in the gutter
@syntax-color-renamed: #96CBFE;
@syntax-color-added: #A8FF60;
@syntax-color-modified: #E9C062;
@syntax-color-removed: #CC6666;

0 comments on commit 2af5a6d

Please sign in to comment.