mui / pigment-css

Pigment CSS is a zero-runtime CSS-in-JS library that extracts the colocated styles to their own CSS files at build time.
MIT License
396 stars 19 forks source link

Decouple `sx` prop from system and add docs #57

Closed siriwatknp closed 2 weeks ago

siriwatknp commented 1 month ago

I decided to change the intention of this PR so that we can ship incrementally.

From Pigment CSS users, sx prop gives a convenient way to style elements without writing any import. The shorthand should not be enabled by default (it's too magical). If they want shorthand, they need to add some theme config (a new feature for Pigment CSS).

So this PR is about decoupling the shorthand from System so that sx prop does not come with shorthand by default.

Then consider shorthand as another feature that can be worked separately.