Skip to content

Feature request: dark mode / prefers-color-scheme support #14

@maxmilneaus

Description

@maxmilneaus

Feature Request

The editor currently has no dark mode support. The document body uses hardcoded light theme values (--bg-color: white, --text-color: #111) with no prefers-color-scheme: dark media query.

Current state:

  • One theme variant exists (data-theme="whitey") but both are light
  • Many colours are hardcoded rather than using CSS variables, making a dark mode theme harder to implement
  • The toolbar/chrome UI is already dark, so there's a visual mismatch on the editor body

Proposed approach:

  1. Extract remaining hardcoded colours to CSS variables
  2. Add @media (prefers-color-scheme: dark) overrides for all variables
  3. Optionally expose a data-theme="dark" class for manual toggle

Happy to contribute a PR if this aligns with your roadmap.

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