microsoft / fluentui-token-pipeline

The Fluent UI token pipeline generates source code for Fluent UI libraries.
https://microsoft.github.io/fluentui-token-pipeline/
Other
41 stars 18 forks source link

High contrast mode / system colors #34

Closed TravisSpomer closed 3 years ago

TravisSpomer commented 3 years ago

In addition to general theming support (#9), high contrast mode will probably require a few global tokens that are system-defined high contrast colors rather than specific RGB values.

TravisSpomer commented 3 years ago

Windows blog: New standard high contrast colors

TravisSpomer commented 3 years ago

Fluent UI React has a subset of those

TravisSpomer commented 3 years ago

Design is going to add global tokens for these because they don't like the normal names. The mappings should all be in Figma now.

TravisSpomer commented 3 years ago

Implemented for both web and WinUI with this commit. Other platforms (especially Mac/iOS) will probably require more OS-specific system colors in the future.