add cybre theme, make it default

This commit is contained in:
Nolan Lawson 2019-02-12 00:19:59 -08:00
parent 3aee6fb050
commit 243f0fd71d
3 changed files with 33 additions and 1 deletions

View File

@ -41,6 +41,12 @@ const themes = [
dark: false,
color: '#4ab92f'
},
{
name: 'cybre',
label: 'Cybre',
dark: true,
color: '#2c2c2c'
},
{
name: 'ozark',
label: 'Ozark',

View File

@ -4,7 +4,7 @@ let prefersDarkTheme = process.browser && window.matchMedia('(prefers-color-sche
export const DEFAULT_LIGHT_THEME = 'default'
export const DEFAULT_DARK_THEME = 'ozark'
export const DEFAULT_THEME = prefersDarkTheme ? DEFAULT_DARK_THEME : DEFAULT_LIGHT_THEME
export const DEFAULT_THEME = 'cybre'
function getExistingThemeLink () {
return document.head.querySelector('link[rel=stylesheet][href^="/theme-"]')

View File

@ -0,0 +1,26 @@
$main-theme-color: #2c2c2c;
$body-bg-color: #181818;
$main-bg-color: #222;
$anchor-color: lighten($main-theme-color, 20%);
$main-text-color: #fafaff;
$border-color: lighten($main-bg-color, 16%);
$secondary-text-color: #1ea21e;
$toast-border: $main-theme-color;
$toast-bg: lighten($body-bg-color, 4%);
$focus-outline: darken($main-theme-color, 10%);
$compose-background: darken($main-theme-color, 12%);
@import "_base.scss";
@import "_dark.scss";
@import "_dark_scrollbars.scss";
:root {
--anchor-text: #{$secondary-text-color};
--settings-list-item-text: #{$main-text-color};
--settings-list-item-text-hover: #{$main-text-color};
--action-button-fill-color-pressed: #{darken($secondary-text-color, 7%)};
--action-button-fill-color-pressed-hover: #{darken($secondary-text-color, 2%)};
--action-button-fill-color-pressed-active: #{darken($secondary-text-color, 15%)};
--banner-fill: #{$secondary-text-color};
}