Jetons.CSS.UtilityClass (jetons v0.2.0)

Copy Markdown View Source

Renders composite tokens as CSS utility class blocks.

Typography tokens become .class { font-family: ...; font-size: ...; } blocks. Surface tokens become .class { background: ...; color: ...; } blocks.

Summary

Functions

Renders a list of {path, raw_value} utility tokens as CSS class blocks.

Returns true if the given DTCG type should be rendered as a utility class.

Functions

render_blocks(tokens, resolved_map, type_map, inline_prefixes)

Renders a list of {path, raw_value} utility tokens as CSS class blocks.

utility_type?(type)

Returns true if the given DTCG type should be rendered as a utility class.