Building a section that stays dark - Verba
To make a section that's dark on a light site and still dark after a reader switches to dark mode, set Background to Dark surface in Layout Utilities.

#Why a dark hex color doesn't work
A color you type in the builder is one color, and what you want is a palette.
A section painted with a hex value keeps that value in both schemes. The headings, links, buttons, borders, and captions inside it don't: they follow the page's scheme. On a light page they stay dark, so you get dark text on your dark band, and the only fix is to restyle every element in it by hand.
Dark surface switches the section to the dark palette and paints the surface from it. Everything inside reads the dark values, so the text, the links, and the buttons come out right without you touching them.
#Set it up
Open Layout Utilities
Select the section. In Elementor that's a container: open the Layout tab and the Layout Utilities section. In the block editor it's a Group block: open the Layout Utilities panel in the block sidebar.
Choose the one that matches the job
Pick from Background, or use one of the two toggles under it. The four options are below.
Check it in both schemes
Switch the site between light and dark with the scheme toggle in the header and look at the section in each. It takes ten seconds.
- Always dark
Background: Dark surface. Dark in light mode, dark in dark mode. Use it for a footer band, a quote break, or a feature strip that should read as a hard cut in the page.
- Always your accent
Background: Accent surface. The section takes the accent color from AppearanceCustomizeVerba ThemeTheme Styles, and the copy inside switches to the accent's paired foreground so it stays legible on any accent you choose. Change the accent later and the section follows.
- Always the opposite of the page
Inverted colours. Dark on a light site, light on a dark site. Use it when the point is contrast with the surrounding page rather than a particular color.
- Dark, over a photograph
On dark, with the image in the builder's own background field. The palette goes dark so the copy sits on the photo correctly, and no color is painted over your image.
On dark holds the dark palette whatever the scheme is; Inverted colours flips whatever the scheme is. A section can't do both, so the panel hides one while the other is on.
#Don't use Inverted colours for a dark section
It looks right in the editor, because the site is in light mode and inverted means dark. Then a reader switches to dark and the section turns light, which is the opposite of what you built. Inverted is for contrast against the page. Dark surface and On dark are for a section that has to stay dark.
#What happens to the content inside
Nothing you have to configure.
Headings, body text, links, buttons, labels, and borders all read the section's palette rather than the page's, so a button inside a dark section is styled for a dark surface. Cards and listings placed in one do the same.
Two things to check by eye: a logo or icon that ships in a single flat color, which may need its dark version, and any image with a white background, which shows as a bright rectangle on the dark band whatever the palette does.
Last updated
Was this article helpful?
- Basic settings in the Customizer
- Set up dark mode
- Site layout: default, boxed, or wide
- Colors, fonts, and style kits
- Breadcrumbs
- Theme Options: the advanced settings panel
- General: site behavior
- General: optimization
- SPA and page transitions
- Content zones and insertions
- Blog: how posts are presented
- Before you go: the exit-intent banner
- Floating card: a post that follows the reader
- Marketing surfaces and analytics
- Accessibility settings
- Object-level settings
- Category fields
- Tag fields
- Author profile fields
- Widget areas
- Page fields and per-page layout
- Post fields
- Writing a post in Verba
- Single post settings in the Customizer
- Advanced single post settings in Theme Options
- Post formats
- Building a post from a block pattern
- Building a post with an Elementor template
- Post header styles
- Reading aids: how the four blocks work
- TL;DR summary
- Key points
- Table of contents
- Summarize with AI
- Reading bar
- Sharing: placements, styles, and copy link
- The share block in the post footer
- Continuous reading: the next post without a click
- Likes, views, and comment voting
- Related posts and read also
- Sources and citations
- Splitting a long post across several pages
- Comments
- Formatting the body of an article
- Archives in the free theme
- The posts page: showcase and featured author
- Advanced archives
- Archives from a block pattern
- Archives from an Elementor template
- Post and term listings
- Listing settings, group by group
- Where listings are used
- Listing settings and query
- Customizing the look of a listing
- Search results, the 404 page, and protected posts