fix: light theme colors, default to dark theme
This commit is contained in:
parent
4e1e19761d
commit
575591fe2e
|
|
@ -3,14 +3,14 @@
|
||||||
[data-theme="light"],
|
[data-theme="light"],
|
||||||
:root[data-theme="light"],
|
:root[data-theme="light"],
|
||||||
:root:not([data-theme="dark"]) {
|
:root:not([data-theme="dark"]) {
|
||||||
--primary: #20a235;
|
--primary: #0c6c3b;
|
||||||
--primary-hover: #1d8e2f;
|
--primary-hover: #107920;
|
||||||
--primary-focus: rgba(21, 32, 23, 0.25);
|
--primary-focus: rgba(16, 121, 32, 0.25);
|
||||||
--primary-inverse: #ffffff;
|
--primary-inverse: #ffffff;
|
||||||
--secondary: #fff;
|
--secondary: #fff;
|
||||||
--text-color: #222;
|
--text-color: #222;
|
||||||
--background-color: #f6f1e7;
|
--background-color: #f6f1e7;
|
||||||
--accordion-border-color: rgba(32, 162, 53, 0.25);
|
--accordion-border-color: rgba(26, 33, 27, 0.25);
|
||||||
--bg-color: #f6f1e7;
|
--bg-color: #f6f1e7;
|
||||||
--item-bg-color: #fff;
|
--item-bg-color: #fff;
|
||||||
--item-bg-color-var: #eee;
|
--item-bg-color-var: #eee;
|
||||||
|
|
@ -21,10 +21,7 @@
|
||||||
--neumorph-shadow-lighter-inset: #fff;
|
--neumorph-shadow-lighter-inset: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Amber Dark scheme (Auto) */
|
:root:not([data-theme]) {
|
||||||
/* Automatically enabled if user has Dark mode enabled */
|
|
||||||
@media only screen and (prefers-color-scheme: dark) {
|
|
||||||
:root:not([data-theme]) {
|
|
||||||
--primary: #ffb300;
|
--primary: #ffb300;
|
||||||
--primary-hover: #ffc107;
|
--primary-hover: #ffc107;
|
||||||
--primary-focus: rgba(255, 179, 0, 0.25);
|
--primary-focus: rgba(255, 179, 0, 0.25);
|
||||||
|
|
@ -41,12 +38,12 @@
|
||||||
--neumorph-shadow-darker-inset: #000;
|
--neumorph-shadow-darker-inset: #000;
|
||||||
--neumorph-shadow-lighter: #555;
|
--neumorph-shadow-lighter: #555;
|
||||||
--neumorph-shadow-lighter-inset: #555;
|
--neumorph-shadow-lighter-inset: #555;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Amber Dark scheme (Forced) */
|
/* Amber Dark scheme (Forced) */
|
||||||
/* Enabled if forced with data-theme="dark" */
|
/* Enabled if forced with data-theme="dark" */
|
||||||
[data-theme="dark"],
|
[data-theme="dark"],
|
||||||
|
:root:not([data-theme]),
|
||||||
:root[data-theme="dark"] {
|
:root[data-theme="dark"] {
|
||||||
--primary: #ffb300;
|
--primary: #ffb300;
|
||||||
--primary-hover: #ffc107;
|
--primary-hover: #ffc107;
|
||||||
|
|
@ -78,8 +75,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Ubuntu', sans-serif;
|
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
font-family: 'Ubuntu', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-moz-selection,
|
::-moz-selection,
|
||||||
|
|
@ -102,10 +99,10 @@ samp {
|
||||||
}
|
}
|
||||||
|
|
||||||
.skip-link {
|
.skip-link {
|
||||||
padding: 5px 10px;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
padding: 5px 10px;
|
||||||
transform: translateY(-100%);
|
transform: translateY(-100%);
|
||||||
transition: transform 0.3s;
|
transition: transform 0.3s;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue