Colors and color schemes - Fabula

Theme settings

Fabula carries two color schemes, light and dark, and every color below belongs either to both or to one of them. All of it lives in one Customizer section: AppearanceCustomizeFabula ThemeColors. The section has four tabs: General, Light, Dark, and Navigation.

Colors accept any CSS color, including values with transparency such as rgba(0, 0, 0, 0.5). Changes show live in the preview and apply to the site after you click Publish.

#General tab

These colors apply in both schemes.

What a first-time visitor sees. The choices are Device, Light, and Dark. How each one behaves is explained in the section on the default scheme below.

The accent color of the theme. Buttons, highlights, and other accent details use it.

The color of lines and outlines on normal backgrounds. Default rgba(152, 152, 152, 0.4).

The border color used on elements that sit on an accent-colored background, where the normal border would not show. Default rgba(255, 255, 255, 0.3).

The color of links.

The Colors section of the Customizer with the Primary color control highlighted
The Primary color sets the theme accent.

#Light and dark tabs

The Light and Dark tabs hold the same four colors, one set per scheme. A value set on the Dark tab applies only while the dark scheme is showing. Defaults are given as light, then dark.

The page background. Defaults #fff and #34363a.

The second background tone, used for panels and alternating areas. Defaults #f4f3f3 and #28292a.

The color of headings. Defaults #000 and #fff.

The color of body text. Defaults #4a4a4a and #c7c7c7.

The accent, border, and link colors from the General tab are shared by both schemes. If your accent color is too bright or too dark on one of the two backgrounds, pick a middle value, because there is no separate accent for dark mode.

Three colors that override the scheme colors for the menu only. They are empty by default, and an empty field means the menu follows the scheme.

The color of menu text and icons.

The menu background.

The line around the menu.

These three colors style the navigation that comes with Fabula Pro (desktop menu, mobile menu, and off-canvas sidebar). The free theme's own header does not read them, so on a site without Pro they change nothing.

#How the default scheme and the switcher work

The header has a switch with a sun and a moon. A click toggles between light and dark, and the choice is stored in a browser cookie named jkd-color-scheme, so it stays in place on the next page. The switch is always present in the theme header and has no setting to hide it.

The sun and moon switch at the right end of the site header
The color scheme switch in the header.

The three values of Default color scheme decide what a visitor sees before they have clicked the switch:

Device

The visitor's device decides. A phone set to dark shows the dark site on the first visit, with no flash of the light version. While the visitor has not used the switch, the site follows later changes of the device setting too.

Light

The first visit is always light, whatever the device asks for.

Dark

The first visit is always dark, whatever the device asks for.

Once a visitor clicks the switch, their choice wins over the default. With Light or Dark, the device setting is never consulted.

#With Fabula Pro active

Fabula Pro replaces this one setting with its own. The Customizer's Default color scheme is ignored while Pro is active, and the choice moves to the Fabula ProTheme OptionsGeneral page:

The scheme of a first visit. The choices are Light and Dark.

Matches the scheme to the visitor's device until they use the switch, and follows later device changes. While it is on, the device preference takes the place of the default above.

In Pro, the switch is a menu setting and is off until you turn it on: Enable Color Switcher on the General Settings tab (desktop) and on the Mobile Settings tab of the Fabula ProTheme OptionsNavigation page. See Theme Options: the Pro settings panel. Pro also adds one dark-scheme color, Dark Scheme Border Color (default #545756), on the Fabula ProTheme OptionsGeneral page.

To walk through choosing the scheme and testing the switch, see Set up dark mode.

#Questions

Why does my menu color setting do nothing?

The Navigation tab colors belong to the Fabula Pro menu. Without Pro, the free theme's header takes its colors from the Light and Dark tabs.

I set the default to Dark but I still see the light site

You or your browser has already used the switch, so the stored choice wins. Click the switch once, or delete the jkd-color-scheme cookie, and reload. If a page cache is active, clear it as well.

Can I force one scheme and remove the switch?

The free theme has no setting to hide the switch. Choose Light or Dark as the default to set what first-time visitors see.

Last updated

Was this article helpful?

FIND THE ONE THAT FITS YOUR PROJECT

Import a demo, swap the content, adjust the layout. Modern WordPress under the hood, fast even when the site fills up.