Skip to content

feat(ui): implement persistent dark mode and modernize Tailwind #12

Description

@0dillon

Summary

Merchants frequently operate in low-light environments, such as night markets. The current stark white UI is glaring and causes eye strain. We need a pristine, enterprise-grade dark mode implementation. Concurrently, our tailwind.config.js has accumulated bloat and unused custom utilities that are degrading our build times.

We need to integrate next-themes to manage a persistent, hydration-safe dark mode toggle. The color palette should utilize a sophisticated slate/emerald combination (e.g., slate-950 backgrounds). Simultaneously, the Tailwind configuration must be aggressively pruned, removing custom CSS in favor of standard v3.4 utility classes.

Acceptance Criteria

  • Integrate next-themes and ensure preference is saved to localStorage.
  • Design and apply a premium dark mode color palette across all components.
  • Upgrade to Tailwind CSS v3.4 and remove unused configuration bloat.
  • Eliminate React hydration mismatches on initial load.

Tech Stack

Next.js 14, React, Tailwind CSS, next-themes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions