├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── LICENSE.md ├── PULL_REQUEST_TEMPLATE.md ├── README.md ├── index.less ├── package.json └── styles ├── editor.less ├── syntax-variables.less └── syntax.less /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | See the [Atom contributing guide](https://github.com/atom/atom/blob/master/CONTRIBUTING.md) 2 | -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 8 | 9 | ### Prerequisites 10 | 11 | * [ ] Put an X between the brackets on this line if you have done all of the following: 12 | * Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode 13 | * Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/ 14 | * Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq 15 | * Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom 16 | * Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages 17 | 18 | ### Description 19 | 20 | [Description of the issue] 21 | 22 | ### Steps to Reproduce 23 | 24 | 1. [First Step] 25 | 2. [Second Step] 26 | 3. [and so on...] 27 | 28 | **Expected behavior:** [What you expect to happen] 29 | 30 | **Actual behavior:** [What actually happens] 31 | 32 | **Reproduces how often:** [What percentage of the time does it reproduce?] 33 | 34 | ### Versions 35 | 36 | You can get this information from copy and pasting the output of `atom --version` and `apm --version` from the command line. Also, please include the OS and what version of the OS you're running. 37 | 38 | ### Additional Information 39 | 40 | Any additional information, configuration or data that might be necessary to reproduce the issue. 41 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 GitHub Inc. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### Requirements 2 | 3 | * Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion. 4 | * All new code requires tests to ensure against regressions 5 | 6 | ### Description of the Change 7 | 8 | 13 | 14 | ### Alternate Designs 15 | 16 | 17 | 18 | ### Benefits 19 | 20 | 21 | 22 | ### Possible Drawbacks 23 | 24 | 25 | 26 | ### Applicable Issues 27 | 28 | 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### This package is now a part of the [core Atom repository](https://github.com/atom/atom/tree/master/packages/atom-light-syntax), please direct all issues and pull requests there in the future! 2 | 3 | --- 4 | 5 | # Atom Light Syntax theme 6 | 7 | A light syntax theme for Atom. 8 | 9 | This theme is installed by default with Atom and can be activated by going to 10 | the _Themes_ section in the Settings view (`cmd-,`) and selecting it from the 11 | _Syntax Themes_ dropdown menu. 12 | 13 | ![](https://f.cloud.github.com/assets/671378/2264690/886ce496-9e75-11e3-971a-9a24f359c481.png) 14 | -------------------------------------------------------------------------------- /index.less: -------------------------------------------------------------------------------- 1 | 2 | // Atom Light Syntax theme 3 | 4 | @import "styles/syntax-variables.less"; 5 | 6 | @import 'styles/editor.less'; 7 | @import 'styles/syntax.less'; 8 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "atom-light-syntax", 3 | "theme": "syntax", 4 | "version": "0.29.1", 5 | "description": "A light syntax theme", 6 | "repository": "https://github.com/atom/atom-light-syntax", 7 | "license": "MIT", 8 | "engines": { 9 | "atom": ">0.40.0" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /styles/editor.less: -------------------------------------------------------------------------------- 1 | atom-text-editor { 2 | background-color: @syntax-background-color; 3 | color: @syntax-text-color; 4 | 5 | .invisible-character { 6 | color: @syntax-invisible-character-color; 7 | } 8 | 9 | .indent-guide { 10 | color: @syntax-indent-guide-color; 11 | } 12 | 13 | .wrap-guide { 14 | background-color: @syntax-wrap-guide-color; 15 | } 16 | 17 | .gutter { 18 | color: @syntax-gutter-text-color; 19 | background: @syntax-gutter-background-color; 20 | } 21 | 22 | .gutter .line-number.folded, 23 | .gutter .line-number:after, 24 | .fold-marker:after { 25 | color: #e87b00; 26 | } 27 | 28 | .invisible { 29 | color: #555; 30 | } 31 | 32 | .selection .region { 33 | background-color: #e1e1e1; 34 | } 35 | 36 | .bracket-matcher .region { 37 | background-color: #C9C9C9; 38 | opacity: .7; 39 | border-bottom: 0 none; 40 | } 41 | 42 | &.is-focused { 43 | .cursor { 44 | border-color: @syntax-cursor-color; 45 | } 46 | 47 | .selection .region { 48 | background-color: @syntax-selection-color; 49 | } 50 | 51 | .line-number.cursor-line-no-selection, 52 | .line.cursor-line { 53 | background-color: @syntax-gutter-background-color-selected; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /styles/syntax-variables.less: -------------------------------------------------------------------------------- 1 | // This defines all syntax variables that syntax themes must implement when they 2 | // include a syntax-variables.less file. 3 | 4 | // General colors 5 | @syntax-text-color: #555; 6 | @syntax-cursor-color: black; 7 | @syntax-selection-color: #afc4da; 8 | @syntax-selection-flash-color: #69c; 9 | @syntax-background-color: white; 10 | 11 | // Guide colors 12 | @syntax-wrap-guide-color: rgba(85, 85, 85, .2); 13 | @syntax-indent-guide-color: rgba(85, 85, 85, .2); 14 | @syntax-invisible-character-color: rgba(85, 85, 85, .2); 15 | 16 | // For find and replace markers 17 | @syntax-result-marker-color: #999; 18 | @syntax-result-marker-color-selected: black; 19 | 20 | // Gutter colors 21 | @syntax-gutter-text-color: @syntax-text-color; 22 | @syntax-gutter-text-color-selected: @syntax-gutter-text-color; 23 | @syntax-gutter-background-color: white; 24 | @syntax-gutter-background-color-selected: rgba(255, 255, 134, 0.34); 25 | 26 | // For git diff info. i.e. in the gutter 27 | @syntax-color-renamed: #96CBFE; 28 | @syntax-color-added: #718C00; 29 | @syntax-color-modified: #ff982d; 30 | @syntax-color-removed: #D14; 31 | 32 | // For language entity colors 33 | @syntax-color-variable: #008080; 34 | @syntax-color-constant: #099; 35 | @syntax-color-property: #333; 36 | @syntax-color-value: @syntax-color-constant; 37 | @syntax-color-function: #900; 38 | @syntax-color-method: @syntax-color-function; 39 | @syntax-color-class: #606aa1; 40 | @syntax-color-keyword: #222; 41 | @syntax-color-tag: #008080; 42 | @syntax-color-attribute: #458; 43 | @syntax-color-import: @syntax-color-keyword; 44 | @syntax-color-snippet: @syntax-color-constant; 45 | -------------------------------------------------------------------------------- /styles/syntax.less: -------------------------------------------------------------------------------- 1 | .syntax--comment { 2 | color: #999988; 3 | font-style: italic; 4 | } 5 | 6 | .syntax--string { 7 | color: #D14; 8 | } 9 | 10 | // String interpolation in Ruby, CoffeeScript, and others 11 | .syntax--string { 12 | .syntax--source, 13 | .syntax--meta.syntax--embedded.syntax--line { 14 | color: #5A5A5A; 15 | } 16 | 17 | .syntax--punctuation.syntax--section.syntax--embedded { 18 | color: #920B2D; 19 | 20 | .syntax--source { 21 | color: #920B2D; // Required for the end of embedded strings in Ruby #716 22 | } 23 | } 24 | } 25 | 26 | .syntax--constant { 27 | &.syntax--numeric { 28 | color: #D14; 29 | } 30 | 31 | &.syntax--language { 32 | color: #606aa1; 33 | } 34 | 35 | &.syntax--character, 36 | &.syntax--other { 37 | color: #606aa1; 38 | } 39 | 40 | &.syntax--symbol { 41 | color: #990073; 42 | } 43 | 44 | &.syntax--numeric.syntax--line-number.syntax--find-in-files .syntax--match { 45 | color: rgba(143, 190, 0, 0.63); 46 | } 47 | } 48 | 49 | .syntax--variable { 50 | color: #008080; 51 | 52 | &.syntax--parameter { 53 | color: #606aa1; 54 | } 55 | } 56 | 57 | // Keywords 58 | .syntax--keyword { 59 | color: #222; 60 | font-weight: bold; 61 | 62 | &.syntax--unit { 63 | color: #445588; 64 | } 65 | 66 | &.syntax--special-method { 67 | color: #0086B3; 68 | } 69 | } 70 | 71 | .syntax--storage { 72 | color: #222; 73 | 74 | &.syntax--type { 75 | color: #222; 76 | } 77 | } 78 | 79 | .syntax--entity { 80 | &.syntax--name.syntax--class { 81 | text-decoration: underline; 82 | color: #606aa1; 83 | } 84 | 85 | &.syntax--other.syntax--inherited-class { 86 | text-decoration: underline; 87 | color: #606aa1; 88 | } 89 | 90 | &.syntax--name.syntax--function { 91 | color: #900; 92 | } 93 | 94 | &.syntax--name.syntax--tag { 95 | color: #008080; 96 | } 97 | 98 | &.syntax--other.syntax--attribute-name { 99 | color: #458; 100 | font-weight: bold; 101 | } 102 | 103 | &.syntax--name.syntax--filename.syntax--find-in-files { 104 | color: #E6DB74; 105 | } 106 | } 107 | 108 | .syntax--support { 109 | &.syntax--constant, 110 | &.syntax--function, 111 | &.syntax--type { 112 | color: #458; 113 | } 114 | 115 | &.syntax--class { 116 | color: #008080; 117 | } 118 | } 119 | 120 | .syntax--invalid { 121 | color: #F8F8F0; 122 | background-color: #00A8C6; 123 | 124 | &.syntax--deprecated { 125 | color: #F8F8F0; 126 | background-color: #8FBE00; 127 | } 128 | } 129 | 130 | 131 | .syntax--meta { 132 | &.syntax--structure.syntax--dictionary.syntax--json > .syntax--string.syntax--quoted.syntax--double.syntax--json, 133 | &.syntax--structure.syntax--dictionary.syntax--json > .syntax--string.syntax--quoted.syntax--double.syntax--json .syntax--punctuation.syntax--string { 134 | color: #000080; 135 | } 136 | 137 | &.syntax--structure.syntax--dictionary.syntax--value.syntax--json > .syntax--string.syntax--quoted.syntax--double.syntax--json { 138 | color: #d14; 139 | } 140 | 141 | &.syntax--diff, 142 | &.syntax--diff.syntax--header { 143 | color: #75715E; 144 | } 145 | } 146 | 147 | // CSS Styles 148 | .syntax--css { 149 | &.syntax--support.syntax--property-name { 150 | font-weight: bold; 151 | color: #333; 152 | } 153 | 154 | &.syntax--constant { 155 | color: #099; 156 | } 157 | } 158 | 159 | // Markdown 160 | .syntax--source.syntax--gfm { 161 | color: #444; 162 | } 163 | 164 | .syntax--gfm { 165 | .syntax--markup.syntax--heading { 166 | color: #111; 167 | } 168 | 169 | & .syntax--link { 170 | color: #888; 171 | } 172 | 173 | .syntax--variable.syntax--list { 174 | color: #888; 175 | } 176 | } 177 | 178 | .syntax--markdown { 179 | .syntax--paragraph { 180 | color: #444; 181 | } 182 | 183 | .syntax--heading { 184 | color: #111; 185 | } 186 | 187 | .syntax--link { 188 | color: #888; 189 | 190 | .syntax--string { 191 | color: #888; 192 | } 193 | } 194 | } 195 | --------------------------------------------------------------------------------