forked from tailwindlabs/tailwindcss.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprism.css
91 lines (74 loc) · 1.6 KB
/
prism.css
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
79
80
81
82
83
84
85
86
87
88
89
90
91
.token.tag,
.token.class-name,
.token.selector,
.token.selector .class,
.token.selector.class,
.token.function {
@apply text-pink-400;
}
.token.attr-name,
.token.keyword,
.token.module,
.token.rule,
.token.pseudo-class,
.token.important {
@apply text-slate-300;
}
.token.attr-value,
.token.class,
.token.string {
@apply text-sky-300;
}
.token.punctuation,
.token.attr-equals {
@apply text-slate-500;
}
.token.attr-value * {
@apply text-sky-300;
}
.token.attr-value .attr-equals,
.token.attr-value .attr-equals + .punctuation,
.token.attr-value > .punctuation:last-child {
@apply text-slate-500;
}
.token.property {
@apply text-sky-300;
}
.token.unit {
@apply text-teal-200;
}
.language-shell .token:not(.comment),
.token.atapply .token:not(.rule):not(.important):not(.punctuation) {
color: inherit;
}
.language-css .token.function {
@apply text-teal-200;
}
.token.comment,
.token.operator,
.token.combinator {
@apply text-slate-400;
}
.token.unchanged {
@apply block;
}
.token.deleted,
.token.inserted {
@apply block relative -mx-9 pl-8 pr-5 border-l-4 before:absolute before:top-0 before:left-4;
}
.token.inserted {
@apply bg-teal-400/[0.15] border-teal-400 before:content-['+'] before:text-teal-400;
}
.token.deleted {
@apply bg-rose-500/[0.15] border-rose-400 before:content-['-'] before:text-rose-400;
}
pre[class^='language-diff-'] {
@apply flex px-9;
}
pre[class^='language-diff-'] > code {
@apply flex-none min-w-full;
}
/* targets the `­` in a code example */
span.code-highlight.bg-code-highlight:has(> span[title*='\AD']) {
@apply bg-pink-500/10 text-pink-400 mx-[1px];
}