🎉 It’s release day!
v0.6.1 is out.
This is release is all about types…for CSS variables.
3
11
79
23,826
CSS variables can now have types that are enforced by the browser.
StyleX now exports functions such as stylex.types.color() that can be used when defining variables.
2
1
13
1,096
Typed variables can be animated. So you can now animate the angle or color within gradients.
@KevinJPowell has a great tutorial!
piped.video/watch?v=-VOUK-xF…
1
1
14
2,212
Our release notes include a small homage to the rotating gradient background and glow:
Apr 23, 2024 · 9:31 PM UTC
1
1
10
1,968
But that’s not all! You can now use stylex.firstThatWorks for defining fallback values for variables that are not defined. No new API!
1
5
520
Huge thanks to NedJulius and QingqiShi for contributing the ESLint rule to “sort-keys” to help enforce consistent ordering of styles.
And a prettier plugin too!
github.com/nedjulius/prettie…
1
5
480
StyleX comes to Bun!
NedJulius has also published an experimental plugin for Bun
npmjs.com/package/bun-plugin…
1
8
903
… and there’s a bunch of bug-fixes.
Read about all the new features and bug fixes.
stylexjs.com/blog/v0.6.1/
7
1,657



