added test for darkmode

feature/oscar-theme
Segundo Fdez 2022-01-19 12:11:14 +01:00
parent c8a1957758
commit 3c1f92d1e9
3 changed files with 13 additions and 7 deletions

View File

@ -1,9 +1,9 @@
@charset "UTF-8";
/* Basic */
/* @import 'https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@400;700&display=swap';
@import 'normalize.css';
@import 'variables.css';
@import 'common.css'; */
@import https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@400;700&display=swap;
@import url(/src/themes/oscar/assets/css/normalize.css);
@import url(/src/themes/oscar/assets/css/variables.css);
@import url(/src/themes/oscar/assets/css/common.css);
/* Layout */
/* Components */
/* Modules */

View File

@ -1,8 +1,8 @@
/* Basic */
/* @import 'https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@400;700&display=swap';
@import 'https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@400;700&display=swap';
@import 'normalize.css';
@import 'variables.css';
@import 'common.css'; */
@import 'common.css';
/* Layout */

View File

@ -15,7 +15,7 @@
/* Brand
========================================================================== */
--brand: #0249FF;
--background-main: #292929;
/* ==========================================================================
@ -33,6 +33,12 @@
--font-caption: var(--font-size-1) / 1.37 var(--font-brand);
}
/* Dark theme */
@media (prefers-color-scheme: dark) {
:root {
--background-main: #f0f0f0;
}
}
/* ==========================================================================