CSS Custom Scrollbar Designer skill for Claude and Codex
Generates working cross-browser CSS for a custom scrollbar, with your colors, thickness, and hover effects, using both WebKit rules and the Firefox properties.
Install it once and Claude or Codex runs it for you. When your request matches, your AI loads the skill, asks for anything it is missing, and works through the template itself. Prefer to fill it in by hand? See the full prompt template.
Download the skill (.zip) · View SKILL.md
When it is used
Use when a web developer wants CSS that restyles scrollbars with specific colors and thickness across WebKit and Firefox browsers. Do not use for building a JavaScript scroll component or styling scrollbars in a native app. Related topics: design, css, coding.
What it will ask you for
- Thumb color (free text, e.g. "#ff0000")
- Track color (free text, e.g. "#f1f1f1")
- Scrollbar thickness in px (number from 1 to 30)
- Round the thumb corners (choose one: Yes, No)
- Add a hover effect to the thumb (choose one: Yes, No)
- Target browsers (choose any: WebKit (Chrome and Safari), Firefox (scrollbar-color))
- Scope (free text, e.g. "Whole page or a class name such as .panel")
How it works
- Pick the selectors for the scope given and write the WebKit pseudo-element rules for the track, thumb, and size.
- Add the rounded corners and the thumb hover state if they were requested.
- Write the Firefox rules with scrollbar-color and scrollbar-width and map the thickness to the nearest allowed value.
- Add a short comment per browser block and a closing note on what each browser ignores.
What you get
One CSS block with a WebKit section and a Firefox section, each commented, plus a short note on browser limits.
What it watches out for
- Giving Firefox a pixel width, which it ignores, so the scrollbar looks wrong there.
- Styling the thumb without a visible contrast against the track, which makes it hard to see.
- Applying the rules to the whole page when the owner only wanted one panel.
How to install
Claude.ai and the Claude desktop app
- Download the skill .zip.
- Open Settings, then Capabilities, and find Skills.
- Choose Upload skill and select the .zip.
- Ask Claude for help with the task. It loads the skill when your request matches.
Claude Code
- Download the skill .zip.
- Unzip it into ~/.claude/skills/ (or .claude/skills/ inside a project).
- Start a new session. Claude Code loads the skill when your request matches.
Codex
- Download the skill .zip.
- Unzip it into ~/.agents/skills/ (or .agents/skills/ inside a project).
- Codex picks it up on its own. Type $ and the skill name to use it, or just ask for the task.
Cursor
- Download the Cursor rule (.mdc).
- Save it in .cursor/rules/ inside your project.
- Cursor's agent applies the rule when your request matches its description.
AGENTS.md (Codex, Cursor, and other coding agents)
- Copy the AGENTS.md section.
- Paste it into AGENTS.md at the root of your repository, creating the file if needed.
- Coding agents that read AGENTS.md follow it when your request fits.