Skip to content

Commit 45f6991

Browse files
committed
add README, add themes
1 parent d2112c0 commit 45f6991

File tree

176 files changed

+25110
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+25110
-13
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# base16-highlightjs
2+
3+
[Base16](http://chriskempson.com/projects/base16/) for the [Highlight.js](https://highlightjs.org)
4+
5+
NOTE: All files in this repository are generated by a base16-builder
6+
7+
## Usage
8+
9+
Simply copy/vendor the theme you wish to use from the `themes` directory into your project.
10+
11+
12+
## Building
13+
14+
Use one of the many builder's available for Base16:
15+
16+
- https://github.com/chriskempson/base16#builder-repositories
17+
18+
<!-- TODO: Add us to the official list so this stops being necessary. -->
19+
Add this repository to your `/sources/templates/list.yaml`.
20+
21+
```yaml
22+
highlight: https://github.com/bezhermoso/base16-highlight
23+
highlightjs: https://github.com/highlightjs/base16-highlightjs
24+
html-preview: https://github.com/chriskempson/base16-html-preview
25+
```
26+
27+
Build. Using node for example:
28+
29+
- `base16 builder build`
30+
31+
32+
## License
33+
34+
Highlight.js is released under the MIT License. See the [LICENSE][1] file
35+
for details.
36+
37+
[1]: https://github.com/highlightjs/base16-highlightjs/blob/main/LICENSE
38+

templates/default.mustache

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
Theme: {{scheme-name}}
3-
Author: {{scheme-author}}
2+
Theme: {{{scheme-name}}}
3+
Author: {{{scheme-author}}}
44

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

2828
.hljs {
29+
display: block;
30+
overflow-x: auto;
31+
padding: 1em;
2932
color: #{{base05-hex}};
3033
background: #{{base00-hex}};
3134
}
3235

33-
::selection {
36+
.hljs ::selection {
3437
color: #{{base02-hex}};
3538
}
3639

@@ -102,6 +105,7 @@ base0F - #{{base0F-hex}} - Deprecated, Opening/Closing Embedded Language Tags,
102105
.hljs-built_in,
103106
.hljs-doctag, /* guessing */
104107
.hljs-quote,
108+
.hljs-keyword.hljs-atrule,
105109
.hljs-regexp {
106110
color: #{{base0C-hex}};
107111
}
@@ -116,10 +120,10 @@ base0F - #{{base0F-hex}} - Deprecated, Opening/Closing Embedded Language Tags,
116120

117121
/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
118122
.hljs-type,
119-
.hljs-selector-id,
120-
.hljs-selector-class,
121-
.hljs-selector-attr,
122-
.hljs-selector-pseudo,
123+
/* .hljs-selector-id, */
124+
/* .hljs-selector-class, */
125+
/* .hljs-selector-attr, */
126+
/* .hljs-selector-pseudo, */
123127
.hljs-template-tag,
124128
.diff .hljs-meta,
125129
.hljs-keyword {
@@ -130,12 +134,11 @@ base0F - #{{base0F-hex}} - Deprecated, Opening/Closing Embedded Language Tags,
130134
font-style: italic;
131135
}
132136

133-
.hljs-meta-keyword {
134-
/* color: #{{base0E-hex}}; */
135-
font-weight: bold;
136-
}
137-
138137
/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
139138
.hljs-meta {
140139
color: #{{base0F-hex}};
141-
}
140+
}
141+
142+
.hljs-meta-keyword {
143+
font-weight: bold;
144+
}

themes/base16-3024.css

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
/*!
2+
Theme: 3024
3+
Author: Jan T. Sott (http://github.com/idleberg)
4+
5+
This theme was auto-generated from 3024 by Highlight.js Base16
6+
template builder.
7+
*/
8+
9+
/*
10+
base00 - #090300 - Default Background
11+
base01 - #3a3432 - Lighter Background (Used for status bars, line number and folding marks)
12+
base02 - #4a4543 - Selection Background
13+
base03 - #5c5855 - Comments, Invisibles, Line Highlighting
14+
base04 - #807d7c - Dark Foreground (Used for status bars)
15+
base05 - #a5a2a2 - Default Foreground, Caret, Delimiters, Operators
16+
base06 - #d6d5d4 - Light Foreground (Not often used)
17+
base07 - #f7f7f7 - Light Background (Not often used)
18+
base08 - #db2d20 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
19+
base09 - #e8bbd0 - Integers, Boolean, Constants, XML Attributes, Markup Link Url
20+
base0A - #fded02 - Classes, Markup Bold, Search Text Background
21+
base0B - #01a252 - Strings, Inherited Class, Markup Code, Diff Inserted
22+
base0C - #b5e4f4 - Support, Regular Expressions, Escape Characters, Markup Quotes
23+
base0D - #01a0e4 - Functions, Methods, Attribute IDs, Headings
24+
base0E - #a16a94 - Keywords, Storage, Selector, Markup Italic, Diff Changed
25+
base0F - #cdab53 - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
26+
*/
27+
28+
.hljs {
29+
display: block;
30+
overflow-x: auto;
31+
padding: 1em;
32+
color: #a5a2a2;
33+
background: #090300;
34+
}
35+
36+
.hljs ::selection {
37+
color: #4a4543;
38+
}
39+
40+
.hljs-formula,
41+
.hljs-params,
42+
.hljs-property
43+
{}
44+
45+
/* base03 - #5c5855 - Comments, Invisibles, Line Highlighting */
46+
.hljs-comment {
47+
color: #5c5855;
48+
}
49+
50+
/* base04 - #807d7c - Dark Foreground (Used for status bars) */
51+
.hljs-tag {
52+
color: #807d7c;
53+
}
54+
55+
/* base05 - #a5a2a2 - Default Foreground, Caret, Delimiters, Operators */
56+
.hljs-subst {
57+
color: #a5a2a2;
58+
}
59+
.hljs-punctuation,
60+
.hljs-operator {
61+
color: #a5a2a2;
62+
}
63+
64+
/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
65+
.hljs-bullet,
66+
.hljs-variable,
67+
.hljs-template-variable,
68+
.hljs-selector-tag,
69+
.hljs-name,
70+
.hljs-deletion {
71+
color: #db2d20;
72+
}
73+
74+
/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
75+
.hljs-symbol,
76+
.hljs-number,
77+
.hljs-link,
78+
.hljs-attr,
79+
.hljs-literal {
80+
color: #e8bbd0;
81+
}
82+
83+
/* base0A - Classes, Markup Bold, Search Text Background */
84+
.hljs-title,
85+
.hljs-class .hljs-title,
86+
.hljs-title.class_
87+
{
88+
color: #fded02;
89+
}
90+
91+
.hljs-strong {
92+
font-weight:bold;
93+
color: #fded02;
94+
}
95+
96+
/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
97+
.hljs-code,
98+
.hljs-addition,
99+
.hljs-title.class_.inherited__,
100+
.hljs-string {
101+
color: #01a252;
102+
}
103+
104+
/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
105+
.hljs-built_in,
106+
.hljs-doctag, /* guessing */
107+
.hljs-quote,
108+
.hljs-keyword.hljs-atrule,
109+
.hljs-regexp {
110+
color: #b5e4f4;
111+
}
112+
113+
/* base0D - Functions, Methods, Attribute IDs, Headings */
114+
.hljs-function .hljs-title,
115+
.hljs-attribute,
116+
.hljs-title.function_,
117+
.hljs-section {
118+
color: #01a0e4;
119+
}
120+
121+
/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
122+
.hljs-type,
123+
/* .hljs-selector-id, */
124+
/* .hljs-selector-class, */
125+
/* .hljs-selector-attr, */
126+
/* .hljs-selector-pseudo, */
127+
.hljs-template-tag,
128+
.diff .hljs-meta,
129+
.hljs-keyword {
130+
color: #a16a94;
131+
}
132+
.hljs-emphasis {
133+
color: #a16a94;
134+
font-style: italic;
135+
}
136+
137+
/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
138+
.hljs-meta {
139+
color: #cdab53;
140+
}
141+
142+
.hljs-meta-keyword {
143+
font-weight: bold;
144+
}

themes/base16-apathy.css

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
/*!
2+
Theme: Apathy
3+
Author: Jannik Siebert (https://github.com/janniks)
4+
5+
This theme was auto-generated from apathy by Highlight.js Base16
6+
template builder.
7+
*/
8+
9+
/*
10+
base00 - #031A16 - Default Background
11+
base01 - #0B342D - Lighter Background (Used for status bars, line number and folding marks)
12+
base02 - #184E45 - Selection Background
13+
base03 - #2B685E - Comments, Invisibles, Line Highlighting
14+
base04 - #5F9C92 - Dark Foreground (Used for status bars)
15+
base05 - #81B5AC - Default Foreground, Caret, Delimiters, Operators
16+
base06 - #A7CEC8 - Light Foreground (Not often used)
17+
base07 - #D2E7E4 - Light Background (Not often used)
18+
base08 - #3E9688 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
19+
base09 - #3E7996 - Integers, Boolean, Constants, XML Attributes, Markup Link Url
20+
base0A - #3E4C96 - Classes, Markup Bold, Search Text Background
21+
base0B - #883E96 - Strings, Inherited Class, Markup Code, Diff Inserted
22+
base0C - #963E4C - Support, Regular Expressions, Escape Characters, Markup Quotes
23+
base0D - #96883E - Functions, Methods, Attribute IDs, Headings
24+
base0E - #4C963E - Keywords, Storage, Selector, Markup Italic, Diff Changed
25+
base0F - #3E965B - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
26+
*/
27+
28+
.hljs {
29+
display: block;
30+
overflow-x: auto;
31+
padding: 1em;
32+
color: #81B5AC;
33+
background: #031A16;
34+
}
35+
36+
.hljs ::selection {
37+
color: #184E45;
38+
}
39+
40+
.hljs-formula,
41+
.hljs-params,
42+
.hljs-property
43+
{}
44+
45+
/* base03 - #2B685E - Comments, Invisibles, Line Highlighting */
46+
.hljs-comment {
47+
color: #2B685E;
48+
}
49+
50+
/* base04 - #5F9C92 - Dark Foreground (Used for status bars) */
51+
.hljs-tag {
52+
color: #5F9C92;
53+
}
54+
55+
/* base05 - #81B5AC - Default Foreground, Caret, Delimiters, Operators */
56+
.hljs-subst {
57+
color: #81B5AC;
58+
}
59+
.hljs-punctuation,
60+
.hljs-operator {
61+
color: #81B5AC;
62+
}
63+
64+
/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
65+
.hljs-bullet,
66+
.hljs-variable,
67+
.hljs-template-variable,
68+
.hljs-selector-tag,
69+
.hljs-name,
70+
.hljs-deletion {
71+
color: #3E9688;
72+
}
73+
74+
/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
75+
.hljs-symbol,
76+
.hljs-number,
77+
.hljs-link,
78+
.hljs-attr,
79+
.hljs-literal {
80+
color: #3E7996;
81+
}
82+
83+
/* base0A - Classes, Markup Bold, Search Text Background */
84+
.hljs-title,
85+
.hljs-class .hljs-title,
86+
.hljs-title.class_
87+
{
88+
color: #3E4C96;
89+
}
90+
91+
.hljs-strong {
92+
font-weight:bold;
93+
color: #3E4C96;
94+
}
95+
96+
/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
97+
.hljs-code,
98+
.hljs-addition,
99+
.hljs-title.class_.inherited__,
100+
.hljs-string {
101+
color: #883E96;
102+
}
103+
104+
/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
105+
.hljs-built_in,
106+
.hljs-doctag, /* guessing */
107+
.hljs-quote,
108+
.hljs-keyword.hljs-atrule,
109+
.hljs-regexp {
110+
color: #963E4C;
111+
}
112+
113+
/* base0D - Functions, Methods, Attribute IDs, Headings */
114+
.hljs-function .hljs-title,
115+
.hljs-attribute,
116+
.hljs-title.function_,
117+
.hljs-section {
118+
color: #96883E;
119+
}
120+
121+
/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
122+
.hljs-type,
123+
/* .hljs-selector-id, */
124+
/* .hljs-selector-class, */
125+
/* .hljs-selector-attr, */
126+
/* .hljs-selector-pseudo, */
127+
.hljs-template-tag,
128+
.diff .hljs-meta,
129+
.hljs-keyword {
130+
color: #4C963E;
131+
}
132+
.hljs-emphasis {
133+
color: #4C963E;
134+
font-style: italic;
135+
}
136+
137+
/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
138+
.hljs-meta {
139+
color: #3E965B;
140+
}
141+
142+
.hljs-meta-keyword {
143+
font-weight: bold;
144+
}

0 commit comments

Comments
 (0)