theme

fun theme(color: String? = null, layout: String? = null): Void

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.

Parameters

color
  • Optional

optional color scheme to assign

layout

layout format to assign

Throws

if any of the theme components isn't resolved

Wiki page

Themes