Open
Description
Deeply merging: theme objects are merged and if a key is present in more than one object, the values for each objects are concatenated.
While this does offer the most flexibility, I think it can be improved to override styles set by parent themes/defaults.
<ThemeProvider theme={global}>
<ThemeProvider theme={specialCase}>
<App />
</ThemeProvider>
</ThemeProvider>
Take this example. I think it would be cool to see specific nested styles defined in global overwritten if also defined by specialCase.
@javivelasco If I am understanding correctly, this might be pending work on postcss-apply?
Post Edit:
Note current work arounds are to use selectors that are more specific and/or override using !important
.
Metadata
Metadata
Assignees
Labels
No labels