Back to work

Todo List

A todo list with filters, light and dark themes, and drag-and-drop reordering.

Date
Mar 2023
Category
Frontend
Status
Live

Stack

  • React
  • Sass
  • Vite
  • @hello-pangea/dnd

Problem

The Frontend Mentor challenge asked for a responsive todo list with filters, a theme switch, and, as a bonus, drag-and-drop reordering.

Role

I implemented the interface and state with React functional components, a theme context, and Sass modules for styling.

Decisions

  1. A context for the theme.

    The light or dark theme lives in a global context so every component shares the same value without passing the preference through props.

  2. Drag and drop with @hello-pangea/dnd.

    Task reordering uses the drag-and-drop library, including the inner reference required by functional components.

  3. Sass combined with CSS Modules.

    React modules isolate the styles while Sass provides mixins and nesting. clsx applies theme variants conditionally.

Result

The application covers the complete task flow, keeps the selected theme, and lets people reorder the list by dragging items.