Skip to content

Commit 2591a8d

Browse files
committed
feat: Add complete CSS for all hljs classes in playground
1 parent b0b5445 commit 2591a8d

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

docs/.vitepress/theme/custom.css

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,3 +286,71 @@
286286
.dark .djot-playground .preview .hljs-built_in {
287287
color: #79c0ff;
288288
}
289+
290+
.djot-playground .preview .hljs-addition {
291+
background-color: rgba(46, 160, 67, 0.15);
292+
color: #22863a;
293+
}
294+
295+
.dark .djot-playground .preview .hljs-addition {
296+
background-color: rgba(46, 160, 67, 0.2);
297+
color: #7ee787;
298+
}
299+
300+
.djot-playground .preview .hljs-deletion {
301+
background-color: rgba(248, 81, 73, 0.15);
302+
color: #cb2431;
303+
}
304+
305+
.dark .djot-playground .preview .hljs-deletion {
306+
background-color: rgba(248, 81, 73, 0.2);
307+
color: #f85149;
308+
}
309+
310+
.djot-playground .preview .hljs-link {
311+
color: #0366d6;
312+
text-decoration: underline;
313+
}
314+
315+
.dark .djot-playground .preview .hljs-link {
316+
color: #58a6ff;
317+
}
318+
319+
.djot-playground .preview .hljs-bullet {
320+
color: var(--vp-c-brand-1);
321+
}
322+
323+
.djot-playground .preview .hljs-code {
324+
background: var(--vp-code-block-bg);
325+
padding: 0.1em 0.3em;
326+
border-radius: 3px;
327+
}
328+
329+
.djot-playground .preview .hljs-meta {
330+
color: #6a737d;
331+
}
332+
333+
.dark .djot-playground .preview .hljs-meta {
334+
color: #8b949e;
335+
}
336+
337+
.djot-playground .preview .hljs-symbol {
338+
color: #6f42c1;
339+
}
340+
341+
.dark .djot-playground .preview .hljs-symbol {
342+
color: #d2a8ff;
343+
}
344+
345+
.djot-playground .preview .hljs-formula {
346+
color: #005cc5;
347+
font-style: italic;
348+
}
349+
350+
.dark .djot-playground .preview .hljs-formula {
351+
color: #79c0ff;
352+
}
353+
354+
.djot-playground .preview .hljs-punctuation {
355+
color: var(--vp-c-text-2);
356+
}

0 commit comments

Comments
 (0)