Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Color Scheme Simualation #129

@janodvarko

Description

@janodvarko

UX discussion for "Color Scheme Simulation" feature in DevTools

Summary:
Adds an option to simulate different color schemes allowing to test @prefers-color-scheme media queries. Using this media query lets your style sheet specify whether it prefers a light or dark user interface. This feature lets you test your code without having to change settings in your browser (or operating system, if the browser follows a system-wide color scheme setting).

Mini-PRD: https://docs.google.com/document/d/1M1YMw83k2wmW7FAnqnIC3DdkPElccxypsCLuWyoIZJY/edit#heading=h.ra7dtg5dt199

Original bug:

  • Bug 1550804 - Add color scheme simulation to the inspector
    Introduced 4 states toggle button (null, no-preference, light, dark)

Meta:

Bug for updating the tooltip:

  • Bug 1606486 - Color scheme simulation tooltip should say "Cycle", not "Toggle"

Hidden behind a pref:
devtools.inspector.color-scheme-simulation.enabled

MDN: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features#Color_scheme_simulation

Others:

  • Chrome has 3 states (seems to be clearer UI)
  • Safari has 2 states (picking the opposite, default no-emulation)

Screenshot:

image

The goal should be to polish/simplify the UI (e.g. no-preference doesn't exist anymore)

@violasong @digitarald @martinbalfanz

We could also introduce a popup offering the state options

image

Honza

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