Skip to content

[css-color-4] Support high-contrast/dark mode colors #3804

@fantasai

Description

@fantasai

With Dark Mode and MSFT's “high contrast” mode (which is more accurately a “specific contrast” mode since it also represents low-contrast settings), we anticipate that authors will want the ability to re-use relevant system colors. Revisiting the CSS System Colors, @tabatkins and I have come up with the following list of colors (based on the available MSFT high-contrast settings) which we propose to add*/undeprecate for these purposes:

  • Canvas* (we'd have liked to call this “Background” but that's already used for something else)
  • Text*
  • LinkText*
  • VisitedText*
  • Highlight
  • HighlightText
  • GrayText (could be aliased to InactiveText or DisabledText for clarity)
  • ButtonFace (could be aliased to Button for consistency)
  • ButtonText

Note: MSFT doesn't distinguish visited vs. unvisited links, but as some systems may we included keywords for both variants: they can be mapped to the same color as needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions