UNPKG

1.79 kBCSSView Raw
1/**
2 * Dracula Theme originally by Zeno Rocha [@zenorocha]
3 * https://draculatheme.com/
4 *
5 * Ported for PrismJS by Albert Vallverdu [@byverdu]
6 */
7
8code[class*="language-"],
9pre[class*="language-"] {
10 color: #f8f8f2;
11 background: none;
12 text-shadow: 0 1px rgba(0, 0, 0, 0.3);
13 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
14 text-align: left;
15 white-space: pre;
16 word-spacing: normal;
17 word-break: normal;
18 word-wrap: normal;
19 line-height: 1.5;
20 -moz-tab-size: 4;
21 -o-tab-size: 4;
22 tab-size: 4;
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: .5em 0;
33 overflow: auto;
34 border-radius: 0.3em;
35}
36
37:not(pre) > code[class*="language-"],
38pre[class*="language-"] {
39 background: #282a36;
40}
41
42/* Inline code */
43:not(pre) > code[class*="language-"] {
44 padding: .1em;
45 border-radius: .3em;
46 white-space: normal;
47}
48
49.token.comment,
50.token.prolog,
51.token.doctype,
52.token.cdata {
53 color: #6272a4;
54}
55
56.token.punctuation {
57 color: #f8f8f2;
58}
59
60.namespace {
61 opacity: .7;
62}
63
64.token.property,
65.token.tag,
66.token.constant,
67.token.symbol,
68.token.deleted {
69 color: #ff79c6;
70}
71
72.token.boolean,
73.token.number {
74 color: #bd93f9;
75}
76
77.token.selector,
78.token.attr-name,
79.token.string,
80.token.char,
81.token.builtin,
82.token.inserted {
83 color: #50fa7b;
84}
85
86.token.operator,
87.token.entity,
88.token.url,
89.language-css .token.string,
90.style .token.string,
91.token.variable {
92 color: #f8f8f2;
93}
94
95.token.atrule,
96.token.attr-value,
97.token.function,
98.token.class-name {
99 color: #f1fa8c;
100}
101
102.token.keyword {
103 color: #8be9fd;
104}
105
106.token.regex,
107.token.important {
108 color: #ffb86c;
109}
110
111.token.important,
112.token.bold {
113 font-weight: bold;
114}
115
116.token.italic {
117 font-style: italic;
118}
119
120.token.entity {
121 cursor: help;
122}