lodash.com icon indicating copy to clipboard operation
lodash.com copied to clipboard

Enhancement: Dark Mode Toggle & “Copy Code” Button Missing in Documentation Pages

Open shibadityadeb opened this issue 1 month ago • 2 comments

📌 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:

  1. 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.
  2. "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.

shibadityadeb avatar Nov 10 '25 16:11 shibadityadeb

Please assign this to me

shibadityadeb avatar Nov 10 '25 16:11 shibadityadeb

Issues are never assigned in open source.

ljharb avatar Nov 11 '25 01:11 ljharb