Carbon
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initSliderCarbon(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/slider-carbonAbout this component
A stiffness slider on a strip of carbon-fibre twill: behind the thumb the weave is cured under a glossy clear coat, deep and contrasty, with a highlight that follows your pointer like a light catching the fibres; ahead of the thumb it is dry cloth, matte and grey.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- Hover
- Mouse tracking
- Fill
Techniques4
- Gradient
- Mouse tracking
- Filter
- CSS variables
Accessibility
Keyboard and screen readers
A native range input named Stiffness with gigapascals as its value text; the weave is aria-hidden. The highlight only follows a hovering pointer and rests over the cured part otherwise.
Use it in anything you build, commercial and client work included. Licence