Skip to content

Apply user's system color-scheme preference as the default site theme #3061

Open
@nickcombs32

Description

@nickcombs32

Increasing access

Brings site up to modern CSS accessibility standards by reducing eye strain.

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

Feature enhancement details

CSS media feature is available to detect user's preference:
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

If feasible, apply to both the editor and the resource pages. Changing the theme in options overrides the default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions