A pet care app onboarding screen built with Tailwind CSS: owners add a dog or cat, set its age and weight with steppers and opt in to care reminders while a live pet profile card updates above the form. It is an HTML mobile template for mobile sites and PWAs and can be packaged as an app with Capacitor. Use it as the "add your pet" sign-up flow of a vet, pet sitting or pet food app.
How it works
The root .pco-app is a phone-width column with a sticky top app bar, an animated progress bar ([data-pco-progress] with .pco-progress-fill), the profile card [data-pco-profile], three steps in [data-pco-step] sections and a sticky footer with the Continue button. One <form> holds all steps; script.js handles its submit event to move between them.
Step 1 has a Dog/Cat radio toggle ([data-pco-kind]), a name field with validation (at least two letters, shown with aria-invalid and an error line), a Female/Male segmented control and a breed <select>. Switching the species swaps the photo and rebuilds the breed list. Step 2 has age and weight steppers ([data-pco-inc], [data-pco-dec]) that update the life stage (Puppy, Adult, Senior), a size bar and a feeding tip. Step 3 has a master reminder switch and one .pco-switch per reminder; next due dates in [data-pco-due] are computed from today and shown without a year.
Save profile simulates a request for 700 ms and then shows a summary with the pet and every active reminder. The back button returns to the previous step with all values kept.
Customization
--pco-accentinstyle.css: the teal used by switches, steppers and focus rings.KINDSinscript.js: breeds, default weight, size limits and life stages for each species; add an entry and a matching radio to support more animals.data-pco-stepson.pco-app: the step count used by the progress bar and the "1/3" counter.data-pco-due="19"on a reminder: days from today until the next reminder date.data-pco-remon each.pco-switch: the reminder name shown in the final summary.
Use cases
- Vet clinic apps: new clients register their pet before the first appointment.
- Pet food subscription apps: age, weight and size drive portion suggestions.
- Pet health trackers and PWAs: vaccination and flea treatment reminders start from day one.
Accessibility
Species and sex are real radio groups in <fieldset> elements, the breed is a native <select> and every stepper button has an aria-label and is disabled at its limits. The progress bar uses role="progressbar" with aria-valuenow and aria-valuetext. Reminder toggles are buttons with role="switch" and aria-checked. Step changes move focus to the new heading, and a polite live region announces steps, stepper values and the saved state. Touch targets are at least 44 px and animations stop under prefers-reduced-motion.
Usage notes
The photos come from Unsplash; replace them with the user's own upload. To save for real, replace the timeout in the submit handler with a fetch() call to your API.