Skip to content

Respect system theme preference#294

Open
GHX5T-SOL wants to merge 1 commit into
algora-io:mainfrom
GHX5T-SOL:fix/222-system-theme
Open

Respect system theme preference#294
GHX5T-SOL wants to merge 1 commit into
algora-io:mainfrom
GHX5T-SOL:fix/222-system-theme

Conversation

@GHX5T-SOL
Copy link
Copy Markdown

Refs #222.

Summary

  • switch Tailwind dark variants to class-based mode so they follow the root theme class
  • choose the initial root .dark class before CSS loads from localStorage.theme or prefers-color-scheme: dark
  • remove the hard-coded dark body class and add color-scheme for light/dark tokens

Validation

  • node --check assets/tailwind.config.js
  • mix format --check-formatted lib/algora_web/components/layouts/root.html.heex assets/css/app.css
  • mix compile (passes; existing unrelated warnings in current main)
  • mix tailwind algora
  • git diff HEAD~1..HEAD --check
  • git diff HEAD~1..HEAD | gitleaks detect --pipe --no-banner --redact (no leaks found)

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant