Home

Creative Works

Usage

Start with these tokens when customizing creative works:

  • --work-content-max-width and --work-content-max-width-mobile for readable line length

  • --work-title-* tokens to control title typography, spacing, and alignment

  • --work-authors-* and --work-abstract-* to style metadata slots

  • --work-toc and --work-toc-title to toggle and label the table of contents

Work tokens focus on the container and its major slots (title, authors, abstract, content, references). Content blocks inside the work still use their own node tokens (paragraphs, headings, figures, etc.).

These tokens apply to all creative work types: <stencila-article>, <stencila-skill>, <stencila-agent>, and <stencila-workflow>.

Tokens

Layout Tokens

Control the overall work width and responsive sizing.

TokenDescriptionDefault Value
--work-content-max-widthMax width for work content blocksvar(--content-width)
--work-content-max-width-mobileMax width for work content on mobilevar(--content-width-mobile)

Title Tokens

Typography and layout for the work title slot.

TokenDescriptionDefault Value
--work-title-font-familyFont family for the work titlevar(--heading-font-family)
--work-title-font-sizeTitle font sizecalc(var(--text-font-size) * 2.5)
--work-title-font-size-mobileTitle font size on mobilecalc(var(--text-font-size-print) * 2.0)
--work-title-font-size-printTitle font size in printcalc(var(--text-font-size-print) * 2.0)
--work-title-font-weightTitle font weightvar(--font-weight-bold)
--work-title-line-heightTitle line heightvar(--line-height-tight)
--work-title-line-height-mobileTitle line height on mobilevar(--line-height-tight)
--work-title-letter-spacingLetter spacing for the title-0.02em
--work-title-colorTitle text colorvar(--text-color-primary)
--work-title-text-alignTitle text alignmentcenter
--work-title-max-widthMax width for the title blockcalc(var(--work-content-max-width) * 0.9)
--work-title-margin-bottomSpace below the title blockvar(--space-8)

Authors Tokens

Typography and spacing for the authors slot.

TokenDescriptionDefault Value
--work-authors-font-sizeAuthors font sizevar(--text-font-size)
--work-authors-colorAuthors text colorvar(--text-color)
--work-authors-text-alignAuthors text alignmentleft
--work-authors-margin-bottomSpace below the authors blockvar(--space-6)

Abstract Tokens

Styling for the abstract slot and its background.

TokenDescriptionDefault Value
--work-abstract-font-sizeAbstract font sizevar(--text-font-size)
--work-abstract-colorAbstract text colorvar(--text-color)
--work-abstract-backgroundAbstract background colorvar(--surface-background)
--work-abstract-text-alignAbstract text alignmentleft
--work-abstract-max-widthMax width for abstract contentvar(--work-content-max-width)
--work-abstract-margin-bottomSpace below the abstract blockvar(--space-6)

Table of Contents Tokens

Configuration for the automatic table of contents.

TokenDescriptionDefault Value
--work-tocTOC mode (none, true, or heading depth 1-6)none
--work-toc-titleTOC heading text"Contents"

Examples

Default Article

Standard article styling with the base layout and title treatments:

:root {
  /* No design token overrides */
}

Modeling coastal ecosystems under changing climates

Jordan Hayes, Priya Natarajan, and Emilio Vargas

Abstract

We present a coupled hydrodynamic and ecological model that improves predictive accuracy for nutrient cycling in estuarine systems.

The model integrates tidal fluxes with species-level responses to temperature, producing stable forecasts across seasonal regimes.

Editorial Title Treatment

Larger, left-aligned title with tighter tracking and centered authors:

:root {
  --work-title-text-align: left;
  --work-title-font-size: calc(var(--text-font-size) * 3);
  --work-title-letter-spacing: -0.03em;
  --work-title-max-width: var(--work-content-max-width);
  --work-authors-text-align: center;
}

Field notes from the edge of the ice

Marina Cho and Luca Romano

This report documents daily observations gathered during the 2024 polar expedition, with a focus on sea ice melt and microbial activity.

Abstract Callout and TOC

Highlight the abstract and enable a short table of contents:

:root {
  --work-abstract-background: var(--surface-sunken);
  --work-abstract-text-align: justify;
  --work-abstract-max-width: calc(var(--work-content-max-width) * 0.95);
  --work-toc: 3;
  --work-toc-title: "On this page";
}

Abstract

We introduce a new sampling method for long-term climate archives that reduces uncertainty in sediment-derived temperature reconstructions.

Methods

Core samples were extracted from five coastal sites and processed using standardized isotope ratios for calibration.

Tips

Readable width: Adjust --work-content-max-width first, then tune --work-title-max-width for balance.

TOC depth: Use --work-toc: 3 (or any 1-6 value) to keep the contents concise.

Metadata alignment: Match --work-title-text-align with --work-authors-text-align for a unified header.

© 2026 Stencila