Skip to content

Commit 8d9851e

Browse files
authored
refactor: Hugo 0.146.0 comes with Chroma 2.16 which has a fix for Terraform highlighting (#57)
1 parent 9d5b790 commit 8d9851e

File tree

1 file changed

+27
-187
lines changed

1 file changed

+27
-187
lines changed

assets/css/syntax.css

Lines changed: 27 additions & 187 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,33 @@
22
@source "hugo_stats.json";
33

44
/*
5-
Generated using: hugo gen chromastyles --style=github-dark -- then heavily modified toward's highlightJS a11y-dark
5+
Generated using: hugo gen chromastyles --style=github-dark -- then modified toward's a11y-dark theme
66
*/
7-
87
/* Background */
98
.bg {
109
@apply bg-zinc-800;
1110
@apply text-neutral-50;
1211
}
12+
/* code -- this allows `code` to be var (--accent-color) while making text in a
13+
* ``` to not be the accent color ``` */
14+
.chroma code[class^="language-"] {
15+
@apply text-neutral-50;
16+
/* Styles for code elements with language classes within .chroma containers */
17+
}
1318
/* PreWrapper */
1419
.chroma {
15-
@apply text-neutral-50;
1620
@apply bg-zinc-800;
21+
@apply text-neutral-50;
1722
}
18-
/* Other
19-
/* .chroma .x {
20-
} */
2123
/* Error */
2224
.chroma .err {
2325
color: #f85149;
2426
}
25-
/* CodeLine */
26-
.chroma .cl {
27-
@apply text-neutral-50;
28-
}
2927
/* LineLink */
3028
.chroma .lnlinks {
3129
outline: none;
32-
text-decoration: none;
3330
@apply text-neutral-50;
31+
text-decoration: none;
3432
}
3533
/* LineTableTD */
3634
.chroma .lntd {
@@ -44,42 +42,42 @@ Generated using: hugo gen chromastyles --style=github-dark -- then heavily modif
4442
margin: 0;
4543
padding: 0;
4644
border: 0;
47-
@apply sm:block sm:overflow-x-clip md:overflow-x-auto;
45+
border-spacing: 0;
4846
}
4947
/* LineHighlight */
5048
.chroma .hl {
51-
background-color: #6e7681;
49+
@apply bg-zinc-600;
5250
}
5351
/* LineNumbersTable */
5452
.chroma .lnt {
5553
margin-right: 0.4em;
5654
padding: 0 0.4em 0 0.4em;
55+
@apply text-neutral-50;
5756
white-space: pre;
5857
-webkit-user-select: none;
5958
user-select: none;
60-
@apply text-neutral-50;
6159
}
6260
/* LineNumbers */
6361
.chroma .ln {
6462
margin-right: 0.4em;
6563
padding: 0 0.4em 0 0.4em;
64+
@apply text-neutral-50;
6665
white-space: pre;
6766
-webkit-user-select: none;
6867
user-select: none;
69-
@apply text-neutral-50;
7068
}
7169
/* Line */
7270
.chroma .line {
73-
@apply text-neutral-50;
7471
display: flex;
7572
}
7673
/* Keyword */
7774
.chroma .k {
7875
color: #abe338;
7976
}
80-
/* KeywordConstant
77+
/* KeywordConstant */
8178
.chroma .kc {
82-
} */
79+
color: #abe338;
80+
}
8381
/* KeywordDeclaration */
8482
.chroma .kd {
8583
color: #abe338;
@@ -100,146 +98,42 @@ Generated using: hugo gen chromastyles --style=github-dark -- then heavily modif
10098
.chroma .kt {
10199
color: #abe338;
102100
}
103-
/* Name
104-
.chroma .n {
105-
color: #ffa07a;
106-
} */
107-
108101
/* NameAttribute */
109102
.chroma .na {
110103
@apply text-neutral-50;
111104
}
112-
113-
/* NameBuiltin */
114-
.cl + .na + .nb {
115-
@apply text-neutral-50;
116-
}
117-
.chroma .nb {
118-
color: #f5ab35;
119-
}
120-
121-
.na + .nb + .p + .nx {
122-
@apply text-neutral-50;
123-
}
124-
125-
.si + .nb {
126-
color: #abe338;
127-
}
128-
.p + .nx {
129-
color: #abe338;
130-
}
131-
132-
.s2 + .nx {
133-
color: #abe338;
134-
}
135-
.chroma .s2 + .nx {
136-
color: #abe338;
137-
}
138-
139-
.si + .nb + .p + .nx + .p + .nx {
140-
color: #abe338;
141-
}
142-
143-
.nb .nv {
144-
@apply text-neutral-50;
145-
}
146-
147-
/* NameBuiltinPseudo
148-
.chroma .bp {
149-
} */
150105
/* NameClass */
151106
.chroma .nc {
152-
color: #ffa07a;
107+
color: #FF8C38;
153108
font-weight: bold;
154109
}
155110
/* NameConstant */
156111
.chroma .no {
157-
color: #ffa07a;
158-
/* color: #79c0ff; */
112+
color: #FF8C38;
159113
font-weight: bold;
160114
}
161115
/* NameDecorator */
162116
.chroma .nd {
163-
color: #ffa07a;
164-
/* color: #d2a8ff; */
117+
color: #FF8C38;
165118
font-weight: bold;
166119
}
167-
/* NameEntity */
168-
.chroma .ni {
169-
color: #ffa07a;
170-
}
171120
/* NameException */
172121
.chroma .ne {
173-
color: #ffa07a;
122+
color: #FF8C38;
174123
font-weight: bold;
175124
}
176125
/* NameFunction */
177126
.chroma .nf {
178-
color: #ffa07a;
179-
font-weight: bold;
180-
}
181-
/* NameFunctionMagic */
182-
.chroma .fm {
183-
color: #ffa07a;
184-
}
185-
/* NameLabel */
186-
.chroma .nl {
187-
color: #ffa07a;
127+
color: #FF8C38;
188128
font-weight: bold;
189129
}
190-
/* NameNamespace */
191-
.chroma .nn {
192-
color: #ffa07a;
193-
}
194130
/* NameOther */
195-
.ci + .nx {
196-
@apply text-neutral-100;
197-
}
198-
199-
.na + .nx {
200-
@apply text-neutral-100;
201-
}
202-
203-
.nx + .p + .nx {
131+
.chroma .nx {
204132
@apply text-neutral-100;
205133
}
206-
/* .chroma .nx {
207-
} */
208-
/* NameProperty */
209-
.chroma .py {
210-
color: #ffa07a;
211-
}
212-
/* NameTag
134+
/* NameTag */
213135
.chroma .nt {
214-
} */
215-
216-
/* NameVariable */
217-
.chroma .nv {
218-
color: #ffa07a;
219-
}
220-
221-
.nb + .nv {
222-
@apply text-neutral-50;
223-
}
224-
225-
.nb + .nv + .o + .m {
226-
@apply text-neutral-50;
227-
}
228-
/* NameVariableClass */
229-
.chroma .vc {
230-
color: #ffa07a;
231-
}
232-
/* NameVariableGlobal */
233-
.chroma .vg {
234-
color: #ffa07a;
235-
}
236-
/* NameVariableInstance */
237-
.chroma .vi {
238-
color: #ffa07a;
239-
}
240-
/* NameVariableMagic */
241-
.chroma .vm {
242-
color: #ffa07a;
136+
color: #FF8C38;
243137
}
244138
/* Literal */
245139
.chroma .l {
@@ -277,7 +171,6 @@ Generated using: hugo gen chromastyles --style=github-dark -- then heavily modif
277171
.chroma .s2 {
278172
color: #abe338;
279173
}
280-
281174
/* LiteralStringEscape */
282175
.chroma .se {
283176
color: #abe338;
@@ -326,43 +219,23 @@ Generated using: hugo gen chromastyles --style=github-dark -- then heavily modif
326219
.chroma .mi {
327220
color: #f5ab35;
328221
}
329-
.mi + .kt {
330-
color: #f5ab35;
331-
}
332222
/* LiteralNumberIntegerLong */
333223
.chroma .il {
334224
color: #f5ab35;
335225
}
336-
337226
/* LiteralNumberOct */
338227
.chroma .mo {
339228
color: #f5ab35;
340229
}
341230
/* Operator */
342231
.chroma .o {
232+
color: #abe338;
343233
font-weight: bold;
344234
}
345-
346-
.o + .nt {
347-
color: gold;
348-
}
349-
350-
.nt + .o + .nt {
351-
color: #ffa07a;
352-
}
353-
354235
/* OperatorWord */
355236
.chroma .ow {
356-
color: #ff7b72;
357-
font-weight: bold;
358-
}
359-
/* Punctuation */
360-
.chroma .p {
361237
color: #abe338;
362-
}
363-
364-
.cl + .nt {
365-
@apply text-neutral-50;
238+
font-weight: bold;
366239
}
367240
/* Comment */
368241
.chroma .c {
@@ -402,10 +275,6 @@ Generated using: hugo gen chromastyles --style=github-dark -- then heavily modif
402275
font-style: italic;
403276
font-weight: bold;
404277
}
405-
/* Generic
406-
.chroma .g {
407-
}
408-
*/
409278
/* GenericDeleted */
410279
.chroma .gd {
411280
background-color: #490202;
@@ -415,45 +284,16 @@ Generated using: hugo gen chromastyles --style=github-dark -- then heavily modif
415284
.chroma .ge {
416285
font-style: italic;
417286
}
418-
/* GenericError */
419-
.chroma .gr {
420-
color: #ffa198;
421-
}
422-
/* GenericHeading */
423-
.chroma .gh {
424-
color: #79c0ff;
425-
font-weight: bold;
426-
}
427287
/* GenericInserted */
428288
.chroma .gi {
429289
background-color: #0f5323;
430290
color: #56d364;
431291
}
432-
/* GenericOutput */
433-
.chroma .go {
434-
@apply text-neutral-50;
435-
}
436-
/* GenericPrompt */
437-
.chroma .gp {
438-
@apply text-neutral-50;
439-
}
440292
/* GenericStrong */
441293
.chroma .gs {
442294
font-weight: bold;
443295
}
444296
/* GenericSubheading */
445297
.chroma .gu {
446-
color: #79c0ff;
447-
}
448-
/* GenericTraceback */
449-
.chroma .gt {
450-
color: #ff7b72;
451-
}
452-
/* GenericUnderline */
453-
.chroma .gl {
454-
text-decoration: underline;
455-
}
456-
/* TextWhitespace */
457-
.chroma .w {
458-
@apply bg-zinc-800;
298+
@apply text-neutral-200;
459299
}

0 commit comments

Comments
 (0)