summaryrefslogtreecommitdiffhomepage
path: root/app/packages/web/src/styles/custom.css
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-05-30 13:58:32 -0400
committerJay V <[email protected]>2025-05-30 13:58:34 -0400
commita4e46e6e18140afbf376ef3baa26aa5e90c27d94 (patch)
tree5024cfe0c94f650b95183a2781ba05dbeee6506b /app/packages/web/src/styles/custom.css
parent680d52016c69887c331dbbb37de7109158ee9020 (diff)
downloadopencode-a4e46e6e18140afbf376ef3baa26aa5e90c27d94.tar.gz
opencode-a4e46e6e18140afbf376ef3baa26aa5e90c27d94.zip
share page diff
Diffstat (limited to 'app/packages/web/src/styles/custom.css')
-rw-r--r--app/packages/web/src/styles/custom.css12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/packages/web/src/styles/custom.css b/app/packages/web/src/styles/custom.css
index 450be4319..9c4c71f00 100644
--- a/app/packages/web/src/styles/custom.css
+++ b/app/packages/web/src/styles/custom.css
@@ -2,3 +2,15 @@
--sl-color-bg-surface: var(--sl-color-bg-nav);
--sl-color-divider: var(--sl-color-gray-5);
}
+
+@media (prefers-color-scheme: dark) {
+ .shiki,
+ .shiki span {
+ color: var(--shiki-dark) !important;
+ background-color: var(--shiki-dark-bg) !important;
+ /* Optional, if you also want font styles */
+ font-style: var(--shiki-dark-font-style) !important;
+ font-weight: var(--shiki-dark-font-weight) !important;
+ text-decoration: var(--shiki-dark-text-decoration) !important;
+ }
+}