chore: refine dark theme declarations + search ui

This commit is contained in:
Cory Dransfeldt 2024-01-07 10:38:03 -08:00
parent 00b501d185
commit caa49cf69e
No known key found for this signature in database
12 changed files with 172 additions and 239 deletions

View file

@ -27,8 +27,19 @@
--white: #fff;
--black: #000;
/* theme */
--color-lightest: var(--white);
--color-darkest: var(--black);
--text-color: var(--color-darkest);
--background-color: var(--color-lightest);
--text-color-inverted: var(--color-lightest);
--background-color-inverted: var(--color-darkest);
--accent-color: var(--blue-600);
--accent-color-hover: var(--blue-800);
--selection-color: var(--accent-color);
--gray-light: var(--gray-200);
--brand-github: #333;
--brand-github-light: #f5f5f5;
--brand-proton: #6d4aff;
--brand-mastodon: #6364ff;
--brand-lastfm: #d51007;
@ -81,6 +92,20 @@
--stroke-width-bold: 2;
}
/* dark theme */
@media (prefers-color-scheme: dark) {
:root {
--text-color: var(--white);
--background-color: var(--black);
--text-color-inverted: var(--black);
--background-color-inverted: var(--white);
--accent-color: var(--blue-400);
--accent-color-hover: var(--blue-200);
--gray-light: var(--gray-900);
--brand-github: #f5f5f5;
}
}
@media (prefers-reduced-motion) {
:root {
--transition-duration-default: 0.01ms;