Plumeria 22.6

refirst11
refirst11Plumeria Core
Anionix
AnionixPlumeria Core

Values normalized by Lightning CSS

An atomic class is named after its declaration. Previously, equivalent values could produce separate classes.

const styles = css.create({
  a: { padding: '.5rem', color: 'blue', margin: '0px 0px' },
  b: { padding: '0.5rem', color: 'rgb(0, 0, 255)', margin: 0 },
});

Plumeria now passes the values of standard CSS properties through Lightning CSS before naming their atomic classes. a and b share all three classes, and the stylesheet holds one rule for each: padding: .5rem, color: #00f, margin: 0.

Lightning CSS already minifies the finished stylesheet. Plumeria now also uses it to normalize each atomic value before computing the class hash. This also removes the need for Plumeria’s color-name mapping. Plumeria still applies its unit rules before normalization. Both compilers use the same release: the Rust compiler links lightningcss 1.0.0-alpha.72, and @plumeria/utils pins the npm release built from it, 1.33.0.

Custom properties are left as written. Their meaning depends on where they are used, so --gap: 0px stays 0px.

The arguments of a function key keep the runtime rule. With no explicit unit, a numeric argument gains px for properties such as width and stays unitless for properties such as line-height and --gap. String arguments pass through as written, whether folded at build time or read at runtime. s.fn('3') and s.fn(value) with value = '3' give the same result.

In css-compiler-bench, with 1000 components that each carry a distinct padding, this step added less than 0.1s to the build, within run-to-run noise.

Class names change for values that Lightning CSS writes differently, such as blue, which becomes #00f. Check any test that matches a class name or the raw CSS.

!important

!important is now a build error:

css.create({
  a: { color: 'red !important' },
  // [plumeria] !important is not supported: "color: red !important". Remove it.
});

Lightning CSS reads the value, so !important is caught even with a comment or an escape in it. The new no-use-important rule reports it in the editor and is on as an error in the recommended config.


Release notes

22.6.0 (Dec 6, 2026)

  • Feat: Normalize each declaration through Lightning CSS before naming its atomic class, so equal values share one class.
  • Feat: Reject !important at build time.
  • Feat: Add the no-use-important rule to the ESLint plugin and enable it as an error in the recommended config.
  • Update: Pin lightningcss to 1.33.0 in @plumeria/utils to match the compiler.
  • Update: Bump zss-engine to 3.6.0.