Skip to content

Interface Contrast Preference #54026

@jameskoster

Description

@jameskoster
contrast

One part of the color scale work (#53612) worth extracting for separate discussion is an “Interface contrast” user preference.

The current color scale is highly prescriptive about which values components should use based around the objective of meeting WCAG AA guidelines. This is a solid default/foundation that should be reflected in the new scale, but it also dismisses large segments of the ability spectrum (for instance those who require a AAA compatible UI).

A preference for contrast can help individual users create a subjectively comfortable appearance.

What would be the best way to implement this, if it is agreed that the idea has merit? Should there be a dedicated ui-element-border variable the value of which is conditional based in the users contrast preference? Should it be a property of the Theme component? Something else? Let's discuss.

cc @WordPress/gutenberg-design


Note: The mockup above is a rough sketch, not a proposal.

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