Bairdy
Bairdy17mo ago

Feature Suggestion: Dark Mode for `std` library Docs.

Deno's documentation is great. I find myself reading it more and more. I currently use a browser addon called Midnight Lizzard to turn it Dark. It works great but since Deno's site is made in Tailwind I was wondering if the devs could add a simple Light/Dark Toggle button on Top Right of the page where you usually see them. It would be great on the eyes for long reads and overall.
Midnight Lizard
Custom color schemes for all websites: night mode, dark themes, blue light filter, screen shader, high contrast, grayscale, etc.
5 Replies
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
lucsoft
lucsoft17mo ago
you can have a beautiful darkmode just by adding trol
const meta = document.createElement("meta")
meta.name = "color-scheme"
meta.content = "light dark"
document.head.append(meta)
const meta = document.createElement("meta")
meta.name = "color-scheme"
meta.content = "light dark"
document.head.append(meta)
Bairdy
Bairdy17mo ago
Thank you for the useful replies! I certainly understand this is not a priority is the grand scheme of things. Just wondered if Tailwinds could allow for a relatively small update that propagates to all pages.
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
lucsoft
lucsoft17mo ago
I don’t know it’s just a simple meta tag in your html file Can’t you access that I fresh?