-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add styled-component as styling-property (like 'states') #333
Comments
Example: It feels absolutely right to fall back to @gregberge I'm happy to give this a try and create a PR if you like this idea. |
I see the idea, not sure it is easy to implement. |
@gregberge can you please link the line in the code, where those default |
@misantronic this is where the states and screens come from. |
@misantronic is there anything other than #334 that needs to be done, or can this be closed? |
It should work. |
🚀 Feature Proposal
Ability to add a styled-component as a styling-property just like we do it in the
states
of a theme.Motivation
Sometimes it isn't possible to map a css-context directly to xstyled-system.
A neat addition to the existing
states
of xstyled would be to add a styled-component (which stringifies to a css-class) to the tree, so it would be possible to specifically style this component.Example
xstyled workaround:
how it could be:
Pitch
I think this would be a really great addition to the existing system. I saw issues where this exact problem was solved by various workarounds that don't really fit the system.
The text was updated successfully, but these errors were encountered: