Skip to content

CSS Showcase · Live Demo

Count anything, step by step.

Quantity pickers, currency and unit affixes, native spin buttons, and cart-style rows — number inputs that keep 44px touch targets and tabular digits.

Featured demo

mobile · touch-steppers

Servings

1

3.75rem-tall buttons — comfortably above the 44px floor.

mobile design patterns

number-touch-steppers.css
/* Big touch steppers */
.touch-stepper {
  display: grid;
  grid-template-columns: 4.5rem 1fr 4.5rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  overflow: clip;
}

.touch-stepper button {
  block-size: 3.75rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: background-color 0.15s ease;
}

.touch-stepper button:hover { background: var(--accent); }
.touch-stepper button:active { background: color-mix(in srgb, var(--accent) 60%, transparent); }

.touch-stepper output {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

CSS features used

  • • appearance: textfield
  • • ::-webkit-inner-spin-button
  • • :focus-within rings
  • • font-variant-numeric: tabular-nums
  • • color-mix() active states
  • • Semantic tokens

CSS Showcase · Share

Share this demo as a 1:1 image

A 2048×2048 PNG with the live current view, the title, and the CSS features — for social posts, docs, and READMEs.

The snapshot follows the device selected on the page — switch between desktop, iPad, and mobile above and the card updates.