mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Merge pull request #18180 from atom/migrate-base16-tomorrow-light-theme-package
➡️ Migrate core package 'base16-tomorrow-light-theme' into ./packages
This commit is contained in:
3
package-lock.json
generated
3
package-lock.json
generated
@@ -1033,8 +1033,7 @@
|
||||
"integrity": "sha512-5h2CeNhHOEG8InVyah+PcANjVOgtWAbpsBHmLfYwhhTU+yKS3ZWbYvnZg6B9A8gDy9Jrmq2ZmnWL47qLDUaztg=="
|
||||
},
|
||||
"base16-tomorrow-light-theme": {
|
||||
"version": "https://www.atom.io/api/packages/base16-tomorrow-light-theme/versions/1.6.0/tarball",
|
||||
"integrity": "sha512-pJ/hCD2Tn8kc/9WkFkQnqcow0VtfotrXGjZY+Bmdbzv2EdV5kT25c5UVfUYgfLsVrSs1peUWFmCtHT3RZwtHzA=="
|
||||
"version": "file:packages/base16-tomorrow-light-theme"
|
||||
},
|
||||
"batch-processor": {
|
||||
"version": "1.0.0",
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"babel-core": "5.8.38",
|
||||
"background-tips": "https://www.atom.io/api/packages/background-tips/versions/0.28.0/tarball",
|
||||
"base16-tomorrow-dark-theme": "https://www.atom.io/api/packages/base16-tomorrow-dark-theme/versions/1.6.0/tarball",
|
||||
"base16-tomorrow-light-theme": "https://www.atom.io/api/packages/base16-tomorrow-light-theme/versions/1.6.0/tarball",
|
||||
"base16-tomorrow-light-theme": "file:packages/base16-tomorrow-light-theme",
|
||||
"bookmarks": "https://www.atom.io/api/packages/bookmarks/versions/0.45.1/tarball",
|
||||
"bracket-matcher": "https://www.atom.io/api/packages/bracket-matcher/versions/0.89.3/tarball",
|
||||
"cached-run-in-this-context": "0.5.0",
|
||||
@@ -175,7 +175,7 @@
|
||||
"atom-light-syntax": "file:./packages/atom-light-syntax",
|
||||
"atom-light-ui": "file:./packages/atom-light-ui",
|
||||
"base16-tomorrow-dark-theme": "1.6.0",
|
||||
"base16-tomorrow-light-theme": "1.6.0",
|
||||
"base16-tomorrow-light-theme": "file:./packages/base16-tomorrow-light-theme",
|
||||
"one-dark-ui": "file:./packages/one-dark-ui",
|
||||
"one-light-ui": "file:./packages/one-light-ui",
|
||||
"one-dark-syntax": "file:./packages/one-dark-syntax",
|
||||
|
||||
@@ -22,7 +22,7 @@ See [RFC 003](https://github.com/atom/atom/blob/master/docs/rfcs/003-consolidate
|
||||
| **autosave** | [`atom/autosave`][autosave] | [#17834](https://github.com/atom/atom/issues/17834) |
|
||||
| **background-tips** | [`atom/background-tips`][background-tips] | [#17835](https://github.com/atom/atom/issues/17835) |
|
||||
| **base16-tomorrow-dark-theme** | [`atom/base16-tomorrow-dark-theme`][base16-tomorrow-dark-theme] | [#17836](https://github.com/atom/atom/issues/17836) |
|
||||
| **base16-tomorrow-light-theme** | [`atom/base16-tomorrow-light-theme`][base16-tomorrow-light-theme] | [#17837](https://github.com/atom/atom/issues/17837) |
|
||||
| **base16-tomorrow-light-theme** | [`./base16-tomorrow-light-theme`](./base16-tomorrow-light-theme) | [#17837](https://github.com/atom/atom/issues/17837) |
|
||||
| **bookmarks** | [`atom/bookmarks`][bookmarks] | |
|
||||
| **bracket-matcher** | [`atom/bracket-matcher`][bracket-matcher] | |
|
||||
| **command-palette** | [`atom/command-palette`][command-palette] | |
|
||||
@@ -109,7 +109,6 @@ See [RFC 003](https://github.com/atom/atom/blob/master/docs/rfcs/003-consolidate
|
||||
[autosave]: https://github.com/atom/autosave
|
||||
[background-tips]: https://github.com/atom/background-tips
|
||||
[base16-tomorrow-dark-theme]: https://github.com/atom/base16-tomorrow-dark-theme
|
||||
[base16-tomorrow-light-theme]: https://github.com/atom/base16-tomorrow-light-theme
|
||||
[bookmarks]: https://github.com/atom/bookmarks
|
||||
[bracket-matcher]: https://github.com/atom/bracket-matcher
|
||||
[command-palette]: https://github.com/atom/command-palette
|
||||
|
||||
20
packages/base16-tomorrow-light-theme/LICENSE.md
Normal file
20
packages/base16-tomorrow-light-theme/LICENSE.md
Normal file
@@ -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.
|
||||
13
packages/base16-tomorrow-light-theme/README.md
Normal file
13
packages/base16-tomorrow-light-theme/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Base16 Tomorrow Light Syntax theme
|
||||
|
||||
Atom theme using the ever popular [Base16 Tomorrow](http://chriskempson.github.io/base16/#tomorrow) light colors.
|
||||
|
||||

|
||||
|
||||
|
||||
## Install
|
||||
|
||||
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_ drop-down menu.
|
||||
|
||||
A
|
||||
[dark version](../base16-tomorrow-dark-theme) of this theme is also available.
|
||||
10
packages/base16-tomorrow-light-theme/index.less
Normal file
10
packages/base16-tomorrow-light-theme/index.less
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
// Base16 Tomorrow Light
|
||||
|
||||
@import "styles/syntax-variables.less";
|
||||
|
||||
@import "styles/editor.less";
|
||||
|
||||
@import "styles/syntax/_base.less";
|
||||
@import "styles/syntax/cs.less";
|
||||
@import "styles/syntax/json.less";
|
||||
16
packages/base16-tomorrow-light-theme/package.json
Normal file
16
packages/base16-tomorrow-light-theme/package.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "base16-tomorrow-light-theme",
|
||||
"theme": "syntax",
|
||||
"version": "1.6.0",
|
||||
"description": "Base16 light theme for Atom",
|
||||
"keywords": [
|
||||
"base16",
|
||||
"light",
|
||||
"syntax"
|
||||
],
|
||||
"repository": "https://github.com/atom/atom",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"atom": ">0.49.0"
|
||||
}
|
||||
}
|
||||
23
packages/base16-tomorrow-light-theme/styles/colors.less
Normal file
23
packages/base16-tomorrow-light-theme/styles/colors.less
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
// Base16 Tomorrow
|
||||
// A color scheme by Chris Kempson (http://chriskempson.com)
|
||||
|
||||
// Grayscale
|
||||
@black: #1d1f21; // 00
|
||||
@very-dark-gray: #282a2e; // 01
|
||||
@dark-gray: #373b41; // 02
|
||||
@gray: #969896; // 03
|
||||
@light-gray: #b4b7b4; // 04
|
||||
@very-light-gray: #c5c8c6; // 05
|
||||
@almost-white: #e0e0e0; // 06
|
||||
@white: #ffffff; // 07
|
||||
|
||||
// Colors
|
||||
@red: #cc6666; // 08
|
||||
@orange: #de935f; // 09
|
||||
@yellow: #f0c674; // 0A
|
||||
@green: #b5bd68; // 0B
|
||||
@cyan: #8abeb7; // 0C
|
||||
@blue: #81a2be; // 0D
|
||||
@purple: #b294bb; // 0E
|
||||
@brown: #a3685a; // 0F
|
||||
59
packages/base16-tomorrow-light-theme/styles/editor.less
Normal file
59
packages/base16-tomorrow-light-theme/styles/editor.less
Normal file
@@ -0,0 +1,59 @@
|
||||
|
||||
// Editor styles (background, gutter, guides)
|
||||
|
||||
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 {
|
||||
padding: 0 0.25em 0 0.5em;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
&.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: @syntax-result-marker-color;
|
||||
}
|
||||
|
||||
.invisible {
|
||||
color: @syntax-text-color;
|
||||
}
|
||||
|
||||
.cursor {
|
||||
color: @syntax-cursor-color;
|
||||
}
|
||||
|
||||
.selection .region {
|
||||
background-color: @syntax-selection-color;
|
||||
}
|
||||
|
||||
.bracket-matcher .region {
|
||||
border-color: @syntax-result-marker-color;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
@import "colors.less";
|
||||
|
||||
// Official Syntax Variables
|
||||
|
||||
// General colors
|
||||
@syntax-text-color: @black;
|
||||
@syntax-cursor-color: @black;
|
||||
@syntax-selection-color: @almost-white;
|
||||
@syntax-selection-flash-color: @very-dark-gray;
|
||||
@syntax-background-color: @white;
|
||||
|
||||
// Guide colors
|
||||
@syntax-wrap-guide-color: @very-light-gray;
|
||||
@syntax-indent-guide-color: @very-light-gray;
|
||||
@syntax-invisible-character-color: @very-light-gray;
|
||||
|
||||
// For find and replace markers
|
||||
@syntax-result-marker-color: @light-gray;
|
||||
@syntax-result-marker-color-selected: @very-light-gray;
|
||||
|
||||
// Gutter colors
|
||||
@syntax-gutter-text-color: @light-gray;
|
||||
@syntax-gutter-text-color-selected: @dark-gray;
|
||||
@syntax-gutter-background-color: @syntax-background-color;
|
||||
@syntax-gutter-background-color-selected: @syntax-selection-color;
|
||||
|
||||
// For git diff info. i.e. in the gutter
|
||||
@syntax-color-renamed: @blue;
|
||||
@syntax-color-added: @green;
|
||||
@syntax-color-modified: @orange;
|
||||
@syntax-color-removed: @red;
|
||||
|
||||
// For language entity colors
|
||||
@syntax-color-variable: @red;
|
||||
@syntax-color-constant: @orange;
|
||||
@syntax-color-property: @syntax-text-color;
|
||||
@syntax-color-value: @green;
|
||||
@syntax-color-function: @blue;
|
||||
@syntax-color-method: @blue;
|
||||
@syntax-color-class: @yellow;
|
||||
@syntax-color-keyword: @purple;
|
||||
@syntax-color-tag: @red;
|
||||
@syntax-color-attribute: @orange;
|
||||
@syntax-color-import: @purple;
|
||||
@syntax-color-snippet: @green;
|
||||
270
packages/base16-tomorrow-light-theme/styles/syntax/_base.less
Normal file
270
packages/base16-tomorrow-light-theme/styles/syntax/_base.less
Normal file
@@ -0,0 +1,270 @@
|
||||
|
||||
// Language syntax highlighting
|
||||
|
||||
.syntax--comment {
|
||||
color: @gray;
|
||||
|
||||
.syntax--markup.syntax--link {
|
||||
color: @gray;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--entity {
|
||||
|
||||
&.syntax--name.syntax--type {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
&.syntax--other.syntax--inherited-class {
|
||||
color: @green;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--keyword {
|
||||
color: @purple;
|
||||
|
||||
&.syntax--control {
|
||||
color: @purple;
|
||||
}
|
||||
|
||||
&.syntax--operator {
|
||||
color: @syntax-text-color;
|
||||
}
|
||||
|
||||
&.syntax--other.syntax--special-method {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
&.syntax--other.syntax--unit {
|
||||
color: @orange;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--storage {
|
||||
color: @purple;
|
||||
}
|
||||
|
||||
.syntax--constant {
|
||||
color: @orange;
|
||||
|
||||
&.syntax--character.syntax--escape {
|
||||
color: @cyan;
|
||||
}
|
||||
|
||||
&.syntax--numeric {
|
||||
color: @orange;
|
||||
}
|
||||
|
||||
&.syntax--other.syntax--color {
|
||||
color: @cyan;
|
||||
}
|
||||
|
||||
&.syntax--other.syntax--symbol {
|
||||
color: @cyan;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--variable {
|
||||
color: @red;
|
||||
|
||||
&.syntax--interpolation {
|
||||
color: @brown;
|
||||
}
|
||||
|
||||
&.syntax--parameter.syntax--function {
|
||||
color: @syntax-text-color;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--invalid.syntax--illegal {
|
||||
background-color: @red;
|
||||
color: @syntax-background-color;
|
||||
}
|
||||
|
||||
.syntax--string {
|
||||
color: @green;
|
||||
|
||||
|
||||
&.syntax--regexp {
|
||||
color: @cyan;
|
||||
|
||||
.syntax--source.syntax--ruby.syntax--embedded {
|
||||
color: @yellow;
|
||||
}
|
||||
}
|
||||
|
||||
&.syntax--other.syntax--link {
|
||||
color: @red;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--punctuation {
|
||||
&.syntax--definition {
|
||||
&.syntax--parameters,
|
||||
&.syntax--array {
|
||||
color: @syntax-text-color;
|
||||
}
|
||||
|
||||
&.syntax--heading,
|
||||
&.syntax--identity {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
&.syntax--bold {
|
||||
color: @yellow;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&.syntax--italic {
|
||||
color: @purple;
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
|
||||
&.syntax--section {
|
||||
&.syntax--embedded {
|
||||
color: @brown;
|
||||
}
|
||||
|
||||
&.syntax--method,
|
||||
&.syntax--class,
|
||||
&.syntax--inner-class {
|
||||
color: @syntax-text-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--support {
|
||||
&.syntax--class {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
&.syntax--function {
|
||||
color: @cyan;
|
||||
|
||||
&.syntax--any-method {
|
||||
color: @blue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--entity {
|
||||
|
||||
&.syntax--name.syntax--function {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
&.syntax--name.syntax--class, &.syntax--name.syntax--type.syntax--class {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
&.syntax--name.syntax--section {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
&.syntax--name.syntax--tag {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
&.syntax--other.syntax--attribute-name {
|
||||
color: @orange;
|
||||
|
||||
&.syntax--id {
|
||||
color: @blue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--meta {
|
||||
&.syntax--class {
|
||||
color: @yellow;
|
||||
|
||||
&.syntax--body {
|
||||
color: @syntax-text-color;
|
||||
}
|
||||
}
|
||||
|
||||
&.syntax--link {
|
||||
color: @orange;
|
||||
}
|
||||
|
||||
&.syntax--method-call,
|
||||
&.syntax--method {
|
||||
color: @syntax-text-color;
|
||||
}
|
||||
|
||||
&.syntax--require {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
&.syntax--selector {
|
||||
color: @purple;
|
||||
}
|
||||
|
||||
&.syntax--separator {
|
||||
background-color: #373b41;
|
||||
color: @syntax-text-color;
|
||||
}
|
||||
|
||||
&.syntax--tag {
|
||||
color: @syntax-text-color;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--none {
|
||||
color: @syntax-text-color;
|
||||
}
|
||||
|
||||
.syntax--markup {
|
||||
&.syntax--bold {
|
||||
color: @orange;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&.syntax--changed {
|
||||
color: @purple;
|
||||
}
|
||||
|
||||
&.syntax--deleted {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
&.syntax--italic {
|
||||
color: @purple;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
&.syntax--heading {
|
||||
color: @red;
|
||||
|
||||
.syntax--punctuation.syntax--definition.syntax--heading {
|
||||
color: @blue;
|
||||
}
|
||||
}
|
||||
|
||||
&.syntax--link {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
&.syntax--inserted {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
&.syntax--quote {
|
||||
color: @orange;
|
||||
}
|
||||
|
||||
&.syntax--raw {
|
||||
color: @green;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--source.syntax--gfm {
|
||||
.syntax--markup {
|
||||
-webkit-font-smoothing: auto;
|
||||
}
|
||||
|
||||
.syntax--link .syntax--entity {
|
||||
color: @cyan;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
.syntax--source.syntax--cs {
|
||||
.syntax--keyword.syntax--operator {
|
||||
color: @purple;
|
||||
}
|
||||
}
|
||||
21
packages/base16-tomorrow-light-theme/styles/syntax/json.less
Normal file
21
packages/base16-tomorrow-light-theme/styles/syntax/json.less
Normal file
@@ -0,0 +1,21 @@
|
||||
.syntax--source.syntax--json {
|
||||
.syntax--meta.syntax--structure.syntax--dictionary.syntax--json {
|
||||
& > .syntax--string.syntax--quoted.syntax--json {
|
||||
& > .syntax--punctuation.syntax--string {
|
||||
color: @red;
|
||||
}
|
||||
color: @red;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--meta.syntax--structure.syntax--dictionary.syntax--json, .syntax--meta.syntax--structure.syntax--array.syntax--json {
|
||||
& > .syntax--value.syntax--json > .syntax--string.syntax--quoted.syntax--json,
|
||||
& > .syntax--value.syntax--json > .syntax--string.syntax--quoted.syntax--json > .syntax--punctuation {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
& > .syntax--constant.syntax--language.syntax--json {
|
||||
color: @cyan;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user