Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark Theme #1

Open
faisalsaifii opened this issue Jan 7, 2024 · 1 comment
Open

Dark Theme #1

faisalsaifii opened this issue Jan 7, 2024 · 1 comment

Comments

@faisalsaifii
Copy link

Suggestion: Use TailwindCSS

Configure the colors in CSS as variables

:root {
  --foreground-color: #000000;
  --background-color: #FFFFFF;
}

Use the a media query to get the device theme and change the values of the variables accordingly

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-color: #FFFFFF;
    --background-color: #000000;
  }
}
@AzeemIdrisi
Copy link
Owner

Thanks for the suggestion bhai.

Repository owner deleted a comment from DylanZhu2021 Feb 23, 2024
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

No branches or pull requests

2 participants