Skip to content

Commit 5c8cbe0

Browse files
committed
style: update global CSS variables and adjust background for code blocks
- Added new CSS variables for navigation, sidebar, and inline code backgrounds to enhance theme consistency. - Modified the background style for expressive code blocks to utilize a variable, improving maintainability and theming support.
1 parent 83bf46a commit 5c8cbe0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/styles/global.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,14 @@
5353
--sl-color-gray-6: #ccfbf1;
5454
--sl-color-gray-7: #f0fdfa;
5555
--sl-color-black: #ffffff;
56-
--code-background: red;
56+
--sl-color-bg-nav: #ccfbf1;
57+
--sl-color-bg-sidebar: #ccfbf1;
58+
--sl-color-bg-inline-code: #ccfbf1;
59+
--sl-color-hairline: #ccfbf1;
5760
}
5861

59-
.expressive-code .frame pre {
60-
background: #01302f !important;
62+
:root:not([data-theme="light"]) .expressive-code .frame pre {
63+
background: var(--expressive-code-frame-pre-bg) !important;
6164
}
6265

6366
main .content-panel {

0 commit comments

Comments
 (0)