Skip to content

v0.25 Make interpolation type-safe

Compare
Choose a tag to compare
@davesnx davesnx released this 27 Aug 09:11
· 890 commits to main since this release

Features

This release includes a big change in how the parser treats interpolation, making it possible to have type holes in the CSS values, enabling type-safe variables at runtime with bs-css types.

Most single-value properties are supported and a few shorthands as well. We will enable as more as we found them useful. This will be documented under: https://styled-ppx.vercel.app/usage/interpolation

  • Add interpolation and enforce parser rules for shadow #226
  • Type-safe interpolation, for single-value properties and shorthand properties (margin, padding) #219

Fixes

  • Add a unit as last argument #228 (Fixes #142)
  • Shadowing makeProps by dynamic user props #227 (Fixes #143)
  • Remove restriction for html tags #224 (Fixes #222)
  • Add alias for type_ #225 (Fixes #221)