Sleep Tracker
Review last night on a sleep chart you can scrub by finger, the screen brightening toward morning as you near wake time. Stage breakdown, a week of bedtimes, vitals and a smart alarm follow.
About the Sleep Tracker screen
Fitness, habits, nutrition, mood and care screens, built around progress you can see at a glance. This is one of 22 health screens.
How it behaves
It responds to taps, scrolling and drags. On a phone you feel a light tap on buttons and a selection tick when you switch an option.
- Respects Reduce Motion: movement drops out and the feedback stays.
Make it yours
npx @lumioui/cli add pro/health-sleep-tracker copies the screen into screens/health/sleep-tracker.tsx along with the 6 components it uses, so the source is yours to edit.
It's shown here in the red accent: wrap it in a different <Accent> to recolour every button, highlight and chart at once. It follows light and dark mode, and is designed for a dark canvas, and runs on iOS and Android, including Expo Go.
Built from
- Animated NumberNumber that moves to each new value as a calm count-up or a roll where only the changed digits turn, set in type or in dot-matrix LEDs whose dots switch on in place. Screen readers announce just the final value, not every step.
- IconIcon set drawn on one consistent grid, sized and coloured from your theme. The heart, star and bookmark can fill in place inside their outline, then fade back out.
- Progress RingCircular progress ring with a bright bead on its leading edge. Reaching 100% brightens the ring and briefly turns any centre figure into a check; an indeterminate mode laps the track.
- SparklineSmall trend line with an end dot that draws itself in and tints up or down. New data reshapes the line smoothly, and it can follow your finger with a cursor so your app shows the value.
- SwitchOn/off switch whose colour fills in from behind the thumb as it turns on. Turning off fades it back quickly, and a disabled switch gives a gentle flicker when tapped.
- TextThemed type scale from caption to display that follows light and dark mode. Includes a pull-quote style with an accent rule and a quieter dimmed tone for secondary text.