This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18552 from ryanolsonx/migrate-solarized-light-syn…
…tax-package ➡ Migrate core package 'solarized-light-syntax
- Loading branch information
Showing
24 changed files
with
1,095 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2014 GitHub Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Solarized Light Syntax theme | ||
|
||
Atom theme using the ever popular light [solarized](http://ethanschoonover.com/solarized) colors. | ||
|
||
<img alt="screenshot" src="https://cloud.githubusercontent.com/assets/378023/12602186/87edab3e-c4ea-11e5-8f4a-4b7defda283b.png" srcset="https://cloud.githubusercontent.com/assets/378023/12602177/78d568da-c4ea-11e5-836d-e922ca5c850a.png 2x"> | ||
|
||
This theme is installed by default with Atom and can be activated by going to | ||
the _Themes_ section in the Settings view (`cmd-,`) and selecting it from the | ||
_Syntax Themes_ dropdown menu. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Solarized Syntax Theme | ||
|
||
@import "styles/syntax-variables.less"; | ||
|
||
// Editor | ||
@import "styles/editor.less"; | ||
|
||
// Languages | ||
@import "styles/syntax/_base.less"; | ||
@import "styles/syntax/c.less"; | ||
@import "styles/syntax/coffee.less"; | ||
@import "styles/syntax/css.less"; | ||
@import "styles/syntax/go.less"; | ||
@import "styles/syntax/java.less"; | ||
@import "styles/syntax/javascript.less"; | ||
@import "styles/syntax/markdown.less"; | ||
@import "styles/syntax/markup.less"; | ||
@import "styles/syntax/php.less"; | ||
@import "styles/syntax/python.less"; | ||
@import "styles/syntax/ruby.less"; | ||
@import "styles/syntax/scala.less"; | ||
@import "styles/syntax/typescript.less"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "solarized-light-syntax", | ||
"theme": "syntax", | ||
"version": "1.3.0", | ||
"description": "A light syntax theme using the solarized colors", | ||
"repository": "https://github.com/atom/atom", | ||
"license": "MIT", | ||
"engines": { | ||
"atom": ">0.50.0" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
// Solarized color scheme | ||
// http://ethanschoonover.com/solarized#the-values | ||
|
||
// Background/Foreground Tones | ||
@base03: #002b36; | ||
@base02: #073642; | ||
|
||
// Content Tones | ||
@base01: #586e75; | ||
@base00: #657b83; | ||
@base0: #839496; | ||
@base1: #93a1a1; | ||
|
||
// Background/Foreground Tones | ||
@base2: #eee8d5; | ||
@base3: #fdf6e3; | ||
|
||
// Accent Colors | ||
@yellow: #b58900; | ||
@orange: #cb4b16; | ||
@red: #dc322f; | ||
@magenta: #d33682; | ||
@violet: #6c71c4; | ||
@blue: #268bd2; | ||
@cyan: #2aa198; | ||
@green: #859900; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
atom-text-editor { | ||
color: @syntax-text-color; | ||
background-color: @syntax-background-color; | ||
|
||
.gutter { | ||
color: @syntax-gutter-text-color; | ||
background-color: @syntax-gutter-background-color; | ||
|
||
.line-number { | ||
&.cursor-line { | ||
background-color: @syntax-gutter-background-color-selected; | ||
} | ||
} | ||
} | ||
|
||
.invisible-character { | ||
color: @syntax-invisible-character-color; | ||
} | ||
|
||
.indent-guide { | ||
color: @syntax-indent-guide-color; | ||
} | ||
|
||
.cursor { | ||
border-color: @syntax-cursor-color; | ||
} | ||
|
||
.cursor-line { | ||
background-color: @syntax-cursor-line; | ||
} | ||
|
||
.selection .region { | ||
background-color: @syntax-selection-color; | ||
} | ||
|
||
.fold-marker:after, | ||
.gutter .line-number.folded { | ||
color: @magenta; | ||
} | ||
|
||
.bracket-matcher .region { | ||
border-color: @magenta; | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
packages/solarized-light-syntax/styles/syntax-variables.less
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@import "colors.less"; | ||
|
||
// This defines all syntax variables that syntax themes must implement when they | ||
// include a syntax-variables.less file. | ||
|
||
// General colors | ||
@syntax-text-color: @base00; | ||
@syntax-cursor-color: @base03; | ||
@syntax-selection-color: @base2; | ||
@syntax-selection-flash-color: @base0; | ||
@syntax-background-color: @base3; | ||
|
||
// Guide colors | ||
@syntax-wrap-guide-color: darken(@base2, 12%); | ||
@syntax-indent-guide-color: darken(@base2, 12%); | ||
@syntax-invisible-character-color: darken(@base2, 12%); | ||
|
||
// For find and replace markers | ||
@syntax-result-marker-color: @base1; | ||
@syntax-result-marker-color-selected: @base03; | ||
|
||
// Gutter colors | ||
@syntax-gutter-text-color: @base00; | ||
@syntax-gutter-text-color-selected: @base03; | ||
@syntax-gutter-background-color: @base2; | ||
@syntax-gutter-background-color-selected: darken(@syntax-gutter-background-color, 10%); | ||
|
||
// For git diff info. i.e. in the gutter | ||
@syntax-color-added: @green; | ||
@syntax-color-renamed: @blue; | ||
@syntax-color-modified: @yellow; | ||
@syntax-color-removed: @red; | ||
|
||
// For language entity colors | ||
@syntax-color-variable: @blue; | ||
@syntax-color-constant: @yellow; | ||
@syntax-color-property: @yellow; | ||
@syntax-color-value: @cyan; | ||
@syntax-color-function: @blue; | ||
@syntax-color-method: @blue; | ||
@syntax-color-class: @blue; | ||
@syntax-color-keyword: @green; | ||
@syntax-color-tag: @blue; | ||
@syntax-color-attribute: @syntax-comment-color; | ||
@syntax-color-import: @red; | ||
@syntax-color-snippet: @syntax-color-keyword; | ||
|
||
|
||
// Custom variables | ||
// Warning: Don't use in packages | ||
|
||
@syntax-comment-color: @base1; | ||
@syntax-subtle-color: @base00; | ||
@syntax-emphasized-color: @base01; | ||
@syntax-cursor-line: fade(darken(@syntax-background-color, 30%), 15%); // needs to be semi-transparent |
100 changes: 100 additions & 0 deletions
100
packages/solarized-light-syntax/styles/syntax/_base.less
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
.syntax--comment { | ||
color: @syntax-comment-color; | ||
font-style: italic; | ||
|
||
.syntax--markup.syntax--link { | ||
color: @syntax-comment-color; | ||
} | ||
} | ||
|
||
.syntax--string { | ||
color: @cyan; | ||
&.syntax--regexp { | ||
color: @red; | ||
} | ||
} | ||
|
||
.syntax--constant { | ||
&.syntax--numeric { | ||
color: @magenta; | ||
} | ||
&.syntax--language { | ||
color: @yellow; | ||
} | ||
&.syntax--character, | ||
&.syntax--other, | ||
&.syntax--support { | ||
color: @orange; | ||
} | ||
} | ||
|
||
.syntax--variable { | ||
color: @blue; | ||
} | ||
|
||
.syntax--keyword { | ||
color: @green; | ||
} | ||
|
||
.syntax--storage { | ||
color: @green; | ||
} | ||
|
||
.syntax--meta.syntax--class { | ||
color: @blue; | ||
} | ||
|
||
.syntax--entity { | ||
&.syntax--name { | ||
&.syntax--class, | ||
&.syntax--function, | ||
&.syntax--section, | ||
&.syntax--type { | ||
color: @blue; | ||
} | ||
} | ||
&.syntax--other.syntax--attribute-name { | ||
color: @syntax-subtle-color; | ||
} | ||
} | ||
|
||
.syntax--support { | ||
&.syntax--function { | ||
color: @blue; | ||
&.syntax--builtin { | ||
color: @green; | ||
} | ||
} | ||
&.syntax--type, | ||
&.syntax--class { | ||
color: @green; | ||
} | ||
} | ||
|
||
.syntax--tag { | ||
&.syntax--entity.syntax--name { | ||
color: @blue; | ||
} | ||
&.syntax--punctuation.syntax--definition { | ||
&.syntax--html, | ||
&.syntax--begin, | ||
&.syntax--end { | ||
color: @syntax-comment-color; | ||
} | ||
} | ||
} | ||
|
||
.syntax--invalid { | ||
&.syntax--deprecated { | ||
color: @yellow; | ||
text-decoration: underline; | ||
} | ||
&.syntax--illegal { | ||
color: @red; | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
.syntax--none { | ||
color: @syntax-text-color; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.syntax--source.syntax--c, | ||
.syntax--source.syntax--cpp { | ||
.syntax--meta.syntax--preprocessor { | ||
color: @red; | ||
} | ||
.syntax--keyword.syntax--control.syntax--directive { | ||
color: @orange; | ||
} | ||
.syntax--punctuation.syntax--string { | ||
color: @cyan; | ||
} | ||
.syntax--constant { | ||
color: @orange; | ||
|
||
&.syntax--numeric, &.syntax--language.syntax--c { | ||
color: @cyan; | ||
} | ||
} | ||
.syntax--storage { | ||
color: @yellow; | ||
} | ||
.syntax--entity { | ||
color: @syntax-text-color; | ||
|
||
&.syntax--name.syntax--function.syntax--preprocessor { | ||
color: @red; | ||
} | ||
} | ||
.syntax--support.syntax--type { | ||
color: @yellow; | ||
|
||
&.syntax--posix-reserved { | ||
color: @syntax-text-color; | ||
} | ||
} | ||
.syntax--variable { | ||
&.syntax--other.syntax--dot-access { | ||
color: @syntax-text-color; | ||
} | ||
&.syntax--parameter.syntax--preprocessor { | ||
color: @red; | ||
} | ||
} | ||
} |
Oops, something went wrong.