Skip to content

Commit 4631bc7

Browse files
committed
feat: ✨ add new syntax highlighting themes: Astral Green, Devibeans, Dracula, and VS2015
1 parent 3f1fc4f commit 4631bc7

File tree

5 files changed

+512
-1
lines changed

5 files changed

+512
-1
lines changed

content/sesion01/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="stylesheet" href="../custom.css">
88
<link rel="stylesheet" href="../../dist/reveal.css">
99
<link rel="stylesheet" href="../../dist/theme/black.css" id="theme">
10-
<link rel="stylesheet" href="../../plugin/highlight/monokai.css">
10+
<link rel="stylesheet" href="../../plugin/highlight/dracula.css">
1111
<link rel="stylesheet" href="../../plugin/pointer/pointer.css" />
1212
</head>
1313

plugin/highlight/astral-green.css

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
/*
2+
Astral Green 🪐 style - based on VS Code theme
3+
*/
4+
5+
pre code.hljs {
6+
display: block;
7+
overflow-x: auto;
8+
padding: 1em
9+
}
10+
11+
code.hljs {
12+
padding: 3px 5px
13+
}
14+
15+
.hljs {
16+
background: #1e1e1e;
17+
color: #d4d4d4
18+
}
19+
20+
.hljs-keyword,
21+
.hljs-literal,
22+
.hljs-name,
23+
.hljs-symbol {
24+
color: #569cd6
25+
}
26+
27+
.hljs-link {
28+
color: #29d3ad;
29+
text-decoration: underline
30+
}
31+
32+
.hljs-built_in,
33+
.hljs-type {
34+
color: #4ccdae
35+
}
36+
37+
.hljs-class,
38+
.hljs-number {
39+
color: #23d18b
40+
}
41+
42+
.hljs-meta .hljs-string,
43+
.hljs-string {
44+
color: #0dbc79
45+
}
46+
47+
.hljs-regexp,
48+
.hljs-template-tag {
49+
color: #17d5a8
50+
}
51+
52+
.hljs-formula,
53+
.hljs-function,
54+
.hljs-params,
55+
.hljs-subst,
56+
.hljs-title {
57+
color: #d4d4d4
58+
}
59+
60+
.hljs-comment,
61+
.hljs-quote {
62+
color: #0f9b7a;
63+
font-style: italic
64+
}
65+
66+
.hljs-doctag {
67+
color: #25c09c
68+
}
69+
70+
.hljs-meta,
71+
.hljs-meta .hljs-keyword,
72+
.hljs-tag {
73+
color: #858585
74+
}
75+
76+
.hljs-template-variable,
77+
.hljs-variable {
78+
color: #ff97f4
79+
}
80+
81+
.hljs-attr,
82+
.hljs-attribute {
83+
color: #31dbb3
84+
}
85+
86+
.hljs-section {
87+
color: #29d3ad
88+
}
89+
90+
.hljs-emphasis {
91+
font-style: italic
92+
}
93+
94+
.hljs-strong {
95+
font-weight: 700
96+
}
97+
98+
.hljs-bullet,
99+
.hljs-selector-attr,
100+
.hljs-selector-class,
101+
.hljs-selector-id,
102+
.hljs-selector-pseudo,
103+
.hljs-selector-tag {
104+
color: #17d5a8
105+
}
106+
107+
.hljs-addition {
108+
background-color: #587c0c;
109+
display: inline-block;
110+
width: 100%
111+
}
112+
113+
.hljs-deletion {
114+
background-color: #94151b;
115+
display: inline-block;
116+
width: 100%
117+
}
118+
119+
.hljs-code {
120+
color: #4ccdae
121+
}
122+
123+
.hljs-class .hljs-title {
124+
color: #ffffff
125+
}
126+
127+
.hljs-builtin-name {
128+
color: #25e266
129+
}
130+
131+
.hljs-selector-id {
132+
font-weight: bold;
133+
color: #29d3ad
134+
}
135+
136+
.hljs-keyword,
137+
.hljs-selector-tag,
138+
.hljs-literal,
139+
.hljs-doctag,
140+
.hljs-title,
141+
.hljs-section,
142+
.hljs-type {
143+
font-weight: bold
144+
}

plugin/highlight/devibeans.css

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
pre code.hljs {
2+
display: block;
3+
overflow-x: auto;
4+
padding: 0.5em
5+
}
6+
7+
/*!
8+
Theme: devibeans (dark)
9+
Author: @terminaldweller
10+
Maintainer: @terminaldweller
11+
12+
Inspired by vim's jellybeans theme (https://github.com/nanotech/jellybeans.vim)
13+
*/
14+
.hljs {
15+
background: #141414;
16+
color: #b9b4b1
17+
}
18+
.hljs-attr,
19+
.hljs-template-tag {
20+
color: #8787d7
21+
}
22+
.hljs-comment,
23+
.hljs-doctag,
24+
.hljs-quote {
25+
color: #339966
26+
}
27+
.hljs-params {
28+
color: #a39e9b
29+
}
30+
.hljs-regexp {
31+
color: #d700ff
32+
}
33+
.hljs-tag,
34+
.hljs-selector-id,
35+
.hljs-number,
36+
.hljs-literal {
37+
color: #ef5350
38+
}
39+
.hljs-meta,
40+
.hljs-meta .hljs-keyword {
41+
color: #0087ff
42+
}
43+
/* opt-out */
44+
.hljs-operator,
45+
.hljs-punctuation {
46+
47+
}
48+
.hljs-selector-class,
49+
.hljs-code,
50+
.hljs-formula,
51+
.hljs-variable,
52+
.hljs-template-variable,
53+
.hljs-selector-attr,
54+
.hljs-selector-pseudo,
55+
.hljs-link,
56+
.hljs-keyword {
57+
color: #64b5f6
58+
}
59+
.hljs-built_in,
60+
.hljs-title,
61+
.hljs-deletion {
62+
color: #ff8700
63+
}
64+
.hljs-type,
65+
.hljs-section,
66+
.hljs-function,
67+
.hljs-name,
68+
.hljs-property,
69+
.hljs-attribute {
70+
color: #ffd75f
71+
}
72+
.hljs-meta .hljs-string,
73+
.hljs-string,
74+
.hljs-subst,
75+
.hljs-symbol,
76+
.hljs-bullet,
77+
.hljs-addition {
78+
color: #558b2f
79+
}
80+
.hljs-selector-tag {
81+
color: #9966ff
82+
}
83+
.hljs-emphasis {
84+
font-style: italic
85+
}
86+
.hljs-strong {
87+
font-weight: bold
88+
}

0 commit comments

Comments
 (0)