Skip to content

Commit

Permalink
add README, add themes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Apr 14, 2021
1 parent d2112c0 commit 45f6991
Show file tree
Hide file tree
Showing 176 changed files with 25,110 additions and 13 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# base16-highlightjs

[Base16](http://chriskempson.com/projects/base16/) for the [Highlight.js](https://highlightjs.org)

NOTE: All files in this repository are generated by a base16-builder

## Usage

Simply copy/vendor the theme you wish to use from the `themes` directory into your project.


## Building

Use one of the many builder's available for Base16:

- https://github.com/chriskempson/base16#builder-repositories

<!-- TODO: Add us to the official list so this stops being necessary. -->
Add this repository to your `/sources/templates/list.yaml`.

```yaml
highlight: https://github.com/bezhermoso/base16-highlight
highlightjs: https://github.com/highlightjs/base16-highlightjs
html-preview: https://github.com/chriskempson/base16-html-preview
```
Build. Using node for example:
- `base16 builder build`


## License

Highlight.js is released under the MIT License. See the [LICENSE][1] file
for details.

[1]: https://github.com/highlightjs/base16-highlightjs/blob/main/LICENSE

29 changes: 16 additions & 13 deletions templates/default.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
Theme: {{scheme-name}}
Author: {{scheme-author}}
Theme: {{{scheme-name}}}
Author: {{{scheme-author}}}

This theme was auto-generated from {{scheme-slug}} by Highlight.js Base16
template builder.
Expand All @@ -26,11 +26,14 @@ base0F - #{{base0F-hex}} - Deprecated, Opening/Closing Embedded Language Tags,
*/

.hljs {
display: block;
overflow-x: auto;
padding: 1em;
color: #{{base05-hex}};
background: #{{base00-hex}};
}

::selection {
.hljs ::selection {
color: #{{base02-hex}};
}

Expand Down Expand Up @@ -102,6 +105,7 @@ base0F - #{{base0F-hex}} - Deprecated, Opening/Closing Embedded Language Tags,
.hljs-built_in,
.hljs-doctag, /* guessing */
.hljs-quote,
.hljs-keyword.hljs-atrule,
.hljs-regexp {
color: #{{base0C-hex}};
}
Expand All @@ -116,10 +120,10 @@ base0F - #{{base0F-hex}} - Deprecated, Opening/Closing Embedded Language Tags,

/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
.hljs-type,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
/* .hljs-selector-id, */
/* .hljs-selector-class, */
/* .hljs-selector-attr, */
/* .hljs-selector-pseudo, */
.hljs-template-tag,
.diff .hljs-meta,
.hljs-keyword {
Expand All @@ -130,12 +134,11 @@ base0F - #{{base0F-hex}} - Deprecated, Opening/Closing Embedded Language Tags,
font-style: italic;
}

.hljs-meta-keyword {
/* color: #{{base0E-hex}}; */
font-weight: bold;
}

/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
.hljs-meta {
color: #{{base0F-hex}};
}
}

.hljs-meta-keyword {
font-weight: bold;
}
144 changes: 144 additions & 0 deletions themes/base16-3024.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
/*!
Theme: 3024
Author: Jan T. Sott (http://github.com/idleberg)
This theme was auto-generated from 3024 by Highlight.js Base16
template builder.
*/

/*
base00 - #090300 - Default Background
base01 - #3a3432 - Lighter Background (Used for status bars, line number and folding marks)
base02 - #4a4543 - Selection Background
base03 - #5c5855 - Comments, Invisibles, Line Highlighting
base04 - #807d7c - Dark Foreground (Used for status bars)
base05 - #a5a2a2 - Default Foreground, Caret, Delimiters, Operators
base06 - #d6d5d4 - Light Foreground (Not often used)
base07 - #f7f7f7 - Light Background (Not often used)
base08 - #db2d20 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
base09 - #e8bbd0 - Integers, Boolean, Constants, XML Attributes, Markup Link Url
base0A - #fded02 - Classes, Markup Bold, Search Text Background
base0B - #01a252 - Strings, Inherited Class, Markup Code, Diff Inserted
base0C - #b5e4f4 - Support, Regular Expressions, Escape Characters, Markup Quotes
base0D - #01a0e4 - Functions, Methods, Attribute IDs, Headings
base0E - #a16a94 - Keywords, Storage, Selector, Markup Italic, Diff Changed
base0F - #cdab53 - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
*/

.hljs {
display: block;
overflow-x: auto;
padding: 1em;
color: #a5a2a2;
background: #090300;
}

.hljs ::selection {
color: #4a4543;
}

.hljs-formula,
.hljs-params,
.hljs-property
{}

/* base03 - #5c5855 - Comments, Invisibles, Line Highlighting */
.hljs-comment {
color: #5c5855;
}

/* base04 - #807d7c - Dark Foreground (Used for status bars) */
.hljs-tag {
color: #807d7c;
}

/* base05 - #a5a2a2 - Default Foreground, Caret, Delimiters, Operators */
.hljs-subst {
color: #a5a2a2;
}
.hljs-punctuation,
.hljs-operator {
color: #a5a2a2;
}

/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
.hljs-bullet,
.hljs-variable,
.hljs-template-variable,
.hljs-selector-tag,
.hljs-name,
.hljs-deletion {
color: #db2d20;
}

/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
.hljs-symbol,
.hljs-number,
.hljs-link,
.hljs-attr,
.hljs-literal {
color: #e8bbd0;
}

/* base0A - Classes, Markup Bold, Search Text Background */
.hljs-title,
.hljs-class .hljs-title,
.hljs-title.class_
{
color: #fded02;
}

.hljs-strong {
font-weight:bold;
color: #fded02;
}

/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
.hljs-code,
.hljs-addition,
.hljs-title.class_.inherited__,
.hljs-string {
color: #01a252;
}

/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
.hljs-built_in,
.hljs-doctag, /* guessing */
.hljs-quote,
.hljs-keyword.hljs-atrule,
.hljs-regexp {
color: #b5e4f4;
}

/* base0D - Functions, Methods, Attribute IDs, Headings */
.hljs-function .hljs-title,
.hljs-attribute,
.hljs-title.function_,
.hljs-section {
color: #01a0e4;
}

/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
.hljs-type,
/* .hljs-selector-id, */
/* .hljs-selector-class, */
/* .hljs-selector-attr, */
/* .hljs-selector-pseudo, */
.hljs-template-tag,
.diff .hljs-meta,
.hljs-keyword {
color: #a16a94;
}
.hljs-emphasis {
color: #a16a94;
font-style: italic;
}

/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
.hljs-meta {
color: #cdab53;
}

.hljs-meta-keyword {
font-weight: bold;
}
144 changes: 144 additions & 0 deletions themes/base16-apathy.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
/*!
Theme: Apathy
Author: Jannik Siebert (https://github.com/janniks)
This theme was auto-generated from apathy by Highlight.js Base16
template builder.
*/

/*
base00 - #031A16 - Default Background
base01 - #0B342D - Lighter Background (Used for status bars, line number and folding marks)
base02 - #184E45 - Selection Background
base03 - #2B685E - Comments, Invisibles, Line Highlighting
base04 - #5F9C92 - Dark Foreground (Used for status bars)
base05 - #81B5AC - Default Foreground, Caret, Delimiters, Operators
base06 - #A7CEC8 - Light Foreground (Not often used)
base07 - #D2E7E4 - Light Background (Not often used)
base08 - #3E9688 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
base09 - #3E7996 - Integers, Boolean, Constants, XML Attributes, Markup Link Url
base0A - #3E4C96 - Classes, Markup Bold, Search Text Background
base0B - #883E96 - Strings, Inherited Class, Markup Code, Diff Inserted
base0C - #963E4C - Support, Regular Expressions, Escape Characters, Markup Quotes
base0D - #96883E - Functions, Methods, Attribute IDs, Headings
base0E - #4C963E - Keywords, Storage, Selector, Markup Italic, Diff Changed
base0F - #3E965B - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
*/

.hljs {
display: block;
overflow-x: auto;
padding: 1em;
color: #81B5AC;
background: #031A16;
}

.hljs ::selection {
color: #184E45;
}

.hljs-formula,
.hljs-params,
.hljs-property
{}

/* base03 - #2B685E - Comments, Invisibles, Line Highlighting */
.hljs-comment {
color: #2B685E;
}

/* base04 - #5F9C92 - Dark Foreground (Used for status bars) */
.hljs-tag {
color: #5F9C92;
}

/* base05 - #81B5AC - Default Foreground, Caret, Delimiters, Operators */
.hljs-subst {
color: #81B5AC;
}
.hljs-punctuation,
.hljs-operator {
color: #81B5AC;
}

/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
.hljs-bullet,
.hljs-variable,
.hljs-template-variable,
.hljs-selector-tag,
.hljs-name,
.hljs-deletion {
color: #3E9688;
}

/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
.hljs-symbol,
.hljs-number,
.hljs-link,
.hljs-attr,
.hljs-literal {
color: #3E7996;
}

/* base0A - Classes, Markup Bold, Search Text Background */
.hljs-title,
.hljs-class .hljs-title,
.hljs-title.class_
{
color: #3E4C96;
}

.hljs-strong {
font-weight:bold;
color: #3E4C96;
}

/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
.hljs-code,
.hljs-addition,
.hljs-title.class_.inherited__,
.hljs-string {
color: #883E96;
}

/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
.hljs-built_in,
.hljs-doctag, /* guessing */
.hljs-quote,
.hljs-keyword.hljs-atrule,
.hljs-regexp {
color: #963E4C;
}

/* base0D - Functions, Methods, Attribute IDs, Headings */
.hljs-function .hljs-title,
.hljs-attribute,
.hljs-title.function_,
.hljs-section {
color: #96883E;
}

/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
.hljs-type,
/* .hljs-selector-id, */
/* .hljs-selector-class, */
/* .hljs-selector-attr, */
/* .hljs-selector-pseudo, */
.hljs-template-tag,
.diff .hljs-meta,
.hljs-keyword {
color: #4C963E;
}
.hljs-emphasis {
color: #4C963E;
font-style: italic;
}

/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
.hljs-meta {
color: #3E965B;
}

.hljs-meta-keyword {
font-weight: bold;
}
Loading

0 comments on commit 45f6991

Please sign in to comment.