-
Notifications
You must be signed in to change notification settings - Fork 10
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
Evaluate stiches.js to replace emotion and theme-ui #2153
Comments
Some Questions from me for understanding the issue Description
Generel From what I understand the obvious advantages are:
In my opinion (as far as I get it), I think we could implement this after we made next.js work 🙂 I haven't seen much conflicts. |
I meant how our pseudos work (e.g.
Not sure what you mean.
IDK depends how we implement it, I guess. And to the other comment. Yeah, if we switch, we should take the opportunity and make stuff more consistent. |
Related: stitchesjs/stitches#1109 |
Switch to a non-CSS-in-JS Solution?Since there might not be good support in the CSS-in-JS libs we might to consider other alternatives Other components libs are currently moving away from CSS-in-JS library. One of the prominent ones is NextUI. Even the maintainer of Emotion says that
While you can make them compatible, it might no optimal or worthwhile in the future. On the other hand we currently don't really have any Next apps in productions, except the Marigold docs. This might change in the future though. Issue from NextUI regarding their reasons to switch: heroui-inc/heroui#1035SuggestionInvestigate Tailwind? The spiritual successor of Bootstrap has a enormous community already and might be an option that also solves a lot of our challenges. In order to have the same feature and high compatibility with our current styling approach (variants and size), there are two options:
|
Reference how other Design Systems use Stitches: https://github.com/radix-ui/design-system/tree/master/components |
Questions tailwind:
Note:
Next Steps:
|
can we use tailwind presets for this? |
@sebald I mean the function
|
@sarahgm ah, I think we can not use that any longer. Extending a theme has to be done via tailwind/postcss I guess |
@sebald really? but the tests worked correctly I see no problem 🤔 |
Okay, then I am clearly wrong and I have to see the implementation 😄 |
Library to evaluate: https://stitches.dev/
Reasons:
border
)Cons:
__baseCSS
), we might still make use ofuseComponentStylse
API:
We might use it like this:
Reuse our API?
Is this good? We maybe need to make a "factory"?
The text was updated successfully, but these errors were encountered: