feat: wire up class-based dark mode for Tailwind v4

- app.css: add @custom-variant dark so Tailwind v4 respects .dark class
  on <html> instead of always following OS prefers-color-scheme.
- app.html: remove hardcoded class="light" (now set dynamically).
- +layout.svelte: toggle .dark/.light on <html> when ae_loc.theme_mode changes.
- e_app_theme.svelte: related theme toggle changes.
This commit is contained in:
Scott Idem
2026-03-06 17:32:30 -05:00
parent bdf3260c74
commit 9fc72b4671
4 changed files with 19 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" class="light" data-theme="">
<html lang="en" data-theme="">
<head>
<meta charset="utf-8" />