UNPKG

2.44 kBCSSView Raw
1/**
2 * a11y-dark theme for JavaScript, CSS, and HTML
3 * Based on the okaidia theme: https://github.com/PrismJS/prism/blob/gh-pages/themes/prism-okaidia.css
4 * @author ericwbailey
5 */
6
7code[class*="language-"],
8pre[class*="language-"] {
9 color: #f8f8f2;
10 background: none;
11 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
12 text-align: left;
13 white-space: pre;
14 word-spacing: normal;
15 word-break: normal;
16 word-wrap: normal;
17 line-height: 1.5;
18
19 -moz-tab-size: 4;
20 -o-tab-size: 4;
21 tab-size: 4;
22
23 -webkit-hyphens: none;
24 -moz-hyphens: none;
25 -ms-hyphens: none;
26 hyphens: none;
27}
28
29/* Code blocks */
30pre[class*="language-"] {
31 padding: 1em;
32 margin: 0.5em 0;
33 overflow: auto;
34 border-radius: 0.3em;
35}
36
37:not(pre) > code[class*="language-"],
38pre[class*="language-"] {
39 background: #2b2b2b;
40}
41
42/* Inline code */
43:not(pre) > code[class*="language-"] {
44 padding: 0.1em;
45 border-radius: 0.3em;
46 white-space: normal;
47}
48
49.token.comment,
50.token.prolog,
51.token.doctype,
52.token.cdata {
53 color: #d4d0ab;
54}
55
56.token.punctuation {
57 color: #fefefe;
58}
59
60.token.property,
61.token.tag,
62.token.constant,
63.token.symbol,
64.token.deleted {
65 color: #ffa07a;
66}
67
68.token.boolean,
69.token.number {
70 color: #00e0e0;
71}
72
73.token.selector,
74.token.attr-name,
75.token.string,
76.token.char,
77.token.builtin,
78.token.inserted {
79 color: #abe338;
80}
81
82.token.operator,
83.token.entity,
84.token.url,
85.language-css .token.string,
86.style .token.string,
87.token.variable {
88 color: #00e0e0;
89}
90
91.token.atrule,
92.token.attr-value,
93.token.function {
94 color: #ffd700;
95}
96
97.token.keyword {
98 color: #00e0e0;
99}
100
101.token.regex,
102.token.important {
103 color: #ffd700;
104}
105
106.token.important,
107.token.bold {
108 font-weight: bold;
109}
110
111.token.italic {
112 font-style: italic;
113}
114
115.token.entity {
116 cursor: help;
117}
118
119@media screen and (-ms-high-contrast: active) {
120 code[class*="language-"],
121 pre[class*="language-"] {
122 color: windowText;
123 background: window;
124 }
125
126 :not(pre) > code[class*="language-"],
127 pre[class*="language-"] {
128 background: window;
129 }
130
131 .token.important {
132 background: highlight;
133 color: window;
134 font-weight: normal;
135 }
136
137 .token.atrule,
138 .token.attr-value,
139 .token.function,
140 .token.keyword,
141 .token.operator,
142 .token.selector {
143 font-weight: bold;
144 }
145
146 .token.attr-value,
147 .token.comment,
148 .token.doctype,
149 .token.function,
150 .token.keyword,
151 .token.operator,
152 .token.property,
153 .token.string {
154 color: highlight;
155 }
156
157 .token.attr-value,
158 .token.url {
159 font-weight: normal;
160 }
161}