Skip to content

Commit 0674d74

Browse files
authored
Added Trigger.dark theme to the docs (#2967)
<!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/triggerdotdev/trigger.dev/pull/2967"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end -->
1 parent 9e08712 commit 0674d74

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

docs/docs.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@
446446
"display": "simple"
447447
}
448448
},
449+
"styling": {
450+
"codeblocks": {
451+
"theme": "css-variables"
452+
}
453+
},
449454
"appearance": {
450455
"default": "dark",
451456
"strict": true

docs/style.css

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
11
button~.absolute.peer-hover\:opacity-100 {
22
color: #000
3-
}
3+
}
4+
5+
:root {
6+
/* Code block colors - Trigger.dark theme */
7+
--mint-color-background: #121317;
8+
--mint-color-text: #D4D4D4;
9+
--mint-token-constant: #9B99FF;
10+
--mint-token-string: #AFEC73;
11+
--mint-token-comment: #5F6570;
12+
--mint-token-keyword: #E888F8;
13+
--mint-token-parameter: #CCCBFF;
14+
--mint-token-function: #D9F07C;
15+
--mint-token-string-expression: #AFEC73;
16+
--mint-token-punctuation: #878C99;
17+
--mint-token-link: #826DFF;
18+
19+
/* Shiki css-variables fallbacks */
20+
--shiki-foreground: #D4D4D4;
21+
--shiki-background: #121317;
22+
--shiki-token-constant: #9B99FF;
23+
--shiki-token-string: #AFEC73;
24+
--shiki-token-comment: #5F6570;
25+
--shiki-token-keyword: #E888F8;
26+
--shiki-token-parameter: #CCCBFF;
27+
--shiki-token-function: #D9F07C;
28+
--shiki-token-string-expression: #AFEC73;
29+
--shiki-token-punctuation: #878C99;
30+
--shiki-token-link: #826DFF;
31+
}

0 commit comments

Comments
 (0)