Skip to content

Commit 8034624

Browse files
committed
feat: adds prism package for color functionality
1 parent ddade78 commit 8034624

2 files changed

Lines changed: 114 additions & 0 deletions

File tree

frontend/packages/prism.css

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/* PrismJS 1.30.0
2+
https://prismjs.com/download#themes=prism-tomorrow&languages=markup+css+clike+javascript+c+cpp+go+java+python+ruby+rust+typescript+typoscript */
3+
code[class*="language-"],
4+
pre[class*="language-"] {
5+
color: #ccc;
6+
background: 0 0;
7+
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
8+
font-size: 1em;
9+
text-align: left;
10+
white-space: pre;
11+
word-spacing: normal;
12+
word-break: normal;
13+
word-wrap: normal;
14+
line-height: 1.5;
15+
-moz-tab-size: 4;
16+
-o-tab-size: 4;
17+
tab-size: 4;
18+
-webkit-hyphens: none;
19+
-moz-hyphens: none;
20+
-ms-hyphens: none;
21+
hyphens: none;
22+
}
23+
pre[class*="language-"] {
24+
padding: 1em;
25+
margin: 0.5em 0;
26+
overflow: auto;
27+
}
28+
:not(pre) > code[class*="language-"],
29+
pre[class*="language-"] {
30+
background: #2d2d2d;
31+
}
32+
:not(pre) > code[class*="language-"] {
33+
padding: 0.1em;
34+
border-radius: 0.3em;
35+
white-space: normal;
36+
}
37+
.token.block-comment,
38+
.token.cdata,
39+
.token.comment,
40+
.token.doctype,
41+
.token.prolog {
42+
color: #999;
43+
}
44+
.token.punctuation {
45+
color: #ccc;
46+
}
47+
.token.attr-name,
48+
.token.deleted,
49+
.token.namespace,
50+
.token.tag {
51+
color: #e2777a;
52+
}
53+
.token.function-name {
54+
color: #6196cc;
55+
}
56+
.token.boolean,
57+
.token.function,
58+
.token.number {
59+
color: #f08d49;
60+
}
61+
.token.class-name,
62+
.token.constant,
63+
.token.property,
64+
.token.symbol {
65+
color: #f8c555;
66+
}
67+
.token.atrule,
68+
.token.builtin,
69+
.token.important,
70+
.token.keyword,
71+
.token.selector {
72+
color: #cc99cd;
73+
}
74+
.token.attr-value,
75+
.token.char,
76+
.token.regex,
77+
.token.string,
78+
.token.variable {
79+
color: #7ec699;
80+
}
81+
.token.entity,
82+
.token.operator,
83+
.token.url {
84+
color: #67cdcc;
85+
}
86+
.token.bold,
87+
.token.important {
88+
font-weight: 700;
89+
}
90+
.token.italic {
91+
font-style: italic;
92+
}
93+
.token.entity {
94+
cursor: help;
95+
}
96+
.token.inserted {
97+
color: green;
98+
}

0 commit comments

Comments
 (0)