From 82ae577a037beb38582157dd686998836aa99d93 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 15 Feb 2026 09:28:58 -0800 Subject: Clean up redundant font CSS variables and consolidate :root blocks --- frontend/src/index.css | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index acabee9..22fc7d0 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -2,6 +2,20 @@ /* Font Variables */ --font-body: Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', Georgia, serif; --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif; + + line-height: 1.5; + font-size: 18px; + + /* Light Mode Defaults */ + --bg-color: #ffffff; + --text-color: rgba(0, 0, 0, 0.87); + --sidebar-bg: #ccc; + --link-color: #0000ee; + /* Standard blue link */ + + color-scheme: light dark; + color: var(--text-color); + background-color: var(--bg-color); } html, @@ -32,8 +46,7 @@ h5, /* Font Themes */ .font-default { - --font-body: Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', Georgia, serif; - --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif; + /* Uses :root defaults */ font-family: var(--font-body); } @@ -55,21 +68,6 @@ h5, font-family: var(--font-body); } -:root { - line-height: 1.5; - font-size: 18px; - - /* Light Mode Defaults */ - --bg-color: #ffffff; - --text-color: rgba(0, 0, 0, 0.87); - --sidebar-bg: #ccc; - --link-color: #0000ee; - /* Standard blue link */ - - color-scheme: light dark; - color: var(--text-color); - background-color: var(--bg-color); -} .theme-light { --bg-color: #ffffff; -- cgit v1.2.3