Skip to content

Commit

Permalink
Implement language specific styles
Browse files Browse the repository at this point in the history
Added language-specific styles to adhere to the Nord Style Guideslines (1).
Supported CSS classes are defined in the official CSS class reference
documentation (2).

References:
  (1) https://github.com/arcticicestudio/nord
  (2) http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html

GH-2
  • Loading branch information
arcticicestudio committed Oct 19, 2017
1 parent 4f6884e commit 2f74d76
Show file tree
Hide file tree
Showing 27 changed files with 211 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/languages/abnf.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.abnf {
.hljs-attribute {
color: $nord8;
}

.hljs-symbol {
color: $nord13;
}
}
9 changes: 9 additions & 0 deletions src/languages/apache.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.apache {
.hljs-attribute {
color: $nord8;
}

.hljs-section {
color: $nord9;
}
}
5 changes: 5 additions & 0 deletions src/languages/arduino.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.arduino {
.hljs-built_in {
color: $nord8;
}
}
9 changes: 9 additions & 0 deletions src/languages/aspectj.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.aspectj {
.hljs-meta {
color: $nord12;
}

> .hljs-title {
color: $nord8;
}
}
5 changes: 5 additions & 0 deletions src/languages/bnf.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.bnf {
.hljs-attribute {
color: $nord7;
}
}
9 changes: 9 additions & 0 deletions src/languages/clojure.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.clojure {
.hljs-name {
color: $nord8;
}

.hljs-symbol {
color: $nord13;
}
}
5 changes: 5 additions & 0 deletions src/languages/coq.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.coq {
.hljs-built_in {
color: $nord8;
}
}
5 changes: 5 additions & 0 deletions src/languages/cpp.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.cpp {
.hljs-meta-string {
color: $nord7;
}
}
9 changes: 9 additions & 0 deletions src/languages/css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.css {
.hljs-built_in {
color: $nord8;
}

.hljs-keyword {
color: $nord12;
}
}
5 changes: 5 additions & 0 deletions src/languages/diff.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.diff {
.hljs-meta {
color: $nord7;
}
}
5 changes: 5 additions & 0 deletions src/languages/ebnf.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.ebnf {
.hljs-attribute {
color: $nord7;
}
}
5 changes: 5 additions & 0 deletions src/languages/glsl.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.glsl {
.hljs-built_in {
color: $nord8;
}
}
5 changes: 5 additions & 0 deletions src/languages/groovy.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.groovy {
.hljs-meta:not(:first-child) {
color: $nord12;
}
}
5 changes: 5 additions & 0 deletions src/languages/haxe.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.haxe {
.hljs-meta {
color: $nord12;
}
}
5 changes: 5 additions & 0 deletions src/languages/ldif.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.ldif {
.hljs-attribute {
color: $nord7;
}
}
5 changes: 5 additions & 0 deletions src/languages/lisp.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.lisp {
.hljs-name {
color: $nord8;
}
}
5 changes: 5 additions & 0 deletions src/languages/lua.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.lua {
.hljs-built_in {
color: $nord8;
}
}
5 changes: 5 additions & 0 deletions src/languages/moonscript.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.moonscript {
.hljs-built_in {
color: $nord8;
}
}
9 changes: 9 additions & 0 deletions src/languages/nginx.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.nginx {
.hljs-attribute {
color: $nord8;
}

.hljs-section {
color: $nord10;
}
}
5 changes: 5 additions & 0 deletions src/languages/pf.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.pf {
.hljs-built_in {
color: $nord8;
}
}
5 changes: 5 additions & 0 deletions src/languages/processing.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.processing {
.hljs-built_in {
color: $nord8;
}
}
5 changes: 5 additions & 0 deletions src/languages/scss.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.scss {
.hljs-keyword {
color: $nord9;
}
}
5 changes: 5 additions & 0 deletions src/languages/stylus.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.stylus {
.hljs-keyword {
color: $nord9;
}
}
5 changes: 5 additions & 0 deletions src/languages/swift.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.swift {
.hljs-meta {
color: $nord12;
}
}
6 changes: 6 additions & 0 deletions src/languages/vim.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.vim {
.hljs-built_in {
color: $nord8;
font-style: italic;
}
}
5 changes: 5 additions & 0 deletions src/languages/yaml.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.yaml {
.hljs-meta {
color: $nord12;
}
}
56 changes: 56 additions & 0 deletions src/nord.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
title Nord highlight.js +
project nord-highlightjs +
version +
repository https://github.com/arcticicestudio/nord-highlightjs +
author Arctic Ice Studio +
email [email protected] +
copyright Copyright (C) 2017 +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[References]
Nord
https://github.com/arcticicestudio/nord
highlight.js
http://highlightjs.readthedocs.io/en/latest/style-guide.html
http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html
*/

@import "../node_modules/nord/src/sass/nord";

@import "modules/base";
@import "modules/css";
@import "modules/diff";
@import "modules/general";
@import "modules/markup";
@import "modules/meta";
@import "modules/_tags_attributes_configs";
@import "modules/templates";

@import "languages/abnf";
@import "languages/apache";
@import "languages/arduino";
@import "languages/aspectj";
@import "languages/bnf";
@import "languages/clojure";
@import "languages/coq";
@import "languages/cpp";
@import "languages/css";
@import "languages/diff";
@import "languages/ebnf";
@import "languages/glsl";
@import "languages/groovy";
@import "languages/haxe";
@import "languages/ldif";
@import "languages/lisp";
@import "languages/lua";
@import "languages/moonscript";
@import "languages/nginx";
@import "languages/pf";
@import "languages/processing";
@import "languages/scss";
@import "languages/stylus";
@import "languages/swift";
@import "languages/vim";
@import "languages/yaml";

0 comments on commit 2f74d76

Please sign in to comment.