stylexjs.com

stylexjs.com

@stylexjs.com

229 followers2 following75 posts

Pinned

Clerk is part of the club too!

stylexjs.com@stylexjs.com

The official domain is finally the official handle! To celebrate here’s a running list of known projects using StyleX: - web surfaces at Meta - FB/IG Quest apps via RSD - Figma - Snowflake - Hubspot - Linear - Polar - Mixcloud - Canva - Cursor - @cocore.dev

stylexjs.com reposted

Stylex’s biggest super power is that it fixes non deterministic css loading in bundlers If you’ve run a large app and had 2 styles get put in the page in a different order (breaking ui), you’ve experienced it too It’s been a problem at every job I’ve had, but with stylex you can actually fix it

stylexjs.com@stylexjs.com

Can confirm. For small sites, normal CSS is just fine. LLMs are even pretty good at CSS modules. StyleX is useful for building larger design systems with stronger guarantees and constraints. That’s useful for humans and LLMs.

Can confirm. For small sites, normal CSS is just fine. LLMs are even pretty good at CSS modules. StyleX is useful for building larger design systems with stronger guarantees and constraints. That’s useful for humans and LLMs.

fry69@fry69.dev

For small sites/snippets/web components/etc LLMs are perfectly capable to understand and grasp CSS, even if it resides in a different file, is a bit separated from Javascript. Related ->

stylexjs.com reposted

You might have missed this, but on X everyone is talking about StyleX lately 👀 Here's our latest headline to catch up

Seb ⚛️ ThisWeekInReact.com@sebastienlorber.com

This Week In React 295 ⚛️ - StyleX - browser() - Next.js - Compiler in Vite/Bun - Astryx - Formisch - React Aria - TanStack 📱 - C++ API - Margelo+Callstack - Observe - Reanimated - Teleport - Nitro - Screen Transition 🍿 Read thisweekinreact.com/newsletter/295 ✍️ @jwr.ski & I

stylexjs.com reposted

The official domain is finally the official handle! To celebrate here’s a running list of known projects using StyleX: - web surfaces at Meta - FB/IG Quest apps via RSD - Figma - Snowflake - Hubspot - Linear - Polar - Mixcloud - Canva - Cursor - @cocore.dev

An all new website is now live! stylexjs.com

Nmn@nmn.sh

Happy New Year! An all new StyleX website has just gone live. It's rewritten from the ground up, and is built on: - Waku - Fumadocs - StyleX (obviously) No UI is used from fumadocs, and all the components were re-written with StyleX.

stylexjs.com reposted

The new unplugin is phenomenal If you bounced from stylex cause the 3rd party Vite integrations were bad, now is the time to try again

stylexjs.com@stylexjs.com

All new unplugin package. Ever since we first open sourced StyleX, integrating it with various bundler setups has been one of the biggest challenges. So far, the PostCSS plugin has been the smoothest experience we’ve been able to offer so far, but we knew we could do better.

View full thread

Try the new version of StyleX with the new features and the new unplugin package with your Vite apps. (Including with RSCs) And tell us what you think!!

Developers that go all in on StyleX tend to stick with it!

Andrew Lisowski 💻@hipstersmoothie.com

Stylex made me a css in js convert. The benefits you get from it are pretty hard to top - componentized css - better composition patterns - encourages isolated styles (ie a component only styles itself) - size of css caps our (it generates tailwind style utils)

View full thread

Additionally, we’ve tweaked some of the default configuration options which affects what you’ll see in your dev tools during development, and improved file paths for finding the source of your styles. We’ve also fixed a bunch of bugs including a subtle bug with generating media query strings.

View full thread

stylex.when.* APIs We have shipped new APIs that finally gives you the ability to style conditionally based on the state of some *other* element. This is similar to Tailwind’s “group” and “peer” classes, but in all directions: - ancestor - descendent - siblingBefore - siblingAfter - anySibling

These APIs let you observe some other element that is “marked” with either - stylex.defaultMarker() - or a custom marker created with stylex.defineMarker() Again, this is similar to group or named groups in Tailwind.

View full thread

The new unplugin package supports a variety of well known bundlers and we have expanded the examples in our repo to specifically test various Vite-based setups. This new plugin should be easier to setup, faster and more reliable than the PostCSS plugin. Please tell us if you still face challenges.

Note: Next.js is not yet supported with the unplugin package as it uses a complex multi-process webpack setup and Turbopack hasn’t shipped a plugin API yet. We look forward to having a first class integration with Next once Turbopack ships their plugin API.

All new unplugin package. Ever since we first open sourced StyleX, integrating it with various bundler setups has been one of the biggest challenges. So far, the PostCSS plugin has been the smoothest experience we’ve been able to offer so far, but we knew we could do better.

View full thread
View full thread

📂 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!)

🖥️ 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.

View full thread

🛠️ 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.

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

🥳 1 year old!

Nmn@nmn.sh

@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