# Dark mode for Webflow > How to add dark mode to your Webflow site with one line of code, step by step. ## Before you start - Custom code needs a paid plan: an active Site plan, or a Core, Growth, Agency or Freelancer Workspace plan. ## Add DarkYes to your Webflow site 1. Create a free DarkYes account and add your site's address. In your dashboard, press Get the code next to the site, then Copy code. Your line looks like this, with your own key in place of `YOUR-KEY`: ```html ``` 2. Open your site settings and go to the Custom code tab. 3. Paste your line into the Head code section. 4. Press Save changes. 5. Publish your site. Custom code appears only on the published site. ## Check that it works 1. Open your site in a private window. 2. Look for the switch in the bottom-right corner, and press it. 3. In your dashboard, the site changes from “Waiting for the first visit” to “Active”. ## Remove it Delete the line from the Head code section, press Save changes, and publish again. Your site then looks exactly as it did before. These steps were checked against [the Webflow Help Center](https://help.webflow.com/hc/en-us/articles/33961357265299-Custom-code-in-head-and-body-tags) on 14 November 2026. ## Try it on your own site. Create a free account, add your site and paste one line. When your first site goes live, you get 14 days of Pro for free. Start free, no card needed: https://darkyes.com/auth/login?return_to=/app --- This is the Markdown version of https://darkyes.com/platforms/webflow. Every page of this site: https://darkyes.com/llms.txt