DEV Community

Cover image for New Dark Mode
nightwolfdev
nightwolfdev

Posted on

2

New Dark Mode

Our website now has a toggle for Dark/Light mode!

A little javascript was used to toggle the sun/moon appearance, the dark-mode body class, and setting a cookie to store which mode you prefer.

Within the body tag, we read the cookie with PHP to apply the dark mode class if applicable on page load.

Let me know what you think? Thank you!


Visit our website at https://nightwolf.dev and follow us on Facebook and Twitter!


Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay