App UI kits › Dusk › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
photos | DkPhotos | ||
minutes | number | ||
onStart | (minutes: number, fade: number) => void |
set(minutes: number): voiddestroy(): voidimport DuskTimer from './DuskTimer';
<DuskTimer />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Meditation app UI.