Get started with darkreader CDN

MIT licensed

Library: Darkreader inverts webpage colors for low-light readability.

Tags:
  • dark-theme
  • dark-mode
  • night-mode
  • darkmode
  • nightmode
  • accessibility
  • eye-care

Stable version

Copied!

How to start using darkreader CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with darkreader CDN - cdnhub.io</title>
    <script src="https://cdn.jsdelivr.net/npm/darkreader/release/darkreader.min.js"></script>
    <link rel="stylesheet" href="styles.css" />
    <script>
        window.onload = function() {
            if (darkreader.isSupported()) {
                darkreader.activate();
            }
        };
    </script>
</head>
<body>
    <h1>Welcome to Darkreader Example</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nulla eget bibendum laoreet, nisi lorem egestas odio, ut aliquam odio nisi quis nibh. Nullam id felis et ipsum bibendum ultrices. Nullam id felis et ipsum bibendum ultrices.</p>
</body>
</html>
Copied!
Copied!
Copied!

All versions