From 0a4b52902850cbf036362cea9770a5469711bdc3 Mon Sep 17 00:00:00 2001 From: Thomas Briffard Date: Tue, 4 Jul 2017 10:38:19 -0400 Subject: [PATCH] one-dark-vivid-fork --- CONTRIBUTING.md | 1 + LICENSE.md | 20 +++ README.md | 7 + UPDATE.md | 11 ++ index.less | 21 +++ package.json | 53 ++++++ styles/colors.less | 29 ++++ styles/editor.less | 96 +++++++++++ styles/syntax-variables.less | 56 +++++++ styles/syntax/_base.less | 308 ++++++++++++++++++++++++++++++++++ styles/syntax/c.less | 5 + styles/syntax/cpp.less | 5 + styles/syntax/cs.less | 5 + styles/syntax/css.less | 10 ++ styles/syntax/elixir.less | 43 +++++ styles/syntax/gfm.less | 9 + styles/syntax/go.less | 5 + styles/syntax/ini.less | 5 + styles/syntax/java.less | 24 +++ styles/syntax/javascript.less | 17 ++ styles/syntax/json.less | 21 +++ styles/syntax/python.less | 9 + styles/syntax/ruby.less | 5 + 23 files changed, 765 insertions(+) create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 UPDATE.md create mode 100644 index.less create mode 100644 package.json create mode 100644 styles/colors.less create mode 100644 styles/editor.less create mode 100644 styles/syntax-variables.less create mode 100644 styles/syntax/_base.less create mode 100644 styles/syntax/c.less create mode 100644 styles/syntax/cpp.less create mode 100644 styles/syntax/cs.less create mode 100644 styles/syntax/css.less create mode 100644 styles/syntax/elixir.less create mode 100644 styles/syntax/gfm.less create mode 100644 styles/syntax/go.less create mode 100644 styles/syntax/ini.less create mode 100644 styles/syntax/java.less create mode 100644 styles/syntax/javascript.less create mode 100644 styles/syntax/json.less create mode 100644 styles/syntax/python.less create mode 100644 styles/syntax/ruby.less diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..0fd0ad6 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1 @@ +See the [Atom contributing guide](https://github.com/atom/atom/blob/master/CONTRIBUTING.md) diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..4d231b4 --- /dev/null +++ b/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/README.md b/README.md new file mode 100644 index 0000000..dcc66cc --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +## One Dark Vivid Syntax fork + +Basé sur one-dark-vivid-syntax, lui même basé sur one-dark [One Dark](https://atom.io/themes/one-dark-syntax) + +### Install + +Copier le dossier one-dark-vivid-fork dans votre $HOME/.atom/packages diff --git a/UPDATE.md b/UPDATE.md new file mode 100644 index 0000000..2edf1f1 --- /dev/null +++ b/UPDATE.md @@ -0,0 +1,11 @@ +## Update + +When updating this theme to match the original [One Dark](https://github.com/atom/one-dark-syntax) theme, these files are unique to the "vivid" version and might need to be updated manually. + +``` +styles/colors.less + +package.json +README.md +UPDATE.md +``` diff --git a/index.less b/index.less new file mode 100644 index 0000000..723a2c5 --- /dev/null +++ b/index.less @@ -0,0 +1,21 @@ + +// Atom Syntax Theme: One + +@import "styles/syntax-variables.less"; + +@import "styles/editor.less"; + +@import "styles/syntax/_base.less"; +@import "styles/syntax/c.less"; +@import "styles/syntax/cpp.less"; +@import "styles/syntax/cs.less"; +@import "styles/syntax/css.less"; +@import "styles/syntax/elixir.less"; +@import "styles/syntax/gfm.less"; +@import "styles/syntax/go.less"; +@import "styles/syntax/ini.less"; +@import "styles/syntax/java.less"; +@import "styles/syntax/javascript.less"; +@import "styles/syntax/json.less"; +@import "styles/syntax/ruby.less"; +@import "styles/syntax/python.less"; diff --git a/package.json b/package.json new file mode 100644 index 0000000..6709afc --- /dev/null +++ b/package.json @@ -0,0 +1,53 @@ +{ + "_args": [ + [ + { + "raw": "/tmp/d-11764-22511-1vo78zr.aroup4lsor/package.tgz", + "scope": null, + "escapedName": null, + "name": null, + "rawSpec": "/tmp/d-11764-22511-1vo78zr.aroup4lsor/package.tgz", + "spec": "/tmp/d-11764-22511-1vo78zr.aroup4lsor/package.tgz", + "type": "local" + }, + "/tmp/apm-install-dir-11764-22511-1rlxnin.1sfzssv2t9" + ] + ], + "_inCache": true, + "_location": "/one-dark-vivid-fork", + "_phantomChildren": {}, + "_requiredBy": [ + "#USER" + ], + "_shrinkwrap": null, + "_where": "/tmp/apm-install-dir-11764-22511-1rlxnin.1sfzssv2t9", + "dependencies": {}, + "description": "A more vivid One Dark Syntax theme", + "devDependencies": {}, + "engines": { + "atom": ">=1.13.0 <2.0.0" + }, + "keywords": [ + "vivid", + "dark", + "blue", + "syntax" + ], + "license": "MIT", + "name": "one-dark-vivid-fork", + "optionalDependencies": {}, + "readme": "## One Dark Vivid Syntax\n\nThis Atom theme is identical to the original [One Dark](https://atom.io/themes/one-dark-syntax) theme, except that the colors are more __vivid__.\n\n![one-dark-syntax](https://cloud.githubusercontent.com/assets/378023/7783203/49271ef6-0174-11e5-8eb1-d80b8d34a0e3.png)\n\n> The font used in the screenshot is [Fira Mono](https://github.com/mozilla/Fira).\n\n\n### Install\n\n```\napm install one-dark-vivid-syntax\n```\n\nOr go to __Settings > Install__ and search for `one-dark-vivid-syntax`.\n\nThen after installing, select \"One Dark Vivid\" from the __Settings > Themes > Syntax Themes__ drop-down menu.\n", + "readmeFilename": "README.md", + "theme": "syntax", + "version": "1.8.0", + "_atomModuleCache": { + "version": 1, + "dependencies": [], + "extensions": { + ".json": [ + "package.json" + ] + }, + "folders": [] + } +} diff --git a/styles/colors.less b/styles/colors.less new file mode 100644 index 0000000..b55417a --- /dev/null +++ b/styles/colors.less @@ -0,0 +1,29 @@ +@syntax-hue: 215; +@syntax-saturation: 21%; +@syntax-brightness: 20%; + + +// Monochrome ----------------------------------- +@mono-1: hsl(@syntax-hue, 60%, 92%); // default text +@mono-2: hsl(@syntax-hue, 24%, 66%); +@mono-3: hsl(@syntax-hue, 12%, 44%); + +// Colors ----------------------------------- +@hue-1: hsl(191, 91%, 73%); // <-cyan +@hue-2: hsl(212, 99%, 70%); // <-blue +@hue-3: hsl(286, 82%, 79%); // <-purple +@hue-4: hsl(100, 65%, 65%); // <-green + +@hue-5: hsl( 5, 91%, 73%); // <-red 1 +@hue-5-2: hsl(348, 45%, 66%); // <-red 2 + +@hue-6: hsl( 45, 81%, 50%); // <-orange 1 +@hue-6-2: hsl( 41, 98%, 70%); // <-orange 2 + + +// Base Syntax colors ----------------------------------- +@syntax-fg: @mono-1; +@syntax-bg: hsl(@syntax-hue, @syntax-saturation, @syntax-brightness); +@syntax-gutter: @mono-3; +@syntax-guide: fade(@syntax-fg, 10%); +@syntax-accent: hsl(@syntax-hue, 100%, 76% ); diff --git a/styles/editor.less b/styles/editor.less new file mode 100644 index 0000000..11d27b4 --- /dev/null +++ b/styles/editor.less @@ -0,0 +1,96 @@ + +// Editor styles (background, gutter, guides) + +atom-text-editor { + background-color: @syntax-background-color; + color: @syntax-text-color; + + .line.cursor-line { + background-color: @syntax-cursor-line; + } + + .invisible { + color: @syntax-text-color; + } + + .cursor { + border-left: 2px solid @syntax-cursor-color; + } + + .selection .region { + background-color: @syntax-selection-color; + } + + .bracket-matcher .region { + border-bottom: 1px solid @syntax-cursor-color; + box-sizing: border-box; + } + + .invisible-character { + color: @syntax-invisible-character-color; + } + + .indent-guide { + color: @syntax-indent-guide-color; + } + + .wrap-guide { + background-color: @syntax-wrap-guide-color; + } + + // find + replace + .find-result .region.region.region, + .current-result .region.region.region { + border-radius: 2px; + background-color: @syntax-result-marker-color; + transition: border-color .4s; + } + .find-result .region.region.region { + border: 2px solid transparent; + } + .current-result .region.region.region { + border: 2px solid @syntax-result-marker-color-selected; + transition-duration: .1s; + } + + .gutter { + + .line-number { + color: @syntax-gutter-text-color; + -webkit-font-smoothing: antialiased; + + &.cursor-line { + color: @syntax-gutter-text-color-selected; + background-color: @syntax-gutter-background-color-selected; + } + &.cursor-line-no-selection { + background-color: transparent; + } + + .icon-right { + color: @syntax-text-color; + } + } + + &:not(.git-diff-icon) .line-number.git-line-removed { + &.git-line-removed::before { + bottom: -3px; + } + &::after { + content: ""; + position: absolute; + left: 0px; + bottom: 0px; + width: 25px; + border-bottom: 1px dotted fade(@syntax-color-removed, 50%); + pointer-events: none; + } + } + } + + .gutter .line-number.folded, + .gutter .line-number:after, + .fold-marker:after { + color: @syntax-gutter-text-color-selected; + } +} diff --git a/styles/syntax-variables.less b/styles/syntax-variables.less new file mode 100644 index 0000000..9d7673d --- /dev/null +++ b/styles/syntax-variables.less @@ -0,0 +1,56 @@ +@import "colors.less"; + +// Official Syntax Variables ----------------------------------- + +// General colors +@syntax-text-color: @syntax-fg; +@syntax-cursor-color: @syntax-accent; +@syntax-selection-color: lighten(@syntax-background-color, 10%); +@syntax-selection-flash-color: @syntax-accent; +@syntax-background-color: @syntax-bg; + +// Guide colors +@syntax-wrap-guide-color: @syntax-guide; +@syntax-indent-guide-color: @syntax-guide; +@syntax-invisible-character-color: @syntax-guide; + +// For find and replace markers +@syntax-result-marker-color: fade(@syntax-accent, 24%); +@syntax-result-marker-color-selected: @syntax-accent; + +// Gutter colors +@syntax-gutter-text-color: @syntax-gutter; +@syntax-gutter-text-color-selected: @syntax-fg; +@syntax-gutter-background-color: @syntax-bg; // unused +@syntax-gutter-background-color-selected: lighten(@syntax-bg, 2%); + +// Git colors - For git diff info. i.e. in the gutter +@syntax-color-renamed: hsl(208, 100%, 60%); +@syntax-color-added: hsl(150, 60%, 54%); +@syntax-color-modified: hsl(40, 60%, 70%); +@syntax-color-removed: hsl(0, 70%, 60%); + +// For language entity colors +@syntax-color-variable: @hue-5; +@syntax-color-constant: @hue-6; +@syntax-color-property: @syntax-fg; +@syntax-color-value: @syntax-fg; +@syntax-color-function: @hue-2; +@syntax-color-method: @hue-2; +@syntax-color-class: @hue-6-2; +@syntax-color-keyword: @hue-3; +@syntax-color-tag: @hue-5; +@syntax-color-attribute: @hue-6; +@syntax-color-import: @hue-3; +@syntax-color-snippet: @hue-4; + + +// Custom Syntax Variables ----------------------------------- +// Don't use in packages + +@syntax-cursor-line: hsla(@syntax-hue, 100%, 80%, .04); // needs to be semi-transparent to show serach results + +@syntax-deprecated-fg: darken(@syntax-color-modified, 50%); +@syntax-deprecated-bg: @syntax-color-modified; +@syntax-illegal-fg: white; +@syntax-illegal-bg: @syntax-color-removed; diff --git a/styles/syntax/_base.less b/styles/syntax/_base.less new file mode 100644 index 0000000..5a70fca --- /dev/null +++ b/styles/syntax/_base.less @@ -0,0 +1,308 @@ +// Language syntax highlighting + +.syntax--comment { + color: @mono-3; + font-style: italic; + + .syntax--markup.syntax--link { + color: @mono-3; + } +} + +.syntax--entity { + + &.syntax--name.syntax--type { + color: @hue-6-2; + } + + &.syntax--other.syntax--inherited-class { + color: @hue-4; + } +} + +.syntax--keyword { + color: @hue-3; + + &.syntax--control { + color: @hue-3; + } + + &.syntax--operator { + color: @mono-1; + } + + &.syntax--other.syntax--special-method { + color: @hue-2; + } + + &.syntax--other.syntax--unit { + color: @hue-6; + } +} + +.syntax--storage { + color: @hue-3; + + &.syntax--type { + &.syntax--annotation, + &.syntax--primitive { + color: @hue-3; + } + } + + &.syntax--modifier { + &.syntax--package, + &.syntax--import { + color: @mono-1; + } + } +} + +.syntax--constant { + color: @hue-6; + + &.syntax--variable { + color: @hue-6; + } + + &.syntax--character.syntax--escape { + color: @hue-1; + } + + &.syntax--numeric { + color: @hue-6; + } + + &.syntax--other.syntax--color { + color: @hue-1; + } + + &.syntax--other.syntax--symbol { + color: @hue-1; + } +} + +.syntax--variable { + color: @hue-5; + + &.syntax--interpolation { + color: @hue-5-2; + } + + &.syntax--parameter { + color: @mono-1; + } +} + +.syntax--string { + color: @hue-4; + + + &.syntax--regexp { + color: @hue-1; + + .syntax--source.syntax--ruby.syntax--embedded { + color: @hue-6-2; + } + } + + &.syntax--other.syntax--link { + color: @hue-5; + } +} + +.syntax--punctuation { + &.syntax--definition { + &.syntax--comment { + color: @mono-3; + } + + &.syntax--method-parameters, + &.syntax--function-parameters, + &.syntax--parameters, + &.syntax--separator, + &.syntax--seperator, + &.syntax--array { + color: @mono-1; + } + + &.syntax--heading, + &.syntax--identity { + color: @hue-2; + } + + &.syntax--bold { + color: @hue-6-2; + font-weight: bold; + } + + &.syntax--italic { + color: @hue-3; + font-style: italic; + } + } + + &.syntax--section { + &.syntax--embedded { + color: @hue-5-2; + } + + &.syntax--method, + &.syntax--class, + &.syntax--inner-class { + color: @mono-1; + } + } +} + +.syntax--support { + &.syntax--class { + color: @hue-6-2; + } + + &.syntax--type { + color: @hue-1; + } + + &.syntax--function { + color: @hue-1; + + &.syntax--any-method { + color: @hue-2; + } + } +} + +.syntax--entity { + &.syntax--name.syntax--function { + color: @hue-2; + } + + &.syntax--name.syntax--class, + &.syntax--name.syntax--type.syntax--class { + color: @hue-6-2; + } + + &.syntax--name.syntax--section { + color: @hue-2; + } + + &.syntax--name.syntax--tag { + color: @hue-5; + } + + &.syntax--other.syntax--attribute-name { + color: @hue-6; + + &.syntax--id { + color: @hue-2; + } + } +} + +.syntax--meta { + &.syntax--class { + color: @hue-6-2; + + &.syntax--body { + color: @mono-1; + } + } + + &.syntax--method-call, + &.syntax--method { + color: @mono-1; + } + + &.syntax--definition { + &.syntax--variable { + color: @hue-5; + } + } + + &.syntax--link { + color: @hue-6; + } + + &.syntax--require { + color: @hue-2; + } + + &.syntax--selector { + color: @hue-3; + } + + &.syntax--separator { + background-color: #373b41; + color: @mono-1; + } + + &.syntax--tag { + color: @mono-1; + } +} + +.syntax--underline { + text-decoration: underline; +} + +.syntax--none { + color: @mono-1; +} + +.syntax--invalid { + &.syntax--deprecated { + color: @syntax-deprecated-fg !important; + background-color: @syntax-deprecated-bg !important; + } + &.syntax--illegal { + color: @syntax-illegal-fg !important; + background-color: @syntax-illegal-bg !important; + } +} + +// Languages ------------------------------------------------- + +.syntax--markup { + &.syntax--bold { + color: @hue-6; + font-weight: bold; + } + + &.syntax--changed { + color: @hue-3; + } + + &.syntax--deleted { + color: @hue-5; + } + + &.syntax--italic { + color: @hue-3; + font-style: italic; + } + + &.syntax--heading { + color: @hue-5; + + .syntax--punctuation.syntax--definition.syntax--heading { + color: @hue-2; + } + } + + &.syntax--link { + color: @hue-1; + } + + &.syntax--inserted { + color: @hue-4; + } + + &.syntax--quote { + color: @hue-6; + } + + &.syntax--raw { + color: @hue-4; + } +} diff --git a/styles/syntax/c.less b/styles/syntax/c.less new file mode 100644 index 0000000..00d3eaf --- /dev/null +++ b/styles/syntax/c.less @@ -0,0 +1,5 @@ +.syntax--source.syntax--c { + .syntax--keyword.syntax--operator { + color: @hue-3; + } +} diff --git a/styles/syntax/cpp.less b/styles/syntax/cpp.less new file mode 100644 index 0000000..e618ac2 --- /dev/null +++ b/styles/syntax/cpp.less @@ -0,0 +1,5 @@ +.syntax--source.syntax--cpp { + .syntax--keyword.syntax--operator { + color: @hue-3; + } +} diff --git a/styles/syntax/cs.less b/styles/syntax/cs.less new file mode 100644 index 0000000..64ff906 --- /dev/null +++ b/styles/syntax/cs.less @@ -0,0 +1,5 @@ +.syntax--source.syntax--cs { + .syntax--keyword.syntax--operator { + color: @hue-3; + } +} diff --git a/styles/syntax/css.less b/styles/syntax/css.less new file mode 100644 index 0000000..3a63ff2 --- /dev/null +++ b/styles/syntax/css.less @@ -0,0 +1,10 @@ +.syntax--source.syntax--css { + // highlight properties/values if they are supported + .syntax--property-name, + .syntax--property-value { + color: @mono-2; + &.syntax--support { + color: @mono-1; + } + } +} diff --git a/styles/syntax/elixir.less b/styles/syntax/elixir.less new file mode 100644 index 0000000..ca125c8 --- /dev/null +++ b/styles/syntax/elixir.less @@ -0,0 +1,43 @@ +.syntax--source.syntax--elixir { + .syntax--source.syntax--embedded.syntax--source { + color: @mono-1; + } + .syntax--constant.syntax--language, + .syntax--constant.syntax--numeric, + .syntax--constant.syntax--definition { + color: @hue-2; + } + .syntax--variable.syntax--definition, + .syntax--variable.syntax--anonymous{ + color: @hue-3; + } + .syntax--quoted{ + color: @hue-4; + } + .syntax--keyword.syntax--special-method, + .syntax--embedded.syntax--section, + .syntax--embedded.syntax--source.syntax--empty, { + color: @hue-5; + } + .syntax--readwrite.syntax--module { + .syntax--punctuation { + color: @hue-5; + } + } + .syntax--regexp.syntax--section, + .syntax--regexp.syntax--string { + color: @hue-5-2; + } + .syntax--separator, + .syntax--keyword.syntax--operator { + color: @hue-6; + } + .syntax--variable.syntax--constant { + color: @hue-6-2; + } + .syntax--array, + .syntax--scope, + .syntax--section { + color: @mono-2; + } +} diff --git a/styles/syntax/gfm.less b/styles/syntax/gfm.less new file mode 100644 index 0000000..7bef77b --- /dev/null +++ b/styles/syntax/gfm.less @@ -0,0 +1,9 @@ +.syntax--source.syntax--gfm { + .syntax--markup { + -webkit-font-smoothing: auto; + } + + .syntax--link .syntax--entity { + color: @hue-2; + } +} diff --git a/styles/syntax/go.less b/styles/syntax/go.less new file mode 100644 index 0000000..a88135d --- /dev/null +++ b/styles/syntax/go.less @@ -0,0 +1,5 @@ +.syntax--source.syntax--go { + .syntax--storage.syntax--type.syntax--string { + color: @hue-3 + } +} diff --git a/styles/syntax/ini.less b/styles/syntax/ini.less new file mode 100644 index 0000000..621e128 --- /dev/null +++ b/styles/syntax/ini.less @@ -0,0 +1,5 @@ +.syntax--source.syntax--ini { + .syntax--keyword.syntax--other.syntax--definition.syntax--ini { + color: @hue-5; + } +} diff --git a/styles/syntax/java.less b/styles/syntax/java.less new file mode 100644 index 0000000..c863d7c --- /dev/null +++ b/styles/syntax/java.less @@ -0,0 +1,24 @@ +.syntax--source.syntax--java { + .syntax--storage { + &.syntax--modifier.syntax--import { + color: @hue-6-2; + } + + &.syntax--type { + color: @hue-6-2; + } + } + .syntax--keyword.syntax--operator.syntax--instanceof { + color: @hue-3; + } +} + +.syntax--source.syntax--java-properties { + .syntax--meta.syntax--key-pair { + color: @hue-5; + + & > .syntax--punctuation { + color: @mono-1; + } + } +} diff --git a/styles/syntax/javascript.less b/styles/syntax/javascript.less new file mode 100644 index 0000000..61adc12 --- /dev/null +++ b/styles/syntax/javascript.less @@ -0,0 +1,17 @@ +.syntax--source.syntax--js { + .syntax--keyword.syntax--operator { + color: @hue-1; + + // keywords are definded in https://github.syntax--com/atom/language-javascript/blob/master/grammars/javascript.syntax--cson + // search "instanceof" for location + &.syntax--delete, + &.syntax--in, + &.syntax--of, + &.syntax--instanceof, + &.syntax--new, + &.syntax--typeof, + &.syntax--void { + color: @hue-3; + } + } +} diff --git a/styles/syntax/json.less b/styles/syntax/json.less new file mode 100644 index 0000000..b179ca9 --- /dev/null +++ b/styles/syntax/json.less @@ -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: @hue-5; + } + color: @hue-5; + } + } + + .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: @hue-4; + } + + & > .syntax--constant.syntax--language.syntax--json { + color: @hue-1; + } + } +} diff --git a/styles/syntax/python.less b/styles/syntax/python.less new file mode 100644 index 0000000..ad14c7f --- /dev/null +++ b/styles/syntax/python.less @@ -0,0 +1,9 @@ +.syntax--source.syntax--python { + .syntax--keyword.syntax--operator.syntax--logical.syntax--python { + color: @hue-3; + } + + .syntax--variable.syntax--parameter { + color: @hue-6; + } +} diff --git a/styles/syntax/ruby.less b/styles/syntax/ruby.less new file mode 100644 index 0000000..594b4cd --- /dev/null +++ b/styles/syntax/ruby.less @@ -0,0 +1,5 @@ +.syntax--source.syntax--ruby { + .syntax--constant.syntax--other.syntax--symbol > .syntax--punctuation { + color: inherit; + } +}