[material-ui] Questions regarding Pigment CSS usage
@brijeshb42 is already working on this.
Since May 29, 2024.
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Related page
https://mui.com/blog/introducing-pigment-css
Kind of issue
Missing information
Issue description
Sorry if this is not the best place to discuss this, I was not sure where to, if you have a better place please point me to that! :)
My team has a very specific way of using material-ui, we expose our components for usage in TypeScript and Dart. Pigment seems to depend on source transformations which would be fine for our TypeScript consumers but would possibly be a hard stopper for our Dart consumers, unless we are able to provide similar functionality with a custom dart build step.
So questions:
- Will Pigment be the only way to use mui-material going forward? or will it be an optional dependency? Meaning could we continue to use
emotionas our sx & styled engine even after Pigment? - Are there plans to drop support for Emotion at some point? If not, will there be disadvantages to staying on Emotion?
- Will sx continue to work on material-ui components under Emotion, even without Pigment's source transformations?
- Is there possibly alternate ways to use Pigment that doesn't require source transformations?
Context
No response
Search keywords: pigment, css-in-js, emotion, css
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.