# Dark mode for Framer > How to add dark mode to your Framer site with one line of code, step by step. ## Add DarkYes to your Framer 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. In your project, open Site Settings, then Code. 3. Add new code and paste your line. 4. Choose the placement “Start of ``” and set Pages to All. 5. Save, then publish your site again. Your key works on the domain you added. If you build on a Framer address before your own domain is connected, add that address in DarkYes as its own 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 code in Site Settings, then Code, and publish again. Your site then looks exactly as it did before. These steps were checked against [Framer Help](https://www.framer.com/help/articles/how-to-add-google-tag-manager-to-your-site/) 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/framer. Every page of this site: https://darkyes.com/llms.txt