lodash.com
lodash.com copied to clipboard
Enhancement: Dark Mode Toggle & “Copy Code” Button Missing in Documentation Pages
📌 Feature Request: Dark Mode + Copy Code Button on Documentation Site
Website: https://lodash.com/
Repository: https://github.com/lodash/lodash
Problem
Currently, the documentation on https://lodash.com/ lacks:
-
Dark mode toggle
- Reading the docs for long periods can strain the eyes, especially in low-light environments.
- The website has a dark-themed code example section, but the rest of the UI stays bright, making the contrast uncomfortable.
-
"Copy" button for code snippets
- While exploring the docs, users need to manually select code to copy.
- A single-click "Copy Code" button (like many modern documentation sites provide) would improve developer experience.
💡 Proposed Solution
- Add a dark/light mode toggle (persist user preference in localStorage).
- Add a copy-to-clipboard button to code examples using
navigator.clipboard.writeText().
✅ Benefits
| Feature | Benefit |
|---|---|
| Dark mode toggle | Better readability, accessibility, and modern UI experience. |
| Copy code button | Faster workflow, improves DX, avoids manual text selection errors. |
🙌 Thank you
Lodash is an amazing library used by millions. These small UI improvements will significantly enhance the documentation experience for developers.
Please assign this to me
Issues are never assigned in open source.