aboutsummaryrefslogtreecommitdiff
path: root/styles/code.css
blob: b78dde2cf5ed50e6d2475d1779494ac7c49f3654 (plain)
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
pre {
	background-color: var(--oxford-blue);
	border-radius: 6px;
	padding: 6px;
}

.prismjs code { color: var(--magnolia); }

.prismjs .token.comment
{ font-style: italic; }

.prismjs .token.keyword,
.prismjs .token.annotation
{ font-weight: 700; }

.prismjs .token.string,
.prismjs .token.number
{ color: var(--fg); }

.prismjs .token.comment {
	color: var(--heliotrope-gray);
	opacity: .7;
}

.prismjs .token.keyword
{ color: var(--fire-opal); }

.prismjs .token.annotation
{ color: var(--cyan-process); }

.prismjs .token.punctuation:not(.annotation)
.prismjs .token.operator
{ opacity: .8; }

@media (prefers-color-scheme: light) {
	pre { background-color: var(--heliotrope-gray); }

	.prismjs code { color: var(--fg); }

	.prismjs .token.string,
	.prismjs .token.number
	{ opacity: .8; }

	.prismjs .token.comment {
		color: var(--oxford-blue);
		opacity: .4;
	}
}