dark theme + decouple link color from accent color

This commit is contained in:
zyl 2023-11-13 12:55:33 -08:00
parent 688fe2bc48
commit 9c09ae9817
No known key found for this signature in database
GPG key ID: 8611B896D1AAFAF2
3 changed files with 9 additions and 5 deletions

View file

@ -27,7 +27,7 @@ header.main-header {
a {
text-decoration: none;
color: var(--accent-color);
color: var(--link-color);
&:hover,
&:focus {

View file

@ -2,6 +2,7 @@ body {
--bg-color: #eee;
--text-color: black;
--accent-color: #b520e7;
--link-color: var(--accent-color);
--accent-text-color: var(--bg-color);
--accent-color-neutral: #aaa;
--accent-text-color-neutral: #eee;

View file

@ -2,15 +2,18 @@ body {
--bg-color: rgb(255, 196, 252);
--text-color: black;
--accent-color: rgb(197, 48, 197);
--link-color: var(--accent-color);
--accent-text-color: white;
--accent-color-neutral: var(--accent-color);
--accent-text-color-neutral: var(--accent-text-color);
@media (prefers-color-scheme: dark) {
--bg-color: #333;
--text-color: #ccc;
--accent-text-color: black;
--accent-color-neutral: #555;
--bg-color: rgb(104, 25, 104);
--text-color: white;
--accent-color: var(--accent-color-neutral);
--link-color: rgb(255, 196, 252);
--accent-text-color: white;
--accent-color-neutral: rgb(74, 17, 74);
--accent-text-color-neutral: #bbb;
}
}