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
Beta 0.1.0-canary.0 #338
Beta 0.1.0-canary.0 #338
Conversation
d37b093
to
f5a5628
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 221fbab:
|
Could you share what you have considered with the community? I prefer Atomic CSS, but I respect stitches' long-standing research and decision and I'm just curious about it. Edit: Also I maintain gatsby-theme-stitches. If the behavior changes, I need to know because I have to reconsider the appropriate way to integrate it with Gatsby. |
f5a5628
to
471f88f
Compare
Hi, @cometkim! Thanks for following closely. The changes to the API are relatively minor, and there will be a migration post, but this PR is a work in progress and not yet ready for review. There are still issues to work out before its time for show-and-tell. Still, I’m excited that you noticed! So, let me say a few things. First, the pitch to move from producing atomic CSS to object-oriented CSS was not made lightly. Next, because atomic classes begin life as standard css rules, this version can still be used to create atomic classes — when utility classes are the right fit for your app, site, or team. In the meantime, this draft PR gives me a chance to work out any PR-specific issues, and maybe catch some eager eyes. 👀 |
471f88f
to
3d66eea
Compare
3d66eea
to
976c158
Compare
We'll prob write a blog post expanding on why we switched from atomic CSS to object-oriented CSS. In a nutshell, the main problems with atomic CSS were:
In the beta version, we have:
Stitches was never about it being atomic. It was about the DX, the API, and performance. All of those are now better than ever. It went from 8kb to less than 3kb. The performance is incredible - we'll have some benchmarks on this. |
* fix util token type * fix util types
The plan is:
|
ACTUALLY, DO MERGE
This PR updates Stitches to produce object-oriented CSS. This also enables all of the features from the react version into the core version. This also updates several features to enhance the powers of components, themes, keyframes, and global css. This also fully enables CSS at-rules, adding support for
@supports
conditionals within components, and@import
,@font-face
, and@register
rules in global CSS.More details to come...
ACTUALLY, DO MERGE