Type-safe styled components for ReScript, Melange and native with type-safe CSS
CHANGES:
drop-shadow
property when we stringify Color
by @denis-ok in https://github.com/davesnx/styled-ppx/pull/450
justify-self
support by @rusty-key in https://github.com/davesnx/styled-ppx/pull/453
Full Changelog: https://github.com/davesnx/styled-ppx/compare/0.54.0...v0.54.1
Full Changelog: https://github.com/davesnx/styled-ppx/compare/v0.53.1...0.54
This new release of styled-ppx brings one exciting breaking change: deprecation of bs-css
and bs-css-emotion
in favor of styled-ppx/css
and styled-ppx/emotion
The reason for the deprecation are very simple:
Future releases of styled-ppx will rely on features only shipped on styled-ppx/css and it will break your compilation.
npm install @davesnx/styled-ppx
{
"bs-dependencies": [
"@rescript/react",
- "bs-css",
- "bs-css-emotion",
+ "@davesnx/styled-ppx/css",
+ "@davesnx/styled-ppx/emotion"
]
}
Full Changelog: https://github.com/davesnx/styled-ppx/compare/v0.37.7...0.40.0
'
) https://github.com/davesnx/styled-ppx/issues/272
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
$()
CssJs.label
for styled calls.css
to cx
, and keep cx