-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Since you've moved away from glamor, I was curious if you would be willing to support a plugin system similar to theirs?
I do something similar to your styled-system library with glamor's plugin system right now:
const designSystemPlugins = [
flex,
position,
size,
space,
border,
typography,
color,
elevation,
misc,
fixVerticalRhythm,
]
designSystemPlugins.forEach(func => {
glamor.plugins.add(({ selector, style }) => ({
selector,
style: func(style),
}))
})It would be awesome if we could do something like this with CXS, where any value I pass like cxs({ elevation: 2 }) would know how to get resolved. This would be similar to something like PostCSS where you can parse styles in one spot and not have to import them every time. I think this could also help with vendor prefixing and being able to handle this in one spot as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels