FEATURE: automatic dark mode (#10341)

A first step to adding automatic dark mode color scheme switching. Adds a new SCSS file at `color_definitions.scss` that serves to output all SCSS color variables as CSS custom properties. And replaces all SCSS color variables with the new CSS custom properties throughout the stylesheets. 

This is an alpha feature at this point, can only be enabled via console using the `default_dark_mode_color_scheme_id` site setting.
This commit is contained in:
Penar Musaraj
2020-08-03 22:57:10 -04:00
committed by GitHub
parent 041cd15667
commit c937afc75e
142 changed files with 1583 additions and 1311 deletions

View File

@ -37,6 +37,7 @@ module Stylesheet
theme_id: options[:theme_id],
theme: options[:theme],
theme_field: options[:theme_field],
color_scheme_id: options[:color_scheme_id],
load_paths: [Stylesheet::Common::ASSET_ROOT])
result = engine.render