3 Commits
2.0.1 ... 2.0.4

Author SHA1 Message Date
c2e6aca07d Subtle scroll bar
All checks were successful
Publish Library / Build NPM Project (push) Successful in 20s
Publish Library / Tag Version (push) Successful in 12s
Publish Library / Build Container (push) Successful in 45s
2026-07-25 22:37:24 -04:00
f018bae865 Subtle scroll bar
All checks were successful
Publish Library / Build Container (push) Successful in 16s
Publish Library / Build NPM Project (push) Successful in 22s
Publish Library / Tag Version (push) Successful in 9s
2026-07-25 22:13:01 -04:00
93f33cf4a5 Fixed aggressive background styling
All checks were successful
Publish Library / Build Container (push) Successful in 15s
Publish Library / Build NPM Project (push) Successful in 18s
Publish Library / Tag Version (push) Successful in 8s
2026-07-25 11:25:54 -04:00
3 changed files with 16 additions and 25 deletions

View File

@@ -18,6 +18,11 @@
--page-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; --page-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
} }
:root .theme-dark {
--theme-background: #1a1a1a !important;
--theme-background-contrast: white !important;
}
* { box-sizing: border-box; transition: var(--page-transition); } * { box-sizing: border-box; transition: var(--page-transition); }
html, body { html, body {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@ztimson/css-utils", "name": "@ztimson/css-utils",
"version": "2.0.1", "version": "2.0.4",
"description": "CSS Utility Classes", "description": "CSS Utility Classes",
"readme": "README.md", "readme": "README.md",
"scripts": { "scripts": {

View File

@@ -5,6 +5,8 @@
// Colors // Colors
:root { :root {
// Theme colors -- what ever you like // Theme colors -- what ever you like
--theme-background: #fafafa;
--theme-background-contrast: black;
--theme-primary: #4979de; --theme-primary: #4979de;
--theme-primary-contrast: black; --theme-primary-contrast: black;
--theme-accent: #2caec0; --theme-accent: #2caec0;
@@ -24,9 +26,6 @@
// Light theme // Light theme
&, .theme-light { &, .theme-light {
--theme-background: #fafafa;
--theme-background-contrast: white;
--theme-surface: #ffffff; --theme-surface: #ffffff;
--theme-border: #E5E7EB; --theme-border: #E5E7EB;
--theme-muted: #6c757d; --theme-muted: #6c757d;
@@ -38,9 +37,6 @@
// Dark theme // Dark theme
.theme-dark { .theme-dark {
--theme-background: #1a1a1a;
--theme-background-contrast: black;
--theme-surface: #2e2e2e; --theme-surface: #2e2e2e;
--theme-border: #374151; --theme-border: #374151;
--theme-muted: #cccccc; --theme-muted: #cccccc;
@@ -110,28 +106,18 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
} }
.fix-scrollbar { .fix-scrollbar {
* {
scrollbar-width: thin;
scrollbar-color: var(--theme-primary) var(--theme-background);
}
*::-webkit-scrollbar { *::-webkit-scrollbar {
width: 8px; width: 10px;
height: 8px; height: 10px;
} }
*::-webkit-scrollbar-track {
background: var(--theme-background);
}
*::-webkit-scrollbar-thumb { *::-webkit-scrollbar-thumb {
background-color: var(--theme-primary); background: var(--theme-muted);
border-radius: 4px; border-radius: 999px;
border: 2px solid var(--theme-background); border: 3px solid transparent;
background-clip: padding-box;
} }
*::-webkit-scrollbar-track {
*::-webkit-scrollbar-thumb:hover { background: transparent;
background-color: var(--theme-accent);
} }
} }