Mega Sale — up to 70% off every Pro plan

Ends Sep 22 at 10:00 am GMT+0000. Claim the discount

1. HTML/CSS Restriction

HTML/CSS Restriction controls which parts of your page dark mode is allowed to touch, by HTML tag, CSS class, or CSS ID. It is how you protect a section that must keep its original design.

Find it at Darkify → Advanced → HTML/CSS Restriction.

Allow Only Elements #

An allow-list. Enter selectors here and dark mode applies to those elements only — everything else on the page stays exactly as it is.

div, #site-header, .my-footer

Separate entries with commas. Use plain tag names for tags, # for IDs and . for classes.

Most sites should leave this empty. Reach for it when you want dark mode on one specific area of a page and nowhere else — a documentation column, say, while the marketing chrome around it stays light.

Force Design Correction #

When a background or text colour on an allowed element changes, this keeps the surrounding layout and readability intact — catching cases where a recoloured element would otherwise leave text sitting on a background it no longer contrasts with. Leave it on unless you have a specific reason not to.

Disallowed Elements #

The block-list, and the setting you will use far more often. Dark mode is not applied to anything matching these selectors.

#pricing-table *, .brand-banner, iframe, .payment-widget *

Add * after a selector to exclude that element and all of its children — which is usually what you want for a whole section.

Good candidates for the block-list #

  • Sections that are already dark by design.
  • Brand banners and hero areas with fixed artwork.
  • Third-party widgets: payment forms, maps, booking calendars, review badges.
  • Charts, graphs and infographics with their own colour language.
  • Any embed you do not control.

Force To Correct #

A companion to the block-list. If a disallowed element ends up with a background or text colour that does not work, this lets Darkify step in just enough to keep the design correct, rather than leaving it broken.

Finding the right selector #

  1. Right-click the element on your site and choose Inspect.
  2. Look at the highlighted HTML for a class or id attribute.
  3. Prefix a class with . and an ID with #.
  4. Pick the outermost element of the section, then add * to include everything inside it.

Prefer a specific class over a generic tag. Excluding div would remove dark mode from nearly your entire page. Excluding .checkout-widget * removes it from exactly the part you meant.

Restriction vs Custom CSS #

GoalUse
Leave a section completely untouchedDisallowed Elements
Apply dark mode to one area onlyAllow Only Elements
Style a section differently in dark modeCustom CSS
Change one specific colour everywhereColor Overrides
Turn dark mode off on a whole pagePage/Posts Restriction

What are your feelings

Updated on September 14, 2026

Darkify Dark Mode

Toggle Dark Mode