Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Commit 97e4b9f

Browse files
style: MD3 scrollbar — thin 6px rounded thumb, theme-aware colors
- Webkit: custom ::-webkit-scrollbar with outline color, hover darkens - Firefox: scrollbar-width: thin + scrollbar-color - Transparent track, transparent corner - Uses MD3 tokens (outline, on-surface-variant, shape-corner-full)
1 parent a59b8b9 commit 97e4b9f

4 files changed

Lines changed: 44 additions & 7 deletions

File tree

demo/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@
7676
/* Material Symbols font removed - icons use inline SVG now */
7777
</style>
7878
<!-- Preload + async CSS: 12KB loads instantly from preload, media trick prevents render-blocking -->
79-
<link rel="preload" as="style" href="../dist/agentui.css?v=0.1.201">
80-
<link rel="stylesheet" href="../dist/agentui.css?v=0.1.201" media="print" onload="this.media='all'">
79+
<link rel="preload" as="style" href="../dist/agentui.css?v=0.1.202">
80+
<link rel="stylesheet" href="../dist/agentui.css?v=0.1.202" media="print" onload="this.media='all'">
8181
<noscript>
82-
<link rel="stylesheet" href="../dist/agentui.css?v=0.1.201">
82+
<link rel="stylesheet" href="../dist/agentui.css?v=0.1.202">
8383
</noscript>
8484
<style>
8585
/* Size-adjusted Arial fallback to match Roboto metrics (from Capsize) */
@@ -508,7 +508,7 @@ <h1 class="page-title" style="text-align: center;">AgentUI</h1>
508508

509509
<!-- Footer -->
510510
<footer slot="footer" class="app-footer">
511-
<p>AgentUI <span id="app-version" style="opacity: 0.5; font-size: 0.75rem;">v0.1.201</span> • Apache-2.0 •
511+
<p>AgentUI <span id="app-version" style="opacity: 0.5; font-size: 0.75rem;">v0.1.202</span> • Apache-2.0 •
512512
Made with ❤️</p>
513513
</footer>
514514
</au-layout>
@@ -527,7 +527,7 @@ <h1 class="page-title" style="text-align: center;">AgentUI</h1>
527527
if (loadedRoutes.has(name)) return;
528528
loadedRoutes.add(name);
529529
const start = performance.now();
530-
await import('../dist/routes/' + name + '.js?v=0.1.201');
530+
await import('../dist/routes/' + name + '.js?v=0.1.202');
531531
console.log('[Shell] Route ' + name + '.js loaded in ' + (performance.now() - start).toFixed(0) + 'ms');
532532
}
533533

dist/component-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"title": "AgentUI Component Schema",
55
"description": "Machine-readable schema for AI agent component discovery",
66
"version": "0.1.147",
7-
"generatedAt": "2026-02-15T10:01:26.080Z",
7+
"generatedAt": "2026-02-15T10:14:08.758Z",
88
"componentCount": 50,
99
"components": {
1010
"au-card": {

dist/styles/common.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/styles/common.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,43 @@ body {
1919
margin: 0;
2020
}
2121

22+
/* ============================================================================
23+
MD3 SCROLLBAR STYLING
24+
Thin overlay scrollbars with Material Design aesthetics.
25+
Supports Webkit (Chrome/Safari/Edge) and Firefox.
26+
============================================================================ */
27+
28+
/* Firefox: thin scrollbar with theme-aware colors */
29+
* {
30+
scrollbar-width: thin;
31+
scrollbar-color: var(--md-sys-color-outline) transparent;
32+
}
33+
34+
/* Webkit: custom scrollbar styling */
35+
::-webkit-scrollbar {
36+
width: 6px;
37+
height: 6px;
38+
}
39+
40+
::-webkit-scrollbar-track {
41+
background: transparent;
42+
}
43+
44+
::-webkit-scrollbar-thumb {
45+
background: var(--md-sys-color-outline);
46+
border-radius: var(--md-sys-shape-corner-full);
47+
transition: background var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
48+
}
49+
50+
::-webkit-scrollbar-thumb:hover {
51+
background: var(--md-sys-color-on-surface-variant);
52+
}
53+
54+
/* Hide scrollbar on very small containers (e.g., chips, buttons) */
55+
::-webkit-scrollbar-corner {
56+
background: transparent;
57+
}
58+
2259
/* ============================================================================
2360
MD3 STATE LAYER UTILITIES (Reusable across components)
2461
Reference: https://m3.material.io/foundations/interaction/states

0 commit comments

Comments
 (0)