Skip to content

Respect prefers-color-scheme on first visit #6

Description

@Joun-Mikhail

Summary

On first load (no stored preference), default the theme to the OS prefers-color-scheme instead of a hard-coded default.

Where

src/contexts/ThemeContext.tsx — read window.matchMedia('(prefers-color-scheme: dark)') when no value is in localStorage.

Acceptance criteria

  • First visit matches the OS setting.
  • An explicit user choice still wins and persists.

Good first issue — small, self-contained, no backend changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions