's Avatar

@stylexjs.bsky.social

193 Followers  |  2 Following  |  21 Posts  |  Joined: 12.10.2024  |  1.9132

Latest posts by stylexjs.bsky.social on Bluesky

The PostCSS plugin does very little here. It’s just an integration point or a glorified string replacement engine.

We will continue to lean on LightningCSS for any future style transformation needs.

03.01.2025 21:30 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
StyleX The styling system that powers Meta.

In a well deserved FINALLY, a functional playground for StyleX is now live!

Try it out now:
stylexjs.com/playground

As a bonus, the link takes you to a basic Vite example app

03.01.2025 21:28 β€” πŸ‘ 7    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Release 0.10.0 | StyleX Happy new year! We are excited to announce the release of StyleX v0.10.0, which includes several new features and improvements.

… and other small bug fixes and improvements.

There are other, less splashy but important improvements.

Read all about the release in our release notes:

stylexjs.com/blog/v0.10.0/

03.01.2025 05:51 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Variants | StyleX The "variants" pattern allows you to conditionally apply one of several predefined styles based on a value.

🍱 Recipes section in documentation

We added a new β€œrecipes” section to our documentation to provide example patterns for using StyleX.

Please keep your questions coming and we will add to this section as time goes on.

stylexjs.com/docs/learn/r...

03.01.2025 05:51 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

πŸ–₯️ CLI improvements

The CLI is faster by leveraging a filesystem cache, supports usage of other syntax transforms and works correctly on Windows.

Further improvements are coming soon and the PostCSS plugin will start getting these benefits too.

03.01.2025 05:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

πŸ“‚ rootDir no longer needed for theming

StyleX now resolves the nearest package.json file automatically and doesn’t need a manually configured rootDir for the theming APIs

(Soon: automatic alias configuration!)

03.01.2025 05:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

🧹 ESlint improvements

Among other improvements, the StyleX ESlint plugin now includes a β€œno-unused” rule for detecting unused styles.

03.01.2025 05:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

πŸ› οΈ Better Debugging

StyleX has a new `debug` option to make classnames and variables more readable in development.

Compiler error messages are also hugely improved and should pinpoint the exact problem in a lot more scenarios.

03.01.2025 05:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

⚑️PostCSS plugin!

This release launches a PostCSS plugin that makes integrating StyleX into a Next or Vite app dramatically easier and much more reliable.

03.01.2025 05:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Preview
Release 0.10.0 | StyleX Happy new year! We are excited to announce the release of StyleX v0.10.0, which includes several new features and improvements.

Happy new year!

StyleX v0.10.0 is now out. This is a consequential release as it comes with out PostCSS plugin, making integrating StyleX into your Next or Vite app dramatically easier.

Read all about it or follow along for the highlights.

stylexjs.com/blog/v0.10.0/

03.01.2025 05:51 β€” πŸ‘ 8    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1

πŸ₯³ 1 year old!

06.12.2024 04:42 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@stylexjs.bsky.social was open sourced exactly one year ago, and today, one year later, here is the other project that is at least a couple of years overdue: React 19

06.12.2024 04:41 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 0    πŸ“Œ 1
Preview
Vite + React + StyleX - StackBlitz Next generation frontend tooling. It's fast!

Here’s the newest, and simplest way to setup StyleX in a Vite project:

stackblitz.com/edit/vitejs-...

28.11.2024 03:18 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Just merged a PR that adds postcss-plugin for StyleX.

Using StyleX with Next just got a whole lot easier!

26.11.2024 21:05 β€” πŸ‘ 8    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1
Post image

The best way to write Tailwind will be….

… @stylexjs.bsky.social

18.11.2024 11:58 β€” πŸ‘ 6    πŸ” 1    πŸ’¬ 0    πŸ“Œ 1
Preview
Release 0.9.3 | StyleX StyleX v0.9.3 is now available with some big improvements and bug-fixes.

Read the full release notes here:

stylexjs.com/blog/v0.9.3/

01.11.2024 21:22 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Pseudo Elements and Pseudo Classes all mixed up, now work correctly.

And our ESLint plugins and Typedefs know about more of them.

01.11.2024 21:21 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Dynamic Styles are better than ever

Dynamic styles now handle "null" values more efficiently and correctly.

01.11.2024 21:21 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

"rootDir" is now optional and ESM imports work more reliably.

01.11.2024 21:21 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1

Theming APIs

StyleX themes are now exclusive and you won't accidentally end up with values from two different themes for the same VarGroup.

Also, reset themes are now as easy as:
stylex.createTheme(varGroup, {})

01.11.2024 21:20 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

StyleX v0.9.3 is out!

Changes include improvements to:
🎨 Theming APIs
πŸͺ„ Dynamic Styles

And other fixes!

01.11.2024 21:20 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 3    πŸ“Œ 1

A beta release is out. 0.9.0-beta.1

It changes how the @stylexjs/dev-server package (that should only be used for prototyping) works.

There are other changes too, but more on that in a couple of days.

21.10.2024 11:43 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1

Hello world!

11.10.2024 21:59 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@stylexjs is following 2 prominent accounts