Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18180 from atom/migrate-base16-tomorrow-light-the…
Browse files Browse the repository at this point in the history
…me-package

➡️ Migrate core package 'base16-tomorrow-light-theme' into ./packages
  • Loading branch information
daviwil committed Oct 2, 2018
2 parents 1fd5f9d + 0b982f2 commit 34b7388
Show file tree
Hide file tree
Showing 13 changed files with 486 additions and 6 deletions.
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions packages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] | |
Expand Down Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions packages/base16-tomorrow-light-theme/LICENSE.md
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.
13 changes: 13 additions & 0 deletions packages/base16-tomorrow-light-theme/README.md
Original file line number Diff line number Diff line change
@@ -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.

![Base16 Tomorrow light](https://cloud.githubusercontent.com/assets/378023/10118588/f1002474-64b6-11e5-9107-b6bedee9777a.png)


## 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 changes: 10 additions & 0 deletions packages/base16-tomorrow-light-theme/index.less
Original file line number Diff line number Diff line change
@@ -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 changes: 16 additions & 0 deletions packages/base16-tomorrow-light-theme/package.json
Original file line number Diff line number Diff line change
@@ -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 changes: 23 additions & 0 deletions packages/base16-tomorrow-light-theme/styles/colors.less
Original file line number Diff line number Diff line change
@@ -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 changes: 59 additions & 0 deletions packages/base16-tomorrow-light-theme/styles/editor.less
Original file line number Diff line number Diff line change
@@ -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;
}
}
45 changes: 45 additions & 0 deletions packages/base16-tomorrow-light-theme/styles/syntax-variables.less
Original file line number Diff line number Diff line change
@@ -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;
Loading

0 comments on commit 34b7388

Please sign in to comment.