refactor: move theme variables

This commit is contained in:
Erzbir
2025-08-05 20:18:57 +08:00
parent b80650db3b
commit 27a469a64b
+6 -3
View File
@@ -17,6 +17,9 @@
--font-theme-default: 'JetBrains Mono'; --font-theme-default: 'JetBrains Mono';
--font-theme-fallback: Monaco, Consolas, -apple-system, BlinkMacSystemFont, 'segoe ui', --font-theme-fallback: Monaco, Consolas, -apple-system, BlinkMacSystemFont, 'segoe ui',
Roboto, Oxygen, Ubuntu, Cantarell, 'open sans', 'helvetica neue'; Roboto, Oxygen, Ubuntu, Cantarell, 'open sans', 'helvetica neue';
--scrollbar-theme-width: thin;
--scrollbar-theme-color: rgba(134, 134, 134, 0.45) rgba(255, 255, 255, 0);
--font-theme-lig: none;
} }
html { html {
@@ -29,9 +32,9 @@ html[pixel_style='true'] {
} }
* { * {
scrollbar-width: thin !important; scrollbar-width: var(--scrollbar-theme-width) !important;
scrollbar-color: rgba(134, 134, 134, 0.45) rgba(255, 255, 255, 0); scrollbar-color: var(--scrollbar-theme-color);
font-variant-ligatures: none; font-variant-ligatures: var(--font-theme-lig);
} }
*, *,