Home

Styled

This is an abstract base type used in Stencila Schema for nodes with explicit style code.

It exists to represent styling separately from a node's core structural or semantic role, while still allowing style code, style language, authorship, provenance, and compiled CSS to be stored within the document model. This supports authoring, theming, and style-aware publishing workflows.

Key properties include code, styleLanguage, compilationDigest, css, and classList.

This type is marked as unstable and is subject to change.

Properties

The Styled type has these properties:

NameDescriptionTypeInherited from
codeThe code of the equation in the styleLanguage.Cord-
styleLanguageThe language used for the style specification e.g. css, twString-
authorsThe authors of the code and content in the styled node.Author*-
provenanceA summary of the provenance of the code and content in the styed node.ProvenanceCount*-
compilationDigestA digest of the code and styleLanguage.CompilationDigest-
compilationMessagesMessages generated while parsing and transpiling the style.CompilationMessage*-
cssA Cascading Style Sheet (CSS) transpiled from the code property.String-
classListA space separated list of class names associated with the node.String-
idThe identifier for this item.StringEntity

Related

The Styled type is related to these types:

Bindings

The Styled type is represented in:


This documentation was generated from Styled.yaml by docs_types.rs.

© 2026 Stencila