Chrome 96 introduces an Origin Trial for Auto Dark Themes on Android. With this feature, the browser applies an automatically generated dark theme to light themed sites, when the user has opted into dark themes in the Operating System. Users can opt-out of dark themes by either disabling the option on the OS level or in a specific setting in Chrome.
https://developer.chrome.com/blog/auto-dark-theme/
Since Assembly doesn't currently have a dark-theme (#954), we should consider opting out until we do. Otherwise, we will lose control over how elements are displayed on a user's system if they have dark mode enabled. This could result in poor contrast that renders text difficult to read or UI elements not translating well.
There are a few options to opt out, but I think this option may work best for Assembly:
It is still possible to use this approach to opt-out the entire page from Auto Dark Theme by setting the color-scheme on the :root element:
Chrome is working on a new auto dark feature:
Since Assembly doesn't currently have a dark-theme (#954), we should consider opting out until we do. Otherwise, we will lose control over how elements are displayed on a user's system if they have dark mode enabled. This could result in poor contrast that renders text difficult to read or UI elements not translating well.
There are a few options to opt out, but I think this option may work best for Assembly:
Note: this feature is still being specified, but wanted to get ahead of it https://bugs.chromium.org/p/chromium/issues/list?q=component:Mobile%3EAutoDarkTheme