Websites

Dark mode website: one switch, every palette, readable contrast

A dark mode website uses a dark background with light text, which suits photography, nightlife, music and premium products. Done badly it is hard to read; done well every colour pair is retuned for the dark background rather than simply inverted.

Create a website with OneCraftHow a site is made dark by chat, how the colour tokens work, a visitor switch, and when a dark site is the wrong choice

How the switch works

Every site's colours live in one tokens file: background, surfaces, text, primary, accent and borders, with a light set and a dark set. Ask the chat to make the whole site dark and the AI moves the site onto the dark set, every page at once, then builds it so you can check the preview. It is one version, so restoring the version before it puts the light site back. A brand kit or palette chosen in the generator gives the AI your colours to start from.

Contrast, retuned rather than inverted

Dark pages read best with slightly lifted greys and softened brand colours rather than pure black and full brightness: pure white on pure black glares, and saturated colours vibrate on dark grounds. Ask the AI for readable contrast on every text and button pair, and check the preview at phone width, where small grey text suffers first.

A dark look to start from

Name the mood in the brief, such as moody and dark, late night, or black and gold, and the AI plans a dark direction from the start. A design reference address of a dark site you like works too: the AI follows its colour mood and type scale without copying it. There are no dark templates; the look is written for your business.

A switch for visitors, if you want one

Dark can be your design choice for everyone, or a setting each visitor picks. Ask for a light and dark switch in the menu and the AI adds it on the same tokens, remembering the choice in the visitor's browser; ask for it to follow the device setting and it does that instead. Phone apps made here already have Light, Dark and Follow device in their Account tab.

When dark is the wrong choice

Long reading, such as policies, menus with many items or detailed service descriptions, is easier on a light background for most people in daylight. Food and products often look better on light grounds too. Choose dark when the photos and the mood carry the site, and keep text short.

How it works, in three steps

  1. Step 1

    Ask for dark

    In the brief or in chat, ask for a dark site, or for a light and dark switch.

  2. Step 2

    Check the preview

    Look at phone, tablet and desktop widths, and ask for fixes to any text that is hard to read.

  3. Step 3

    Publish

    On a paid plan, publish; restore the earlier version if you change your mind.

Limits worth knowing

Questions people ask

Can visitors switch between light and dark?

Only if you ask for it. By default every visitor sees the look the AI built. Ask for a light and dark switch in the menu, or for the site to follow each visitor's device setting, and the AI adds it on the site's colour tokens. Light is the safer default for sites with a lot of reading.

Does dark mode save battery?

On phones with OLED screens a mostly dark page uses less power than a bright one, but the saving on a short website visit is small. Choose dark mode for how the site looks and reads, not for battery, and make sure photos and buttons still stand out.

Will my brand colour work on a dark background?

Usually, with care. The dark set of colours lifts a very dark brand colour such as navy so buttons stay visible, and softens a bright one so it does not glare. Check buttons and links in the preview after switching, and ask the chat for a lighter or darker shade of your brand colour on dark backgrounds if needed.

Can one section be dark on a light site?

Yes. Ask for a dark band, such as the testimonials on a deep brand colour or a photo with text over it, and the AI styles that part of the page on dark tokens while the rest stays light. Each build checks the result at every screen width.

Is dark mode bad for SEO?

No. Search engines read the text and structure, not the colours. What matters is that text is readable and that the page is fast. A dark site can rank exactly as well as a light one. Check that small grey text still reads well on a phone.

Do photos look different in dark mode?

Photos are shown as they are; nothing is darkened or filtered. Bright photos with white backgrounds can look like glowing boxes on a dark page, so prefer images with darker or natural backgrounds, or a photo behind the heading with the text over it. Product shots on white suit light pages better.

Make your own website

The button opens the generator with this use case already described. Change the wording to match yours, generate, then edit anything you like.

Create a website with OneCraft

Not ready to start? See the AI website builder page first.

Related pages

More finished work of this kind is on the website examples hub.

Sources

Written and checked by the OneCraft team. Last checked .