Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new naming conventions for syntax scopes #113

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
223 changes: 4 additions & 219 deletions index.less
Original file line number Diff line number Diff line change
@@ -1,221 +1,6 @@
@import 'syntax-variables';
@import "styles/syntax-variables.less";

atom-text-editor {
background-color: @syntax-background-color;
color: @syntax-text-color;
@import "styles/editor.less";
@import "styles/syntax-legacy/_base.less";

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

.indent-guide {
color: @syntax-indent-guide-color;
}

.wrap-guide {
background-color: @syntax-wrap-guide-color;
}

.gutter {
background-color: @syntax-gutter-background-color;
}

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

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

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

.selection .region {
background-color: @syntax-selection-color;
}

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

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

.syntax--gfm {
.syntax--markup {
&.syntax--heading {
color: @green;
font-weight: bold;
}

&.syntax--underline {
color: @yellow;
text-decoration: underline;
}
}

.syntax--bold {
font-weight: bold;
}

.syntax--italic {
font-style: italic;
}

.syntax--raw {
color: @blue;
}

.syntax--variable.syntax--list {
color: @pink;
font-weight: bold;
}

.syntax--link {
color: @light-gray;

.syntax--entity {
color: @purple;
}
}
}
}

.syntax--comment {
color: @brown;
}

.syntax--constant {
&.syntax--character,
&.syntax--language,
&.syntax--numeric,
&.syntax--other {
color: @purple;
}
}

.syntax--entity {
&.syntax--name.syntax--class {
text-decoration: none;
color: @green;
}

&.syntax--name.syntax--function {
color: @green;
}

&.syntax--name.syntax--instance {
color: @blue;
}

&.syntax--name.syntax--tag {
color: @pink;
}

&.syntax--other.syntax--attribute-name {
color: @green;
}

&.syntax--other.syntax--inherited-class {
font-style: italic;
text-decoration: none;
color: @green;
}
}

.syntax--invalid {
color: @ghost-white;
background-color: @pink;

&.syntax--deprecated {
background-color: @purple;
}
}

.syntax--keyword {
color: @pink !important;
}

.syntax--meta.syntax--tag {
color: @syntax-text-color;
}

.syntax--storage {
color: @pink;

&.syntax--type {
font-style: italic;
color: @blue;
}
}

.syntax--string {
color: @yellow;
}

.syntax--support {
&.syntax--constant,
&.syntax--function {
color: @blue;
}

&.syntax--class,
&.syntax--type {
font-style: italic;
color: @blue;
}
}

.syntax--variable {
&.syntax--parameter {
font-style: italic;
color: @orange;
}

// 'self' Python
&.syntax--language.syntax--python,
// 'this' Javascript
&.syntax--language.syntax--js {
color: @pink;
}
}

// Jade syntax
.syntax--class.syntax--jade {
color: @purple;
}

.syntax--js {
.syntax--template {
.syntax--element {
.syntax--quasi.syntax--begin, .syntax--quasi.syntax--end, .syntax--language {
color: @pink;
}

.syntax--variable, .syntax--brace, .syntax--comma {
color: @syntax-text-color;
}

.syntax--constant {
color: @purple;
}
}
}
}

.syntax--json {
.syntax--key {
.syntax--string,
&.syntax--string.syntax--quoted.syntax--double.syntax--dictionary {
color: @green;
}
}
.syntax--markup.syntax--underline.syntax--link {
color: @blue;
text-decoration: underline;
}
}
@import "styles/syntax/base.less";
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"version": "0.28.0",
"private": true,
"description": "A monokai theme",
"keywords": [
"syntax",
"theme"
],
"repository": "https://github.com/kevinsawicki/monokai",
"license": "MIT",
"engines": {
Expand Down
59 changes: 59 additions & 0 deletions styles/editor.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
atom-text-editor {
background-color: @syntax-background-color;
color: @syntax-text-color;

.wrap-guide {
background-color: @syntax-wrap-guide-color;
}

.indent-guide {
color: @syntax-indent-guide-color;
}

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

.gutter {
background-color: @syntax-gutter-background-color;
color: @syntax-gutter-text-color;

.line-number {
&.cursor-line {
background-color: @syntax-gutter-background-color-selected;
color: @syntax-gutter-text-color-selected;
}

&.cursor-line-no-selection {
color: @syntax-gutter-text-color-selected;
}
}
}

.gutter .line-number.folded,
.gutter .line-number:after,
.fold-marker:after {
color: @light-gray;
}

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

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

.selection .region {
background-color: @syntax-selection-color;
}

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

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