v2.0.0
What's Changed
- Reverse
prefers-reduced-motion
behavior. - Add CSS custom property mode through css-custom-properties setting.
- Fix
selection
mixin - Use
margin-block-start
atlayout-stack
. - Rework utility handling.
- Fix
::-webkit-slider-thumb
bug. - Reorganize generators.
Breaking changes
Because it is a major release, there are some breaking changes. In general, the changes are more of an optimization and reorganization.
- The most significant change is the reorganization of variables. Now, almost all are in a Sass map and accessible with the config() function. You must use the
config()
function if you plan to use CSS custom properties; otherwise, themap.get
also works. - We modified the generators. Now we have one main generator,
generate-styles
, and we can control its values through the $generators map.
Others
- Clean up the complete documentation.
- Update all of the Spruce UI components to v2.
- Comment code.
- Start with Sass tests.
- Remove JS code from the package.
- Update coding guides: use quotes when asking for a string value.
- Remove namespaced imports to simplify the use of members (variables, functions, mixins).