Plumeria 0.14.6
2025/07/22
Changes
- $ accessor has been deprecated (deleted)
- Compilation target changed from
css.create
tocss.props()
- The documentation has been significantly updated
Previously, calls to css.create
were compiled, but now they are not compiled and the css.props
argument is compiled instead. With this change, only the styles you put into css.props()
will be compiled, keeping the output to a minimum.
CSS specificity
css.props() is statically compiled by the AOT compiler with a list of arguments.
Any property from the left style that conflict with styles property on the right are filtered and invalidated.
Specificity has become stricter and simpler. When there is a property conflict, the property of the style on the right always takes precedence. This is the same behavior as StyleX.
Other Improvement
Type
The following APIs have been typed:
css
defineConsts
Import
rx
, px
, ps
, media
, container
, color
, these objects and functions now require imports rather than chaining them from css classes.
In the future the color object and px may be removed as needed.
Others
We have introduced API that may be deprecated in the future.
Because Atomic is focused on optimization, we plan to decide what to do with the global()
API in the future.
We can't make any decisions without your actual opinions, so please share your thoughts through the discussion.