Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main theme classes #3

Merged
merged 2 commits into from
Oct 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,28 @@ Based on the <a href="https://github.com/arcticicestudio/nord">Nord</a> color pa

---

## Getting started

### Installation

If your're using Git you can clone the repository to install the latest version:

```sh
git clone https://github.com/arcticicestudio/nord-highlightjs
```

Otherwise download [the latest stable version][nord-latest-zip] or [`develop` branch][nord-develop-zip] as ZIP archive.

### Usage

Make sure to read the official documentation on [how to use highlight.js][hljs-docs-usage].

Copy the [`nord.css`][nord-dist-css] file to your desired directory and include the theme as stylesheet:

```html
<link rel="stylesheet" href="nord.css">
```

### Contribution

Please report issues/bugs, feature requests and suggestions for improvements to the [issue tracker](https://github.com/arcticicestudio/nord-highlightjs/issues).
Expand All @@ -24,4 +46,4 @@ Please report issues/bugs, feature requests and suggestions for improvements to
[hljs-docs-usage]: https://highlightjs.org/usage
[nord-develop-zip]: https://github.com/arcticicestudio/nord-highlightjs/archive/develop.zip
[nord-dist-css]: https://github.com/arcticicestudio/nord-highlightjs/blob/develop/dist/nord.css
[nord-latest-zip]: https://github.com/arcticicestudio/nord-highlightjs/archive/v0.o.0.zip
[nord-latest-zip]: https://github.com/arcticicestudio/nord-highlightjs/archive/v0.0.0.zip
11 changes: 11 additions & 0 deletions src/modules/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: $nord0;
}

.hljs,
.hljs-subst {
color: $nord4;
}
20 changes: 20 additions & 0 deletions src/modules/_css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.hljs-selector-tag {
color: $nord9;
}

.hljs-selector-id {
color: $nord7;
font-weight: bold;
}

.hljs-selector-class {
color: $nord7;
}

.hljs-selector-attr {
color: $nord7;
}

.hljs-selector-pseudo {
color: $nord8;
}
7 changes: 7 additions & 0 deletions src/modules/_diff.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.hljs-addition {
background-color: transparentize($nord14, 0.5);
}

.hljs-deletion {
background-color: transparentize($nord11, 0.5);
}
42 changes: 42 additions & 0 deletions src/modules/_general.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.hljs-built_in,
.hljs-type {
color: $nord7;
}

.hljs-class {
color: $nord7;
}

.hljs-function {
color: $nord8;

> .hljs-title {
color: $nord8;
}
}

.hljs-keyword,
.hljs-literal,
.hljs-symbol {
color: $nord9;
}

.hljs-number {
color: $nord15;
}

.hljs-regexp {
color: $nord13;
}

.hljs-string {
color: $nord14;
}

.hljs-title {
color: $nord7;
}

.hljs-params {
color: $nord4;
}
29 changes: 29 additions & 0 deletions src/modules/_markup.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.hljs-bullet {
color: $nord9;
}

.hljs-code {
color: $nord7;
}

.hljs-emphasis {
font-style: italic;
}

.hljs-formula {
color: $nord7;
}

.hljs-strong {
font-weight: bold;
}

.hljs-link {
&:hover {
text-decoration: underline;
}
}

.hljs-quote {
color: $nord3;
}
16 changes: 16 additions & 0 deletions src/modules/_meta.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.hljs-comment {
color: $nord3;
}

.hljs-doctag {
color: $nord7;
}

.hljs-meta,
.hljs-meta-keyword {
color: $nord10;
}

.hljs-meta-string {
color: $nord14;
}
27 changes: 27 additions & 0 deletions src/modules/_tags_attributes_configs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.hljs-attr {
color: $nord7;
}

.hljs-attribute {
color: $nord4;
}

.hljs-builtin-name {
color: $nord9;
}

.hljs-name {
color: $nord9;
}

.hljs-section {
color: $nord8;
}

.hljs-tag {
color: $nord9;
}

.hljs-variable {
color: $nord4;
}
7 changes: 7 additions & 0 deletions src/modules/_templates.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.hljs-template-variable {
color: $nord4;
}

.hljs-template-tag {
color: $nord10;
}
29 changes: 29 additions & 0 deletions src/nord.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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";