Short answer: 41% declare a dark mode in their CSS, and 6.6% open dark
How many websites have a dark mode?
41% of the 1,000 most-linked home pages declare dark colors in their CSS, based on data that Recolor (recolor.page) measured on October 8, 2026 for The colors of the web 2026. Most of these websites set their dark colors under a class or attribute rather than relying on the system's dark setting. Across the entire sample, only 6.6% of the home pages open dark by default.
Last updated
| What is counted | Share of the sites | Sites |
|---|---|---|
| A dark mode declared in the CSS, any way | 41% | 406 |
Under a dark theme's class or attribute, such as .dark | 33% | Counted in the line above |
In a prefers-color-scheme: dark media query | 16% | Counted in the line above |
With light-dark() | 1.8% | Counted in the line above |
A color-scheme that includes dark | 17% | Not a dark mode on its own |
| A dark page as it opens | 6.6% | 66 |
How many sites declare a dark mode
406 of the 1,000 sites, or 41%, declare dark colors somewhere in their CSS. The methodology counts three ways that style sheets define these alternate colors:
- under a dark theme's class or attribute, such as
.darkor[data-theme="dark"]: 33%; - in a
prefers-color-scheme: darkmedia query, which follows the visitor's system setting: 16%; - with
light-dark(): 1.8%.
A site can use more than one of these methods. A class or attribute is twice as common as the media query, so
most dark modes are switched by the site, often with a toggle, rather than taken from the system. In addition,
17% of the sites set a color-scheme that includes dark, which turns the browser's own form
controls and scroll bars dark as well; on its own that is not a dark mode.
How many sites are dark when they open
Only 6.6% of the 1,000 home pages are dark when they open. A site's theme is the lightness of its canvas, the color behind the page: at OKLCH lightness 0.4 or less it is dark, at 0.8 or more light.
66 of the sites, or 6.6%, open dark and 92% open light. Measured by the text instead, 13% set most of their text on a dark ground. Chrome read every page in light mode during the data collection. The dark sites are listed on the dark websites page, and the sites with a dark mode in their CSS are collected on the websites with a dark mode in their CSS page.
- Light canvas92%
- Mid1%
- Dark canvas6.6%
The numbers
| Canvas | Sites | Share |
|---|---|---|
| Light | 924 | 92% |
| Mid | 10 | 1% |
| Dark | 66 | 6.6% |
| Dark mode in the CSS | 406 | 41% |
What the count cannot see
The count cannot see dark modes that rely on client scripts or late style sheets. The study loaded each home page once, with scripts off, and read the CSS as it came. A dark mode that a script adds, that lives in a style sheet the page loads later, or that sits under a selector the study does not know is not counted, so 41% is a floor.
The dataset lists each site with its theme and whether its CSS declares a dark mode. You can inspect the full raw data in the study's csv download.
Trying a palette on a dark page
When you try a palette on a dark page in Recolor, the page stays dark. In Recolor a page's background and text move towards the palette's lightest and darkest colors, the other way round on a dark page. Recolor's docs on how it repaints a page describe this balance, and the guide to make a palette accessible explains why a dark hero stays dark.
To test this behavior on a site, load an address in the Recolor app and press Space.
Common questions
Do most websites have a dark mode?
No. 41% of the most-linked home pages declare one in their CSS.
Do most dark modes follow the system setting?
No. A class or attribute (33%) is more common than the prefers-color-scheme media query (16%).
Are many websites dark by default?
No. 6.6% of the home pages open dark and 92% open light.
Did the study switch each site to dark?
No. It read the dark colors in each site's CSS; Chrome loaded every page in light mode.
Can I see which sites have a dark mode?
Yes. The page of websites with a dark mode lists every one in the study.
Can I use the data?
Yes. The dataset is licensed CC BY 4.0; credit Recolor and link the study.
Sources
- Recolor's colors of the web 2026 study recolor.page
- Recolor's docs on how it repaints a page recolor.page