From 935d33e3939b129dba2919ba9db6e958cf99f8a0 Mon Sep 17 00:00:00 2001 From: Ryan Olson Date: Thu, 6 Dec 2018 16:37:20 -0700 Subject: [PATCH] :arrow_right: Migrate core package 'solarized-dark-syntax' into ./packages --- package-lock.json | 3 +- package.json | 4 +- packages/README.md | 3 +- packages/solarized-dark-syntax/LICENSE.md | 20 +++ packages/solarized-dark-syntax/README.md | 9 ++ packages/solarized-dark-syntax/index.less | 22 +++ packages/solarized-dark-syntax/package.json | 11 ++ .../solarized-dark-syntax/styles/colors.less | 27 ++++ .../solarized-dark-syntax/styles/editor.less | 44 ++++++ .../styles/syntax-variables.less | 55 ++++++++ .../styles/syntax/_base.less | 100 ++++++++++++++ .../styles/syntax/c.less | 44 ++++++ .../styles/syntax/coffee.less | 58 ++++++++ .../styles/syntax/css.less | 63 +++++++++ .../styles/syntax/go.less | 10 ++ .../styles/syntax/java.less | 47 +++++++ .../styles/syntax/javascript.less | 128 +++++++++++++++++ .../styles/syntax/markdown.less | 26 ++++ .../styles/syntax/markup.less | 30 ++++ .../styles/syntax/php.less | 67 +++++++++ .../styles/syntax/python.less | 100 ++++++++++++++ .../styles/syntax/ruby.less | 129 ++++++++++++++++++ .../styles/syntax/scala.less | 79 +++++++++++ .../styles/syntax/typescript.less | 22 +++ 24 files changed, 1095 insertions(+), 6 deletions(-) create mode 100644 packages/solarized-dark-syntax/LICENSE.md create mode 100644 packages/solarized-dark-syntax/README.md create mode 100644 packages/solarized-dark-syntax/index.less create mode 100644 packages/solarized-dark-syntax/package.json create mode 100644 packages/solarized-dark-syntax/styles/colors.less create mode 100644 packages/solarized-dark-syntax/styles/editor.less create mode 100644 packages/solarized-dark-syntax/styles/syntax-variables.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/_base.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/c.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/coffee.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/css.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/go.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/java.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/javascript.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/markdown.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/markup.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/php.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/python.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/ruby.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/scala.less create mode 100644 packages/solarized-dark-syntax/styles/syntax/typescript.less diff --git a/package-lock.json b/package-lock.json index ed94beac31e..f7963028b1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5064,8 +5064,7 @@ } }, "solarized-dark-syntax": { - "version": "https://www.atom.io/api/packages/solarized-dark-syntax/versions/1.3.0/tarball", - "integrity": "sha512-2X4Df16sQqna8dmpWnpk2FoL346cXW34Vk2JKJY23fYYCH3t16mGl9G9URB7+S2x+/WmeCjdwIQSMsGvBf/95g==" + "version": "file:packages/solarized-dark-syntax" }, "solarized-light-syntax": { "version": "https://www.atom.io/api/packages/solarized-light-syntax/versions/1.3.0/tarball", diff --git a/package.json b/package.json index fd97428073e..a63c86b33c2 100644 --- a/package.json +++ b/package.json @@ -148,7 +148,7 @@ "settings-view": "https://www.atom.io/api/packages/settings-view/versions/0.257.3/tarball", "sinon": "1.17.4", "snippets": "https://www.atom.io/api/packages/snippets/versions/1.4.0/tarball", - "solarized-dark-syntax": "https://www.atom.io/api/packages/solarized-dark-syntax/versions/1.3.0/tarball", + "solarized-dark-syntax": "file:packages/solarized-dark-syntax", "solarized-light-syntax": "https://www.atom.io/api/packages/solarized-light-syntax/versions/1.3.0/tarball", "spell-check": "https://www.atom.io/api/packages/spell-check/versions/0.74.2/tarball", "status-bar": "https://www.atom.io/api/packages/status-bar/versions/1.8.15/tarball", @@ -181,7 +181,7 @@ "one-light-ui": "file:./packages/one-light-ui", "one-dark-syntax": "file:./packages/one-dark-syntax", "one-light-syntax": "file:./packages/one-light-syntax", - "solarized-dark-syntax": "1.3.0", + "solarized-dark-syntax": "file:./packages/solarized-dark-syntax", "solarized-light-syntax": "1.3.0", "about": "file:./packages/about", "archive-view": "0.65.1", diff --git a/packages/README.md b/packages/README.md index 800ba55c62a..87fed9e8bf3 100644 --- a/packages/README.md +++ b/packages/README.md @@ -87,7 +87,7 @@ See [RFC 003](https://github.com/atom/atom/blob/master/docs/rfcs/003-consolidate | **package-generator** | [`atom/package-generator`][package-generator] | [#18279](https://github.com/atom/atom/issues/18279) | | **settings-view** | [`atom/settings-view`][settings-view] | | | **snippets** | [`atom/snippets`][snippets] | | -| **solarized-dark-syntax** | [`atom/solarized-dark-syntax`][solarized-dark-syntax] | [#18280](https://github.com/atom/atom/issues/18280) | +| **solarized-dark-syntax** | [`./solarized-dark-syntax`](./solarized-dark-syntax) | [#18280](https://github.com/atom/atom/issues/18280) | | **solarized-light-syntax** | [`atom/solarized-light-syntax`][solarized-light-syntax] | [#18281](https://github.com/atom/atom/issues/18281) | | **spell-check** | [`atom/spell-check`][spell-check] | | | **status-bar** | [`atom/status-bar`][status-bar] | [#18282](https://github.com/atom/atom/issues/18282) | @@ -158,7 +158,6 @@ See [RFC 003](https://github.com/atom/atom/blob/master/docs/rfcs/003-consolidate [package-generator]: https://github.com/atom/package-generator [settings-view]: https://github.com/atom/settings-view [snippets]: https://github.com/atom/snippets -[solarized-dark-syntax]: https://github.com/atom/solarized-dark-syntax [solarized-light-syntax]: https://github.com/atom/solarized-light-syntax [spell-check]: https://github.com/atom/spell-check [status-bar]: https://github.com/atom/status-bar diff --git a/packages/solarized-dark-syntax/LICENSE.md b/packages/solarized-dark-syntax/LICENSE.md new file mode 100644 index 00000000000..4d231b4563b --- /dev/null +++ b/packages/solarized-dark-syntax/LICENSE.md @@ -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. diff --git a/packages/solarized-dark-syntax/README.md b/packages/solarized-dark-syntax/README.md new file mode 100644 index 00000000000..e9092d48e8a --- /dev/null +++ b/packages/solarized-dark-syntax/README.md @@ -0,0 +1,9 @@ +# Solarized Dark Syntax theme + +Atom theme using the ever popular dark [solarized](http://ethanschoonover.com/solarized) colors. + +screenshot + +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. diff --git a/packages/solarized-dark-syntax/index.less b/packages/solarized-dark-syntax/index.less new file mode 100644 index 00000000000..3c3a0755a60 --- /dev/null +++ b/packages/solarized-dark-syntax/index.less @@ -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"; diff --git a/packages/solarized-dark-syntax/package.json b/packages/solarized-dark-syntax/package.json new file mode 100644 index 00000000000..ae41754ae37 --- /dev/null +++ b/packages/solarized-dark-syntax/package.json @@ -0,0 +1,11 @@ +{ + "name": "solarized-dark-syntax", + "theme": "syntax", + "version": "1.3.0", + "description": "A dark syntax theme using the solarized colors", + "repository": "https://github.com/atom/atom", + "license": "MIT", + "engines": { + "atom": ">0.50.0" + } +} diff --git a/packages/solarized-dark-syntax/styles/colors.less b/packages/solarized-dark-syntax/styles/colors.less new file mode 100644 index 00000000000..93050c438dc --- /dev/null +++ b/packages/solarized-dark-syntax/styles/colors.less @@ -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; diff --git a/packages/solarized-dark-syntax/styles/editor.less b/packages/solarized-dark-syntax/styles/editor.less new file mode 100644 index 00000000000..d46a53781ef --- /dev/null +++ b/packages/solarized-dark-syntax/styles/editor.less @@ -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; + } +} diff --git a/packages/solarized-dark-syntax/styles/syntax-variables.less b/packages/solarized-dark-syntax/styles/syntax-variables.less new file mode 100644 index 00000000000..2f3a5d0197d --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax-variables.less @@ -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: @base0; +@syntax-cursor-color: @base3; +@syntax-selection-color: lighten(@base02, 1%); +@syntax-selection-flash-color: @base1; +@syntax-background-color: @base03; + +// Guide colors +@syntax-wrap-guide-color: lighten(@base02, 6%); +@syntax-indent-guide-color: lighten(@base02, 6%); +@syntax-invisible-character-color: lighten(@base02, 6%); + +// For find and replace markers +@syntax-result-marker-color: @cyan; +@syntax-result-marker-color-selected: @base3; + +// Gutter colors +@syntax-gutter-text-color: @base0; +@syntax-gutter-text-color-selected: @base2; +@syntax-gutter-background-color: @base02; +@syntax-gutter-background-color-selected: lighten(@base02, 6%); + +// 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: @base01; +@syntax-subtle-color: @base00; +@syntax-emphasized-color: @base1; +@syntax-cursor-line: fade(lighten(@syntax-background-color, 30%), 8%); // needs to be semi-transparent diff --git a/packages/solarized-dark-syntax/styles/syntax/_base.less b/packages/solarized-dark-syntax/styles/syntax/_base.less new file mode 100644 index 00000000000..e176941fc2c --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/_base.less @@ -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; +} diff --git a/packages/solarized-dark-syntax/styles/syntax/c.less b/packages/solarized-dark-syntax/styles/syntax/c.less new file mode 100644 index 00000000000..9a094bcadad --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/c.less @@ -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; + } + } +} diff --git a/packages/solarized-dark-syntax/styles/syntax/coffee.less b/packages/solarized-dark-syntax/styles/syntax/coffee.less new file mode 100644 index 00000000000..c353f72a38d --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/coffee.less @@ -0,0 +1,58 @@ +.syntax--source.syntax--coffee { + .syntax--support.syntax--class { + color: @green; + } + + .syntax--variable, + .syntax--entity.syntax--name.syntax--function, + .syntax--entity.syntax--name.syntax--class { + color: @blue; + } + .syntax--variable.syntax--parameter.syntax--function { + color: @syntax-text-color; + } + .syntax--variable.syntax--other.syntax--readwrite { + color: @green; + } + + .syntax--storage.syntax--type.syntax--function { + color: @green; + } + + .syntax--entity.syntax--name { + color: @syntax-text-color; + } + + .syntax--meta.syntax--brace { + &.syntax--round, + &.syntax--square { + color: @syntax-text-color; + } + } + .syntax--meta.syntax--delimiter { + color: @syntax-text-color; + } + + .syntax--storage.syntax--type.syntax--class { + color: @green; + } + + .syntax--punctuation.syntax--terminator { + color: @syntax-text-color; + } + + .syntax--punctuation.syntax--section.syntax--embedded { + color: @red; + } + .syntax--embedded.syntax--source { + color: @syntax-text-color; + } + + .syntax--constant.syntax--numeric { + color: @magenta; + } + + .syntax--constant.syntax--language.syntax--boolean { + color: @yellow; + } +} diff --git a/packages/solarized-dark-syntax/styles/syntax/css.less b/packages/solarized-dark-syntax/styles/syntax/css.less new file mode 100644 index 00000000000..8bfaf8c3404 --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/css.less @@ -0,0 +1,63 @@ +.syntax--source.syntax--css { + + .syntax--punctuation { + &.syntax--separator, + &.syntax--terminator { + color: @syntax-text-color; + } + &.syntax--property-list.syntax--begin, + &.syntax--property-list.syntax--end { + color: @red; + } + &.syntax--section.syntax--function { + color: @cyan; + } + } + + .syntax--entity.syntax--name { + color: @green; + } + .syntax--attribute-name.syntax--class, + .syntax--id { + color: @blue; + } + .syntax--pseudo-element, + .syntax--pseudo-class { + color: @orange; + } + + .syntax--property-value { + color: @cyan; + } + .syntax--constant.syntax--numeric { + color: @cyan; + .syntax--unit { + color: @cyan; + } + } + .syntax--rgb-value { + color: @cyan; + } + .syntax--support.syntax--constant { + color: @cyan; + &.syntax--media { + color: @red; + } + } + + .syntax--keyword.syntax--important { + color: @red; + } + +} + + +// Less/Sass should have their own files, +// but for just a single override, here should be fine too + +.syntax--source.syntax--less, +.syntax--source.syntax--scss { + .syntax--keyword.syntax--unit { + color: @cyan; + } +} diff --git a/packages/solarized-dark-syntax/styles/syntax/go.less b/packages/solarized-dark-syntax/styles/syntax/go.less new file mode 100644 index 00000000000..b12558e8327 --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/go.less @@ -0,0 +1,10 @@ +.syntax--source.syntax--go { + + .syntax--operator { + color: @syntax-text-color; + &.syntax--assignment { + color: @green; + } + } + +} diff --git a/packages/solarized-dark-syntax/styles/syntax/java.less b/packages/solarized-dark-syntax/styles/syntax/java.less new file mode 100644 index 00000000000..6fa5c64a7e5 --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/java.less @@ -0,0 +1,47 @@ +.syntax--source.syntax--java { + .syntax--keyword.syntax--operator{ + color:@green; + } + .syntax--keyword.syntax--import{ + color: @orange; + } + .syntax--storage.syntax--modifier.syntax--import{ + color: @syntax-comment-color; + } + .syntax--meta.syntax--class{ + .syntax--storage.syntax--modifier{ + color: @yellow; + } + .syntax--meta.syntax--class.syntax--identifier{ + .syntax--entity.syntax--name.syntax--type.syntax--class{ + color: @blue; + } + } + } + .syntax--storage.syntax--type.syntax--primitive.syntax--array{ + color:@green; + } + .syntax--constant.syntax--numeric{ + color:@magenta; + } + .syntax--constant.syntax--other{ + color:@orange; + } + .syntax--storage.syntax--type{ + color:@green; + } + .syntax--meta.syntax--method-call{ + //@ibocon: method parameter's color + color:@red; + //@ibocon: method and variable use different hightlight + .syntax--meta.syntax--method{ + color:@violet; + } + .syntax--punctuation.syntax--definition.syntax--seperator.syntax--parameter{ + color:@green; + } + } + .syntax--punctuation.syntax--definition.syntax--method-parameters{ + color: @syntax-emphasized-color; + } +} diff --git a/packages/solarized-dark-syntax/styles/syntax/javascript.less b/packages/solarized-dark-syntax/styles/syntax/javascript.less new file mode 100644 index 00000000000..ebd1e7db87e --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/javascript.less @@ -0,0 +1,128 @@ +.syntax--source.syntax--js { + .syntax--comma { + color: @syntax-text-color; + } + + .syntax--support.syntax--class { + color: @green; + } + + .syntax--entity { + &.syntax--name.syntax--type { + color: @yellow; + } + &.syntax--name { + color: @syntax-text-color; + + &.syntax--function { + color: @blue; + } + } + + &.syntax--name.syntax--tag { + color: @blue; + } + + &.syntax--other.syntax--attribute-name { + color: @yellow; + } + } + + + .syntax--meta.syntax--brace { + color: @syntax-text-color; + } + + .syntax--keyword { + color: @syntax-text-color; + } + .syntax--keyword.syntax--operator.syntax--new { + color: @green; + } + .syntax--keyword.syntax--control { + color: @orange; + } + .syntax--keyword.syntax--control.syntax--regexp { + color: @cyan; + } + + .syntax--variable { + color: @syntax-text-color; + } + .syntax--variable.syntax--dom { + color: @green; + } + .syntax--delimiter + .syntax--dom { + color: @syntax-text-color; + } + .syntax--name { + color: @syntax-text-color; + } + .syntax--variable.syntax--language { + color: @blue; + } + .syntax--variable.syntax--parameter { + color: @syntax-text-color; + } + + .syntax--regexp { + color: @cyan; + } + + .syntax--support.syntax--function { + color: @syntax-text-color; + } + .syntax--support.syntax--constant { + color: @syntax-text-color; + } + + .syntax--storage.syntax--modifier { + color: @yellow; + } + + .syntax--punctuation.syntax--terminator.syntax--statement { + color: @syntax-text-color; + } + + .syntax--meta.syntax--delimiter.syntax--method.syntax--period { + color: @syntax-text-color; + } + .syntax--meta.syntax--brace.syntax--square { + color: @blue; + } + .syntax--meta.syntax--brace.syntax--curly { + color: @blue; + } + + .syntax--string.syntax--quoted.syntax--template { + .syntax--embedded.syntax--source { + color: @syntax-text-color; + & > .syntax--embedded.syntax--punctuation { + color: @red; + } + } + } + + &.syntax--embedded .syntax--entity.syntax--name.syntax--tag { + color: @blue; + } + + .syntax--import { + .syntax--control { + color: @orange; + } + } +} + + +// JavaScript (Rails) language-ruby-on-rails + +.syntax--source.syntax--js.syntax--rails { + .syntax--instance { + color: @blue; + } + + .syntax--class { + color: @yellow; + } +} diff --git a/packages/solarized-dark-syntax/styles/syntax/markdown.less b/packages/solarized-dark-syntax/styles/syntax/markdown.less new file mode 100644 index 00000000000..2ca0038d93b --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/markdown.less @@ -0,0 +1,26 @@ +.syntax--md, +.syntax--gfm { + .syntax--link .syntax--entity { + color: @violet; + } + + .syntax--list { + &.syntax--ordered { + color: @green; + } + &.syntax--unordered { + color: @yellow; + } + } + + .syntax--raw { + font-style: italic; + } + + &.syntax--support { + color:@syntax-comment-color; + &.syntax--quote { + color: @violet; + } + } +} diff --git a/packages/solarized-dark-syntax/styles/syntax/markup.less b/packages/solarized-dark-syntax/styles/syntax/markup.less new file mode 100644 index 00000000000..f94b56f5b80 --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/markup.less @@ -0,0 +1,30 @@ +.syntax--markup { + + &.syntax--bold { + font-weight: bold; + } + &.syntax--italic { + font-style: italic; + } + + &.syntax--heading { + color: @blue; + } + + &.syntax--link { + color: @cyan; + } + + &.syntax--deleted { + color: @red; + } + + &.syntax--changed { + color: @yellow; + } + + &.syntax--inserted { + color: @cyan; + } + +} diff --git a/packages/solarized-dark-syntax/styles/syntax/php.less b/packages/solarized-dark-syntax/styles/syntax/php.less new file mode 100644 index 00000000000..8eb510d41f1 --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/php.less @@ -0,0 +1,67 @@ +.syntax--source.syntax--php { + .syntax--storage { + &.syntax--type { + &.syntax--class { + color: @yellow; + } + &.syntax--function { + color: @orange; + } + } + &.syntax--modifier { + color: @yellow; + } + } + .syntax--entity { + &.syntax--name { + &.syntax--type.syntax--class { + color: @syntax-text-color; + } + &.syntax--function { + color: @syntax-text-color; + } + } + &.syntax--other { + color: @syntax-text-color; + } + } + .syntax--variable { + color: @blue; + } + .syntax--punctuation.syntax--definition { + color: @syntax-text-color; + &.syntax--comment { + color: @syntax-comment-color; + } + &.syntax--array { + color: @red; + } + &.syntax--string { + color: @syntax-text-color; + } + &.syntax--variable { + color: @green; + } + } + .syntax--support.syntax--function { + &.syntax--construct { + color: @yellow; + } + &.syntax--array { + color: @green; + } + } + .syntax--keyword { + &.syntax--operator { + &.syntax--class { + color: @yellow; + } + &.syntax--assignment { + color: @green; + } + } + &.syntax--other { + color: @red; + } + } +} diff --git a/packages/solarized-dark-syntax/styles/syntax/python.less b/packages/solarized-dark-syntax/styles/syntax/python.less new file mode 100644 index 00000000000..ffe29ba2b39 --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/python.less @@ -0,0 +1,100 @@ +.syntax--source.syntax--python { + .syntax--entity { + color: @syntax-text-color; + + &.syntax--name { + color: @blue; + } + &.syntax--other { + color: @blue; + } + } + + .syntax--function { + color: @blue; + + &.syntax--magic { + color: @blue; + } + } + + .syntax--punctuation.syntax--string { + color: @cyan; + } + .syntax--keyword { + &.syntax--operator { + color: @syntax-text-color; + &.syntax--quantifier { + color: @cyan; + } + &.syntax--logical { + color: @green; + } + } + &.syntax--control.syntax--import { + color: @orange; + } + &.syntax--other { + color: @green; + } + } + .syntax--constant { + &.syntax--language { + color: @blue; + } + &.syntax--character { + color: @cyan; + } + &.syntax--other { + color: @red; + } + } + + .syntax--entity.syntax--name.syntax--type.syntax--class { + color: @blue; + } + .syntax--variable { + color: @syntax-text-color; + } + .syntax--support { + &.syntax--function.syntax--builtin { + color: @blue; + } + &.syntax--type { + &.syntax--exception.syntax--python { + color: @yellow; + } + &.syntax--python { + color: @blue; + } + } + } + .syntax--storage.syntax--type.syntax--string { + color: @cyan; + } + + .syntax--storage.syntax--type.syntax--class { + color: @green; + &.syntax--todo { + color: @magenta; + } + } + + .syntax--storage.syntax--type.syntax--function { + color: @green; + } + + .syntax--punctuation.syntax--definition.syntax--parameters { + color: @syntax-text-color; + } + + .syntax--punctuation.syntax--section.syntax--function.syntax--begin { + color: @syntax-text-color; + } + + .syntax--punctuation.syntax--separator.syntax--parameters { + color: @syntax-text-color; + } + + +} diff --git a/packages/solarized-dark-syntax/styles/syntax/ruby.less b/packages/solarized-dark-syntax/styles/syntax/ruby.less new file mode 100644 index 00000000000..3e3d8b58c2b --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/ruby.less @@ -0,0 +1,129 @@ +.syntax--source.syntax--ruby { + + .syntax--meta.syntax--embedded { + .syntax--punctuation.syntax--section { + color: @red; + } + } + .syntax--punctuation.syntax--definition { + color: @syntax-text-color; + &.syntax--string { + color: @red; + } + } + .syntax--punctuation.syntax--definition.syntax--comment { + color: @syntax-comment-color; + } + .syntax--entity.syntax--inherited-class { + color: @yellow; + } + .syntax--variable { + &.syntax--parameter { + color: @syntax-text-color; + } + } + .syntax--variable.syntax--constant { + color: @yellow; + } + .syntax--constant.syntax--boolean { + color: @cyan; + } + .syntax--instance { + .syntax--punctuation.syntax--definition { + color: @blue; + } + } + .syntax--class { + color: @yellow; + &.syntax--control { + color: @syntax-text-color; + } + } + .syntax--module { + color: @yellow; + } + .syntax--require { + .syntax--keyword.syntax--other.syntax--special-method { + color: @orange; + } + } + .syntax--keyword.syntax--other.syntax--special-method { + color: @orange; + } + .syntax--keyword.syntax--other { + color: @green; + } + .syntax--keyword.syntax--control { + color: @green; + } + .syntax--keyword.syntax--operator { + color: @syntax-text-color; + } + .syntax--special-method { + color: @blue; + } + .syntax--symbol { + color: @cyan; + .syntax--punctuation.syntax--definition { + color: @cyan; + } + } + .syntax--hashkey { + color: @red; + .syntax--punctuation.syntax--definition { + color: @red; + } + } + .syntax--string.syntax--regexp { + color: @red; + } + .syntax--todo { + color: @magenta; + } + .syntax--variable.syntax--ruby.syntax--global { + color: @blue; + .syntax--punctuation { + color: @blue; + } + } + .syntax--variable.syntax--block { + color: @blue; + } + .syntax--variable.syntax--self { + color: @cyan; + } + .syntax--punctuation.syntax--separator { + color: @syntax-text-color; + } + .syntax--numeric { + color: @cyan; + } + .syntax--punctuation.syntax--section.syntax--regexp { + color: @red; + } + .syntax--string.syntax--interpolated { + color: @cyan; + } + .syntax--string.syntax--interpolated { + .syntax--embedded.syntax--line.syntax--ruby { + .syntax--punctuation { + .syntax--source.syntax--ruby { + color: @red; + } + } + .syntax--source.syntax--ruby { + .syntax--punctuation.syntax--array, + .syntax--punctuation.syntax--function { + color: @syntax-text-color; + } + color: @syntax-text-color; + } + } + } + .syntax--support.syntax--function { + color: @syntax-text-color; + } + .syntax--support.syntax--function.syntax--kernel { + color: @green; + } +} diff --git a/packages/solarized-dark-syntax/styles/syntax/scala.less b/packages/solarized-dark-syntax/styles/syntax/scala.less new file mode 100644 index 00000000000..37651408759 --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/scala.less @@ -0,0 +1,79 @@ +.syntax--source.syntax--scala { + .syntax--variable { + color: @syntax-emphasized-color; + } + + .syntax--declaration { + color: @syntax-emphasized-color; + font-weight: bold; + } + .syntax--comparison { + color: @syntax-emphasized-color; + } + .syntax--class, .syntax--type { + color: @yellow; + } + .syntax--val { + font-weight: normal; + } + .syntax--variable { + font-weight: bold; + } + .syntax--variable.syntax--parameter { + color: @violet; + font-weight: normal; + } + .syntax--control.syntax--flow { + color: @syntax-emphasized-color; + font-weight: bold; + } + .syntax--constant.syntax--language { + color: @syntax-emphasized-color; + font-weight: bold; + } + .syntax--function.syntax--declaration { + color: @violet; + } + .syntax--modifier.syntax--other { + font-weight: bold; + } + .syntax--package { + color: @syntax-emphasized-color; + } + .syntax--variable.syntax--import { + font-weight: normal; + } + + .syntax--type { + .syntax--bounds, .syntax--class { + color: @violet; + } + } + + .syntax--documentation { + :not(.syntax--embedded) { + // out of scope ? + // https://github.syntax--com/atom/link + &.syntax--link.syntax--entity { + color: @blue; + text-decoration: underline; + } + .syntax--class, .syntax--parameter { + color: @syntax-emphasized-color; + } + .syntax--description { + color: @syntax-comment-color; + } + } + } + + .syntax--embedded { + color: darken(@syntax-emphasized-color, 15%); + + // so we dont confused it with normal expressions + font-style: italic; + .syntax--margin, .syntax--delimiters { + font-style: normal; + } + } +} diff --git a/packages/solarized-dark-syntax/styles/syntax/typescript.less b/packages/solarized-dark-syntax/styles/syntax/typescript.less new file mode 100644 index 00000000000..1a328807379 --- /dev/null +++ b/packages/solarized-dark-syntax/styles/syntax/typescript.less @@ -0,0 +1,22 @@ +.syntax--source.syntax--ts, +.syntax--source.syntax--tsx { + .syntax--import { + .syntax--control { + color: @orange; + } + } + + .syntax--entity { + &.syntax--name.syntax--type { + color: @yellow; + } + + &.syntax--inherited-class { + color: @yellow; + } + } + + .syntax--support.syntax--type { + color: @yellow; + } +}