From dda21191dfbc6217b621e401f8673dfc03e34041 Mon Sep 17 00:00:00 2001 From: D-K-P <8297864+D-K-P@users.noreply.github.com> Date: Thu, 29 Jan 2026 13:37:09 +0000 Subject: [PATCH] Added Trigger.dark theme to the docs --- docs/docs.json | 5 +++++ docs/style.css | 30 +++++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/docs/docs.json b/docs/docs.json index cff62e6d09..4a3c312ff5 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -439,6 +439,11 @@ "display": "simple" } }, + "styling": { + "codeblocks": { + "theme": "css-variables" + } + }, "appearance": { "default": "dark", "strict": true diff --git a/docs/style.css b/docs/style.css index b209952ad2..94aea582db 100644 --- a/docs/style.css +++ b/docs/style.css @@ -1,3 +1,31 @@ button~.absolute.peer-hover\:opacity-100 { color: #000 -} \ No newline at end of file +} + +:root { + /* Code block colors - Trigger.dark theme */ + --mint-color-background: #121317; + --mint-color-text: #D4D4D4; + --mint-token-constant: #9B99FF; + --mint-token-string: #AFEC73; + --mint-token-comment: #5F6570; + --mint-token-keyword: #E888F8; + --mint-token-parameter: #CCCBFF; + --mint-token-function: #D9F07C; + --mint-token-string-expression: #AFEC73; + --mint-token-punctuation: #878C99; + --mint-token-link: #826DFF; + + /* Shiki css-variables fallbacks */ + --shiki-foreground: #D4D4D4; + --shiki-background: #121317; + --shiki-token-constant: #9B99FF; + --shiki-token-string: #AFEC73; + --shiki-token-comment: #5F6570; + --shiki-token-keyword: #E888F8; + --shiki-token-parameter: #CCCBFF; + --shiki-token-function: #D9F07C; + --shiki-token-string-expression: #AFEC73; + --shiki-token-punctuation: #878C99; + --shiki-token-link: #826DFF; +}