App UI kits › Dusk › Sleep timer

Sleep timer

Turn the dial to set the time; a chart shows every layer of your mix fading out together, never cutting off.

Sleep timer is a screen from Dusk, an app ui kit with 10 screens: A sleep and meditation app with a breath you can follow and sounds you stir. Price: $5 for the whole pack.

Built with: dial, fade chart, countdown ring.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Sleep timer props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosDkPhotos
minutesnumber
onStart(minutes: number, fade: number) => void

Methods on the ref

Use it in React

import DuskTimer from './DuskTimer';

<DuskTimer />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Dusk

Good for: Meditation app UI.