Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Demo: very basic light mode selector
based on lila extracts `lila/ui/common/css/theme/_light.scss` ``` $c-bg: hsl(0, 0%, 100%); // alias for $c-bg-high $c-bg-page: hsl(37, 10%, 92%); $c-bg-low: hsl(0, 0%, 89%); $c-bg-zebra: hsl(37, 12%, 96.5%); $c-bg-zebra2: hsl(37, 12%, 92%); $c-bg-popup: hsl(0, 0%, 100%); // alias for $c-bg $c-body-gradient: hsl(37, 12%, 84%); $c-font: hsl(0, 0%, 30%); $c-primary: hsl(209, 77%, 46%); $c-brag: hsl(37, 74%, 48%); $c-shade: hsl(0, 0%, 84%); $c-inaccuracy: hsl(202, 78%, 40%); $c-mistake: hsl(41, 100%, 35%); $c-blunder: hsl(0, 68%, 50%); $c-good: $c-secondary; $c-brilliant: hsl(129, 71%, 30%); $c-interesting: hsl(307, 80%, 59%); $c-dimmer: #fff; $c-clearer: #000; ``` `lila/ui/common/css/component/_lichess-pgn-viewer.scss` ``` --c-lpv-accent: #{$c-primary}; --c-lpv-bg: #{$c-bg-zebra}; --c-lpv-bg-player: var(--c-lpv-bg); --c-lpv-bg-controls: var(--c-lpv-bg); --c-lpv-bg-movelist: var(--c-lpv-bg); --c-lpv-bg-variation: #{$c-bg-zebra2}; --c-lpv-bg-pane: #{$m-bg-zebra2--fade-1}; --c-lpv-pgn-text: #{$c-bg-zebra2}; --c-lpv-font: #{$c-font}; --c-lpv-font-shy: #{$c-font-dim}; --c-lpv-accent-over: #{$c-over}; --c-lpv-fbt-hover: #{$m-primary_bg--mix-75}; --c-lpv-font-bg: #{$m-font_bg--mix-20}; --c-lpv-current-move: #{$m-primary_bg--mix-70}; --c-lpv-move-hover: #{$m-primary_bg--mix-30}; --c-lpv-border: #{$c-border}; --c-lpv-side-border: hsl(37deg, 5%, 13%); //#{$c-border-page}; --c-lpv-inaccuracy: #{$c-inaccuracy}; --c-lpv-mistake: #{$c-mistake}; --c-lpv-blunder: #{$c-blunder}; --c-lpv-good-move: #{$c-good}; --c-lpv-brilliant: #{$c-brilliant}; --c-lpv-interesting: #{$c-interesting}; --c-lpv-bg-inaccuracy-hover: #{$m-inaccuracy_bg--mix-30}; --c-lpv-bg-mistake-hover: #{$m-mistake_bg--mix-30}; --c-lpv-bg-blunder-hover: #{$m-blunder_bg--mix-30}; --c-lpv-bg-good-hover: #{$m-good_bg--mix-30}; --c-lpv-bg-brilliant-hover: #{$m-brilliant_bg--mix-30}; --c-lpv-bg-interesting-hover: #{$m-interesting_bg--mix-30}; ```
- Loading branch information