Skip to content

Commit 5712035

Browse files
committed
fix(dashboard): use theme variable for code text
1 parent 8c1437e commit 5712035

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

dashboard/src/scss/_override.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ html {
3737

3838
pre, code, .markdown pre, .markdown code, .release-notes pre, .release-notes code {
3939
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Helvetica Neue", monospace;
40-
color: #111827;
40+
color: var(--astrbot-code-color);
4141
}
4242

4343

dashboard/src/scss/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ $font-size-root: 1rem;
1111
$border-radius-root: 8px;
1212
$cjk-sans-fallback: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei' !default;
1313
$cjk-mono-fallback: 'PingFang SC', 'PingFang TC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei' !default;
14+
$code-text-color: #111827 !default;
1415

1516
:root {
1617
--astrbot-font-cjk-sans: #{$cjk-sans-fallback};
1718
--astrbot-font-cjk-mono: #{$cjk-mono-fallback};
19+
--astrbot-code-color: #{$code-text-color};
1820
}
1921

2022
$body-font-family: 'Roboto', $cjk-sans-fallback, sans-serif !default;

0 commit comments

Comments
 (0)