one-dark-vivid-fork

This commit is contained in:
Thomas Briffard
2017-07-04 10:38:19 -04:00
commit 0a4b529028
23 changed files with 765 additions and 0 deletions

308
styles/syntax/_base.less Normal file
View File

@@ -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;
}
}

5
styles/syntax/c.less Normal file
View File

@@ -0,0 +1,5 @@
.syntax--source.syntax--c {
.syntax--keyword.syntax--operator {
color: @hue-3;
}
}

5
styles/syntax/cpp.less Normal file
View File

@@ -0,0 +1,5 @@
.syntax--source.syntax--cpp {
.syntax--keyword.syntax--operator {
color: @hue-3;
}
}

5
styles/syntax/cs.less Normal file
View File

@@ -0,0 +1,5 @@
.syntax--source.syntax--cs {
.syntax--keyword.syntax--operator {
color: @hue-3;
}
}

10
styles/syntax/css.less Normal file
View File

@@ -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;
}
}
}

43
styles/syntax/elixir.less Normal file
View File

@@ -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;
}
}

9
styles/syntax/gfm.less Normal file
View File

@@ -0,0 +1,9 @@
.syntax--source.syntax--gfm {
.syntax--markup {
-webkit-font-smoothing: auto;
}
.syntax--link .syntax--entity {
color: @hue-2;
}
}

5
styles/syntax/go.less Normal file
View File

@@ -0,0 +1,5 @@
.syntax--source.syntax--go {
.syntax--storage.syntax--type.syntax--string {
color: @hue-3
}
}

5
styles/syntax/ini.less Normal file
View File

@@ -0,0 +1,5 @@
.syntax--source.syntax--ini {
.syntax--keyword.syntax--other.syntax--definition.syntax--ini {
color: @hue-5;
}
}

24
styles/syntax/java.less Normal file
View File

@@ -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;
}
}
}

View File

@@ -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;
}
}
}

21
styles/syntax/json.less Normal file
View 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: @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;
}
}
}

View File

@@ -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;
}
}

5
styles/syntax/ruby.less Normal file
View File

@@ -0,0 +1,5 @@
.syntax--source.syntax--ruby {
.syntax--constant.syntax--other.syntax--symbol > .syntax--punctuation {
color: inherit;
}
}