# theme

    .theme color:{String? = null} layout:{String? = null} -> Void

Content copied to clipboard

Sets the document theme.

The two components of a theme are:

- Color themes, which define the color scheme of a document, including colors for text, backgrounds, and other elements.

- Layout themes, which define the general structural rules of the layout, including margins, spacing, and positioning.

If any of the components isn't specified, the current one is kept, or the default one is used if not set yet.

Check out the wiki page for a list of available themes. Theme existence is validated at rendering time.

#### Parameters

color

- Optional

optional color scheme to assign

layout

- Optional
- Likely named

layout format to assign

#### Wiki page

themes