ni / nimble

The NI Nimble Design System
https://nimble.ni.dev
MIT License
32 stars 8 forks source link

Make nimble aware of prefers-color-scheme #647

Open rajsite opened 2 years ago

rajsite commented 2 years ago

😯 Problem to Solve

The browser has the prefers-color-scheme media query for letting web applications be aware of the operating system configured light / dark mode setting.

Nimble should be aware of that configuration so nimble applications can automatically adjust to the operating system configured theme preference.

💁 Proposed Solution

As part of a primeday project I prototyped with adding a platform option to the theme-provider's theme property.

We should still have an HLD to pin down the requirements and API for this change beyond the proposed solution.

📋 Tasks

jattasNI commented 2 years ago

We should make sure our solution works well with the changes in this SLE PR which attempts to set the nimble theme to match the OS setting at the application level.