Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "./scrollbar.css";
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Global brand scrollbar import is overridden by existing TOC-specific scrollbar rules, causing TOC to keep old gray styling and break theme consistency.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At website/src/css/custom.css, line 1:

<comment>Global brand scrollbar import is overridden by existing TOC-specific scrollbar rules, causing TOC to keep old gray styling and break theme consistency.</comment>

<file context>
@@ -1,3 +1,4 @@
+@import "./scrollbar.css";
 @tailwind base;
 @tailwind components;
</file context>
Fix with Cubic

@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down
52 changes: 52 additions & 0 deletions website/src/css/scrollbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* ============================================
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Dark-mode scrollbar overrides use descendant selectors and miss the root element, so viewport scrollbar colors may stay light in dark theme.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At website/src/css/scrollbar.css, line 50:

<comment>Dark-mode scrollbar overrides use descendant selectors and miss the root element, so viewport scrollbar colors may stay light in dark theme.</comment>

<file context>
@@ -0,0 +1,52 @@
+  scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
+}
+
+html[data-theme="dark"] * {
+  scrollbar-color: rgba(16, 185, 129, 0.25) rgba(255, 255, 255, 0.05);
+}
</file context>
Fix with Cubic

Custom Scrollbar Styling - VoltAgent Brand
Issue #1157
============================================ */

/* Light Mode Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}

::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05);
border-radius: 4px;
}

::-webkit-scrollbar-thumb {
background: rgba(16, 185, 129, 0.3);
border-radius: 4px;
transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
background: rgba(16, 185, 129, 0.5);
}
Comment on lines +17 to +25
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Increase default thumb contrast to meet accessibility intent.

Current default thumb opacity is too subtle (especially Line 18 and Line 37), making the scrollbar hard to perceive in both themes. This conflicts with the PR’s accessibility objective.

🎯 Suggested contrast-safe adjustment
 ::-webkit-scrollbar-thumb {
-  background: rgba(16, 185, 129, 0.3);
+  background: rgba(16, 185, 129, 0.55);
   border-radius: 4px;
-  transition: all 0.2s ease;
+  transition: background-color 0.2s ease;
 }
 
 ::-webkit-scrollbar-thumb:hover {
-  background: rgba(16, 185, 129, 0.5);
+  background: rgba(16, 185, 129, 0.75);
 }
 
 html[data-theme="dark"] ::-webkit-scrollbar-thumb {
-  background: rgba(16, 185, 129, 0.25);
+  background: rgba(16, 185, 129, 0.5);
 }
 
 html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
-  background: rgba(16, 185, 129, 0.45);
+  background: rgba(16, 185, 129, 0.7);
 }
 
 * {
   scrollbar-width: thin;
-  scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
+  scrollbar-color: rgba(16, 185, 129, 0.55) transparent;
 }
 
 html[data-theme="dark"] * {
-  scrollbar-color: rgba(16, 185, 129, 0.25) rgba(255, 255, 255, 0.05);
+  scrollbar-color: rgba(16, 185, 129, 0.5) rgba(255, 255, 255, 0.08);
 }

Also applies to: 36-42, 45-52

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@website/src/css/scrollbar.css` around lines 17 - 25, The scrollbar thumb
opacity is too low for accessibility; update the ::-webkit-scrollbar-thumb
default and hover styles to higher-contrast values (e.g., increase rgba alpha
from 0.3 to around 0.6 for the default and from 0.5 to around 0.8 for :hover) so
the green thumb is more visible, and apply the same adjustment to the other
similar blocks referenced (lines covering the alternate theme selectors around
36-42 and 45-52) — modify the CSS rules for ::-webkit-scrollbar-thumb and
::-webkit-scrollbar-thumb:hover accordingly.


::-webkit-scrollbar-corner {
background: transparent;
}

/* Dark Mode Scrollbar */
html[data-theme="dark"] ::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
background: rgba(16, 185, 129, 0.25);
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
background: rgba(16, 185, 129, 0.45);
}

/* Firefox Support */
* {
scrollbar-width: thin;
scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
}

html[data-theme="dark"] * {
scrollbar-color: rgba(16, 185, 129, 0.25) rgba(255, 255, 255, 0.05);
}