## Layout and design tokens

Product: Fabula - News & Magazine WordPress Theme
URL: https://hub.jkdevstudio.com/docs/fabula/theme-settings/layout-and-design-tokens
Updated: 2026-11-28
Summary: Set Fabula container widths, corner radius, opacity levels, shadows, overlay colors, and page transitions in the Layout section of the Customizer.

The **Layout** section holds the numbers that shape the whole theme: how wide the content is, how round the corners are, how strong shadows and overlays look. Each value is a design token, a single setting that every part of the theme reads, so one change updates the site everywhere at once.

Find it at [[Appearance > Customize > Fabula Theme > Layout]]. It has six tabs: **Sizes**, **Border Radius**, **Opacity**, **Shadows**, **Overlays**, and **Motion**. Changes show live in the preview and apply to the site after you click **Publish**.

## Sizes

:::options

- **Content Width (px)** (default: 1280): The width of the main content container used across pages. The slider runs from `600` to `2400` in steps of `10`.

- **Wide Width (px)** (default: 1920): The maximum width of wide layouts and stretched sections. The slider runs from `800` to `2600` in steps of `10`.

- **Content Offset (px)** (default: 30): The horizontal space between the content and the edge of its container. The slider runs from `0` to `200` in steps of `1`.

:::

<figure class="doc-figure" data-align="center"><img src="https://hub.jkdevstudio.com/storage/docs/2026/11/6cfd1a98-f882-4bbf-805c-f7816a231fda.webp" alt="The three size sliders in the Layout section with Content Width highlighted"><figcaption>Content Width sets the main container.</figcaption></figure>

## Border radius

Four sizes of rounded corners. Setting a value to `0` gives square corners, and a large value gives a pill shape. All four run from `0` to `200` pixels.

:::options

- **Border Radius Small (px)** (default: 3): Compact elements.

- **Border Radius Medium (px)** (default: 8): Common components.

- **Border Radius Large (px)** (default: 12): Cards and modals.

- **Border Radius Extra Large (px)** (default: 100): Fully rounded and pill-shaped elements.

:::

<figure class="doc-figure" data-align="center"><img src="https://hub.jkdevstudio.com/storage/docs/2026/11/5ccbe647-ca47-4a08-a442-65c3f474d5f9.webp" alt="The four border radius sliders with Border Radius Medium highlighted"><figcaption>Four sliders set the corner sizes.</figcaption></figure>

To get a sharper, more editorial look, set the first three to `0`. Keep **Extra Large** high if you want buttons to stay pill-shaped.

## Opacity

Four levels of transparency used across the theme. Every one runs from `0` to `1` in steps of `0.01`, where `1` is fully visible. The names run from the most transparent to the least.

:::options

- **Opacity XL** (default: 0.2): The lowest visibility. Used for subtle effects.

- **Opacity LG** (default: 0.4): Low visibility, for background overlays and hover states.

- **Opacity MD** (default: 0.6): Medium visibility, for interface accents and shadows.

- **Opacity SM** (default: 0.8): The highest visibility of the four, for text and active elements.

:::

## Shadows

Three shadow colors. A shadow color carries its own transparency, so a stronger shadow is a darker or less transparent value.

:::options

- **Shadow Small**: A subtle shadow for inner elements. Default `rgba(0, 0, 0, 0.1)`.

- **Shadow Medium**: The shadow of cards and raised surfaces. Default `rgba(0, 0, 0, 0.2)`.

- **Shadow Large**: A deeper shadow for modals and overlays. Default `rgba(0, 0, 0, 0.3)`.

:::

## Overlays

Five overlay colors for dimming layers, such as the one behind menus and modals. As with shadows, the transparency is part of the color value.

:::options

- **Overlay Base**: The default overlay of modals and menus. Default `rgba(0, 0, 0, 0.4)`.

- **Overlay Extra Small**: A light dim for minor effects. Default `rgba(0, 0, 0, 0.15)`.

- **Overlay Small**: A soft overlay for light backgrounds. Default `rgba(0, 0, 0, 0.25)`.

- **Overlay Medium**: A balanced overlay for general dimming. Default `rgba(0, 0, 0, 0.4)`.

- **Overlay Large**: A darker overlay, used behind modals. Default `rgba(0, 0, 0, 0.6)`.

:::

## Motion

:::options

- **Smooth page transitions** (default: on): Fades between pages in browsers that support view transitions. It switches itself off for visitors whose device is set to reduce motion, and browsers without support simply load pages as usual.

:::

## With Fabula Pro active

Fabula Pro adds the strongest steps of two scales, because its layouts use them. They sit on the [[Fabula Pro > Theme Options > General]] page, in the **Style Tokens** group: **Shadow Extra Large** (default `rgba(0, 0, 0, 0.4)`) and **Overlay Extra Large** (default `rgba(0, 0, 0, 0.8)`). Pro also has its own **Boxed Layout Width** setting for the boxed page layout, separate from **Content Width** above. See [Theme Options: the Pro settings panel](https://hub.jkdevstudio.com/docs/fabula/theme-settings/theme-options).