Skip to content

Conversation

@siriwatknp
Copy link
Member

closes #43183

@mui-bot
Copy link

mui-bot commented Aug 9, 2024

Netlify deploy preview

https://deploy-preview-43237--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against cd5410b

if (rule === 'media') {
return {
':root': css,
'@media (prefers-color-scheme: dark) { :root': excludedVariables,
Copy link
Member Author

@siriwatknp siriwatknp Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works with @emotion/react, but not with @emotion/serialize that Pigment CSS is using. May be due to Stylis processor.

Copy link
Contributor

@brijeshb42 brijeshb42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: pigment-css Specific to Pigment CSS. v6.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to build Pigment CSS when both colorSchemes are provided

4 participants