UNPKG

2.01 kBCSSView Raw
1/**
2 * MIT License
3 * Copyright (c) 2021 Ayush Saini
4 * Holi Theme for prism.js
5 * @author Ayush Saini <@AyushCodes on Twitter>
6 */
7
8code[class*='language-'],
9pre[class*='language-'] {
10 color: #d6e7ff;
11 background: #030314;
12 text-shadow: none;
13 font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
14 font-size: 1em;
15 line-height: 1.5;
16 letter-spacing: .2px;
17 white-space: pre;
18 word-spacing: normal;
19 word-break: normal;
20 word-wrap: normal;
21 text-align: left;
22
23 -moz-tab-size: 4;
24 -o-tab-size: 4;
25 tab-size: 4;
26
27 -webkit-hyphens: none;
28 -moz-hyphens: none;
29 -ms-hyphens: none;
30 hyphens: none;
31}
32
33pre[class*='language-']::-moz-selection,
34pre[class*='language-'] ::-moz-selection,
35code[class*='language-']::-moz-selection,
36code[class*='language-'] ::-moz-selection,
37pre[class*='language-']::selection,
38pre[class*='language-'] ::selection,
39code[class*='language-']::selection,
40code[class*='language-'] ::selection {
41 color: inherit;
42 background: #1d3b54;
43 text-shadow: none;
44}
45
46pre[class*='language-'] {
47 border: 1px solid #2a4555;
48 border-radius: 5px;
49 padding: 1.5em 1em;
50 margin: 1em 0;
51 overflow: auto;
52}
53
54:not(pre) > code[class*='language-'] {
55 color: #f0f6f6;
56 background: #2a4555;
57 padding: 0.2em 0.3em;
58 border-radius: 0.2em;
59 box-decoration-break: clone;
60}
61
62.token.comment,
63.token.prolog,
64.token.doctype,
65.token.cdata {
66 color: #446e69;
67}
68
69.token.punctuation {
70 color: #d6b007;
71}
72
73.token.property,
74.token.tag,
75.token.boolean,
76.token.number,
77.token.constant,
78.token.symbol,
79.token.deleted {
80 color: #d6e7ff;
81}
82
83.token.selector,
84.token.attr-name,
85.token.builtin,
86.token.inserted {
87 color: #e60067;
88}
89
90.token.string,
91.token.char {
92 color: #49c6ec;
93}
94
95.token.operator,
96.token.entity,
97.token.url,
98.language-css .token.string,
99.style .token.string {
100 color: #ec8e01;
101 background: transparent;
102}
103
104.token.atrule,
105.token.attr-value,
106.token.keyword {
107 color: #0fe468;
108}
109
110.token.function,
111.token.class-name {
112 color: #78f3e9;
113}
114
115.token.regex,
116.token.important,
117.token.variable {
118 color: #d6e7ff;
119}