npm / @terrazzo/plugin-css
@terrazzo/plugin-css
What changed in @terrazzo/plugin-css 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
4 breaking3 deprecations7 new APIs and options2 behavior and defaults11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@terrazzo/plugin-css 227 changes
Breaking changes 4
@terrazzo/plugin-css now inherits alphabetize from options, a minor breaking change.
Lint plugins must use the merged
sourcesarray instead of the per-filesrccontext value.Lint plugins no longer receive lint context per individual file; plugins using
srcmust instead read fromsourcesand look up files by token source location.May be undefined for tokens created with
$ref, so plugins using this value must account for its absence.
Deprecations 3
Marked deprecated for removal in 3.0; migrate to permutations.
Marked deprecated for removal in 3.0; migrate to permutations.
Marked deprecated for removal in 3.0; migrate to permutations.
New APIs and options 7
The resolver API adds orthogonality detection, except for $extends.
Added the omitTypographyShorthand option.
Added the subValueVariableName option.
Provides the functionality of the deprecated options and more, and is the recommended migration target.
Support was added for the Token Listing format.
Typography shorthand support was added.
Configuration now allows partial utility CSS groups.
Behavior and default changes 2
Shadow token types and CSS processing now allow lists of aliases.
Validation moved to lint rules, allowing token validation to be configured individually and optionally extended.
Fixes and other changes 11
Fixes sibling-token aliases emitting a variable that reads itself and silently dropping the sibling’s real value.
Zero-valued dimension tokens preserve their units instead of serializing as bare 0, keeping values such as 0px and 0rem type-compatible in CSS math functions like calc().
Improves handling of aliases when the primitive or primary has a token but the aliases do not, preventing tokens from being dropped.
Fixes legacy modeSelectors resolving to the default alias instead of the requested mode.
Fixes a runtime error when $extensions does not have a mode object.
Fixed border tokens not cascading correctly across modes.
Utility class generation now includes missing logical property directions.
Fixed stale descriptions when multiple CSS plugins are used.
CSS generation for extended typography properties was improved.
The TypeScript type now permits
undefinedornullreturn values.Transforms from a previous plugin-css run are no longer cached, preventing correct or unexpected output from stale cached transforms.