GithubHelp home page GithubHelp logo

formspiel / windows-high-contrast Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 28 KB

Playground to find a solution to optimise content and interactive elements for Windows® High Contrast mode

Home Page: https://formspiel.github.io/Windows-high-contrast/

HTML 100.00%
css high-contrast-mode

windows-high-contrast's Introduction

Theming & Accessibility

DRAFT!

Requirements

With Dark Mode a hot topic is in the block since 2017. Since 2019 it's default on iOS and Android 10 and suddenly becomes "default". The high contrast mode is available since .... To be truly human-centred we should deliver the design in light mode, dark mode and high contrast. Fortunately Microsoft finally delivers--thanks to Chromium--a true browser with support for media queries. Delivering for high contrast is easy as cake now.

Research

The old proprietary attribute where aliased: -ms-high-contrast to forced-colors -ms-high-contrast-adjust to forced-colors-adjust

Support

09/2020

CSS Support
(-ms-high-contrast: active), (-ms-high-contrast: black-on-white), (-ms-high-contrast: white-on-black) macOS: not supported; Windows: IE, Edge [Deprecated]
(prefers-color-scheme: dark) (Dark Mode not High Contrast mode) macOS: Safari, Chrome; Windows: Safari, Chrome, Chredge (Chromium Edge)
(forced-colors: active) macOS: not supported; Windows: Chredge (Chromium Edge)

Let's look into the future

(prefers-contrast: high) https://drafts.csswg.org/mediaqueries-5/#prefers-contrast

Copy and Paste

Full media query example for old and new contrast mode support:

@media screen and (-ms-high-contrast: active), (forced-colors: active) {}

Windows System High Contrast Colours

System Colour Windows 10 Label Description Default High Contrast Black
Canvas Background Background of application content or documents. #000000 #000000
CanvasText Text Text in application content or documents. #FFFFFF #FFFFFF
LinkText Hyperlink Text in non-active, non-visited links. #FFFF00 #FFFF00
VisitedText tbd Text in visited links. tbd
ActiveText tbd Text in active links. tbd
ButtonFace tbd The face background color for push buttons. #000000 #000000
ButtonText Button Text Text on push buttons. #FFFFFF #FFFFFF
Field tbd Background of input fields. tbd
FieldText tbd Text in input fields. tbd
Highlight Background of item(s) selected in a control. #000000 #000000
HighlightText Selected Text Text of item(s) selected in a control. #1AEBFF #1AEBFF
GrayText Disabled Text Disabled text. (Often, but not necessarily, gray.) #3FF23F #3FF23F

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.