-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathprism-theme.ts
More file actions
78 lines (77 loc) · 1.48 KB
/
prism-theme.ts
File metadata and controls
78 lines (77 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import type { PrismTheme } from "prism-react-renderer";
// This theme is based on Radix colors and works in light and dark mode
export const prismTheme = {
plain: {
color: "var(--gray-12)",
backgroundColor: "var(--gray-2)",
},
styles: [
{
types: ["comment", "prolog", "doctype", "cdata"],
style: {
color: "var(--gray-10)",
fontStyle: "italic",
},
},
{
types: ["namespace"],
style: {
opacity: 0.7,
},
},
{
types: ["string", "attr-value"],
style: {
color: "var(--cyan-12)",
},
},
{
types: ["punctuation", "operator"],
style: {
color: "var(--gray-12)",
},
},
{
types: [
"entity",
"url",
"symbol",
"number",
"boolean",
"variable",
"constant",
"regex",
"inserted",
"function",
"class-name",
],
style: {
color: "var(--cyan-11)",
},
},
{
types: ["atrule", "keyword", "attr-name", "selector"],
style: {
color: "var(--slate-11)",
},
},
{
types: ["deleted", "tag", "property"],
style: {
color: "var(--gray-12)",
},
},
{
types: ["function-variable"],
style: {
color: "var(--purple-11)",
},
},
{
types: ["tag", "selector", "keyword"],
style: {
color: "var(--crimson-11)",
},
},
],
} satisfies PrismTheme;