v4 -> v5
Pollen v5 introduced several breaking changes to fix unintuitive behavior and lay stronger foundations for the future
Breaking changes
The
pollen-css
library is now ESM-only, not CommonJSDropped support for < Node v16
CSS import moved to
/pollen.css
rather than default package exportProperties keys in
module
s are no longer converted fromcamelCase
tokebab-case
when generating CSS variablesDefault color palette has been replaced with a much more robust and extensive palette, adapted from Tailwind's
Deprecated modules
elevation
andeasing
removed, replaced by the new modules introduced in v4 (shadow
andease
respectfully)
Migration Guide
If you're using the default CSS from Pollen, update your import path from
pollen-css
topollen-css/pollen.css
Ensure you're using Node v16+
If you have your own config, update any
camelCase
property names to bekebeb-case
If you are using Pollen's default color palette, get the output from v4 (in JSON format for easier migration) and add it to custom config in v5, since the default palette has changed significantly
If you are still using the deprecated default modules
--elevation
or--easing
update them to--shadow
and--ease
respevitvely
Last updated