Capstone: A Mini Market Dashboard
Stitch the price calculator, theme toggle, and a styled cart accordion into a single small dashboard. The pattern of every real frontend.
Step 1 of 3
The brief
Build a mini market widget. It must include:
- A theme toggle (light/dark) at the top.
- A price calculator: choose Sukuma Per kg or Bunch, set a quantity, see the live total.
- An Add to cart button that appends the current selection to a list below.
- The cart list shows each entry as a card with item, unit, qty, and total.
Use everything you learned: classList.toggle for the theme, an event-driven render() for the calculator, createElement for cart entries, CSS variables for theming.