From ccb66221bd8bfcdc43d63e9c3430db55a843b7e7 Mon Sep 17 00:00:00 2001 From: mostafaei2002 Date: Sun, 19 May 2024 18:57:45 +0330 Subject: [PATCH] fix: generate new colors for code on dark theme with mistral AI --- docs_theme/src/scss/styles.scss | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/docs_theme/src/scss/styles.scss b/docs_theme/src/scss/styles.scss index 7c446e3b6..b844d686e 100644 --- a/docs_theme/src/scss/styles.scss +++ b/docs_theme/src/scss/styles.scss @@ -147,6 +147,46 @@ img { .prettyprint.linenums { box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; } +[data-bs-theme="dark"] { + .com { + color: #9ea0a0; + } + + .lit { + color: #4d90fe; + } + + .pun, + .opn, + .clo { + color: #9ea0a0; + } + + .fun { + color: #fe6160; + } + + .str, + .atv { + color: #fea832; + } + + .kwd, + .prettyprint .tag { + color: #4d69a8; + } + + .typ, + .atn, + .dec, + .var { + color: #38a1a1; + } + + .pln { + color: #c8c8cc; + } +} /* Specify class=linenums on a pre to get line numbering */ ol.linenums {