Build a simple pomodoro timer in Material You MD3 design
- User
Build a simple pomodoro timer in Material You MD3 design
Assistant
I have built the Pomodoro timer utilizing Material You (Material Design 3) design principles.
Here are the key features I implemented:
- Material You MD3 Theme: Added a full color palette using custom CSS variables (Primary, Secondary, Tertiary, Surface, Error, etc.), mapping perfectly to Tailwind via the
@themedirective in Tailwind CSS v4. - Dynamic Circular Timer: Uses SVG with
stroke-dashoffsetfor an accurate and smooth circular countdown representation around the timer text. - MD3 Components:
- Segmented Mode Switcher: Fully rounded pill design with secondary container colors.
- Floating Action Buttons: Large main FAB for Play/Pause and secondary FAB for Reset.
- Top App Bar: Minimal, translucent setup with typography following MD3 sizing.
- Dialogs/Modals: Uses large
28pxcorner radiuses (rounded-[28px]), specific MD3 elevation shadows, and a clean configuration layout for the settings panel.
- Functionality:
- Easily toggles between Pomodoro (25m), Short Break (5m), and Long Break (15m).
- You can update the length of each phase inside the settings menu.
- Document title updates with the remaining time while counting down.
- A short beep plays via the Web Audio API when the timer reaches 0.
The project builds correctly and you can start the timer right away! Let me know if you want to further customize the colors or add features like task management.
Files built:
index.html,src/index.css,src/App.tsx- Material You MD3 Theme: Added a full color palette using custom CSS variables (Primary, Secondary, Tertiary, Surface, Error, etc.), mapping perfectly to Tailwind via the
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.