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-mode #377

Open
crowlKats opened this issue Oct 31, 2023 · 1 comment
Open

dark-mode #377

crowlKats opened this issue Oct 31, 2023 · 1 comment
Labels

Comments

@crowlKats
Copy link
Member

Depends on #376

@nberlette
Copy link

Is a PR being worked on for this?

I think it could be super beneficial if the docs used a theme-based format rather than hardcoded tw tokens. Users could customize the look of their docs, and it would reduce the source code complexity I'd imagine. Implementing a dark mode theme would be trivial in this scenario.

Shortly after the HTML feature debuted, I wrote a little script that injected a dark mode stylesheet and some JS for a toggle switch into the generated docs. I'll post a screen grab below just for an idea of what the docs might look like with the lights out. The colors are very similar (identical) to GitHub's dark theme.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants