mui / mui/material-ui

[material-ui] Questions regarding Pigment CSS usage

Open
#42,437 4 comments 0 reactions 1 assignee View on GitHub

@brijeshb42 is already working on this.

Since May 29, 2024.

package: pigment-css support: question
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:

  1. 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 emotion as our sx & styled engine even after Pigment?
  2. Are there plans to drop support for Emotion at some point? If not, will there be disadvantages to staying on Emotion?
  3. Will sx continue to work on material-ui components under Emotion, even without Pigment's source transformations?
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.