Usage
--work-content-max-widthand --work-content-max-width-mobilefor readable line length --work-title-*tokens to control title typography, spacing, and alignment --work-authors-*and --work-abstract-*to style metadata slots --work-tocand --work-toc-titleto toggle and label the table of contents
<stencila-article><stencila-skill><stencila-agent><stencila-workflow>
Tokens
Layout Tokens
--work-content-max-width | var(--content-width) | |
--work-content-max-width-mobile | var(--content-width-mobile) |
Title Tokens
--work-title-font-family | var(--heading-font-family) | |
--work-title-font-size | calc(var(--text-font-size) * 2.5) | |
--work-title-font-size-mobile | calc(var(--text-font-size-print) * 2.0) | |
--work-title-font-size-print | calc(var(--text-font-size-print) * 2.0) | |
--work-title-font-weight | var(--font-weight-bold) | |
--work-title-line-height | var(--line-height-tight) | |
--work-title-line-height-mobile | var(--line-height-tight) | |
--work-title-letter-spacing | -0.02em | |
--work-title-color | var(--text-color-primary) | |
--work-title-text-align | center | |
--work-title-max-width | calc(var(--work-content-max-width) * 0.9) | |
--work-title-margin-bottom | var(--space-8) |
Authors Tokens
--work-authors-font-size | var(--text-font-size) | |
--work-authors-color | var(--text-color) | |
--work-authors-text-align | left | |
--work-authors-margin-bottom | var(--space-6) |
Abstract Tokens
--work-abstract-font-size | var(--text-font-size) | |
--work-abstract-color | var(--text-color) | |
--work-abstract-background | var(--surface-background) | |
--work-abstract-text-align | left | |
--work-abstract-max-width | var(--work-content-max-width) | |
--work-abstract-margin-bottom | var(--space-6) |
Table of Contents Tokens
--work-toc | nonetrue | none |
--work-toc-title | "Contents" |
Examples
Default Article
: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
: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
: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
--work-content-max-width--work-title-max-width
--work-toc: 3
--work-title-text-align--work-authors-text-align