refactor(vars): create `modes` directory

This commit is contained in:
郭桓桓 2023-03-04 16:53:06 +08:00
parent 5ee77990a6
commit 213ea5f44f
Signed by: kuohuanhuan
GPG Key ID: FD846A0A797B0D75
9 changed files with 15 additions and 14 deletions

View File

@ -1,5 +1,5 @@
code { code {
color: var(--xm-c-dark); color: var(--xm-c-deep);
font-weight: 600; font-weight: 600;
font-size: .875rem; font-size: .875rem;
font-family: var(--xm-font-mono); font-family: var(--xm-font-mono);

View File

@ -1,5 +1,5 @@
a { a {
color: var(--xm-c-darker); color: var(--xm-c-deeper);
font-weight: 500; font-weight: 500;
text-decoration: none; text-decoration: none;
code { code {

View File

@ -3,11 +3,11 @@ p {
margin-bottom: 1.25rem; margin-bottom: 1.25rem;
} }
strong { strong {
color: var(--xm-c-dark); color: var(--xm-c-deep);
font-weight: 600; font-weight: 600;
} }
b { b {
color: var(--xm-c-dark); color: var(--xm-c-deep);
} }
em { em {
color: inherit; color: inherit;

View File

@ -1,7 +1,7 @@
h1 { h1 {
margin-top: 0; margin-top: 0;
margin-bottom: .875rem; margin-bottom: .875rem;
color: var(--xm-c-darker); color: var(--xm-c-deeper);
font-weight: 800; font-weight: 800;
font-size: 2.25rem; font-size: 2.25rem;
line-height: 1.15; line-height: 1.15;
@ -9,7 +9,7 @@ h1 {
h2 { h2 {
margin-top: 2rem; margin-top: 2rem;
margin-bottom: 1rem; margin-bottom: 1rem;
color: var(--xm-c-dark); color: var(--xm-c-deep);
font-weight: 700; font-weight: 700;
font-size: 1.5rem; font-size: 1.5rem;
line-height: 1.35; line-height: 1.35;

View File

@ -1,3 +0,0 @@
$regular: #bbb;
$dark: #ddd;
$darker: #fff;

View File

@ -1,3 +0,0 @@
$regular: #555;
$dark: #222;
$darker: #000;

View File

@ -0,0 +1,3 @@
$regular: #bbb;
$deep: #ddd;
$deeper: #fff;

View File

@ -0,0 +1,3 @@
$regular: #555;
$deep: #222;
$deeper: #000;

View File

@ -2,8 +2,9 @@
@use 'variables/constants'; @use 'variables/constants';
@use 'variables/colors'; @use 'variables/colors';
@use 'variables/light';
@use 'variables/dark'; @use 'variables/modes/light';
@use 'variables/modes/dark';
:root { :root {
@each $name, $val in module-variables('constants') { @each $name, $val in module-variables('constants') {