mui-design-kits
mui-design-kits copied to clipboard
[question] Sync support for MUI@6
The problem in depth
Using the Sync Plugin (beta) I am able to generate a colorSchemes
object. However, that object doesn't quite match the shape for the palette in V6. For instance #382 is an error that I also came across.
Reading the source on say Button
I'm trying to infer the hover background color. As far as I can tell it's theme.palette[color].dark
which is not the way I want to go, but rather use the states on the color palette for the color which in the figma theme can be a different value from the primary.
For instance
colorSchemes.light.palette.primary.main: #1b1b6c
colorSchemes.light.palette.primary.dark: #131335
I want to make the hover rgba(27, 27, 108, 0.08)
, or the same hex as main with an alpha.
Also my designer has created several component changes that are exported as _components
which is also not on the theme options type.
I did see there was a roadmap with the sync plugin to actually generate a whole theme.js/ts file. If that's still the goal I would love to tag along.
I feel like the way I'm reading the source on a component I will actually end up having to do a very large component override section in the theme to work around this. I figure I would ask first before I dig too deep in sourse.
Your environment
MUI for FIgma Material UI-v5.16.0 I am installed 5.17 in the morning, but I don't see any changes here that this minor is going to effect this.
Search keywords: Version 6, _states