# Temperature Range

> A bare token-driven five-stop temperature slider from 0.0 Precise to 1.0 Creative with a gradient fill, snapping draggable thumb, clickable stops, and a rolling gradient digit readout — themed by the AI Steppers design system in both light and dark.

- Category: Input
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Atlas
- Dark mode: yes
- Access: free (sign in to copy the code)
- Tags: slider, range
- Page: https://builder.atheros.ai/components/temperature-range
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_temperature_range/preview-07e5f1fe4026.webp

## Features

- Bare centered slider with a small on-brand title group — no panel card or extra chrome
- Five hidden radio inputs drive the whole slider state with pure CSS `:has()` selectors
- Gradient fill bar grows to the selected stop via `transform: scaleX()` — no layout animation
- Draggable thumb snaps to the nearest of the five stops on mouse or touch drag
- Clickable stop dots jump straight to any temperature value
- Rolling digit readout crossfades and slides between 0.0, 0.3, 0.5, 0.7, and 1.0
- Stops behind the selection light up with an accent ring; the thumb carries a soft glow halo
- Precise and Creative end marks anchor the scale semantics
- Hidden radios keep native keyboard behavior — arrow keys move between stops
- Visually-hidden live region announces "Temperature X" to assistive technology
- Dark mode that flips the gradient (pink→blue light, violet→teal dark)
- Responsive layout that adapts down to 320px
- Fully respects `prefers-reduced-motion`

## Accessibility

- **Slider semantics** — `role="radiogroup"` with five labelled radio inputs, one per stop
- **Input labels** — Every radio has an explicit `aria-label` with its value and end-mark meaning
- **Live readout** — Visually-hidden `role="status"` with `aria-live="polite"` announces "Temperature X"
- **Keyboard navigation** — Hidden radios keep native arrow-key movement between stops
- **Decorative layers** — Fill, thumb, digit readout, and marks are `aria-hidden="true"`
- **Focus indicators** — `:focus-visible` on a radio paints an accent outline on the thumb
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all transitions

## Keyboard shortcuts

- `ArrowRight` — Move selection to the next stop (native radio behavior)
- `ArrowLeft` — Move selection to the previous stop (native radio behavior)
- `Tab` — Move focus to the slider radio group

## Common questions

**Which frameworks is Temperature Range available in?**

Temperature Range ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is the Temperature Range input component free?**

Yes. Temperature Range is a free component: preview it without an account, and sign in with a free Atheros account to copy or download the full source and customise it with AI.

**Does Temperature Range support dark mode?**

Yes. Temperature Range ships light and dark themes, both drawn from the Atlas design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Temperature Range live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/temperature-range

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
