Skip to content
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

Switch from Emotion to Vanilla-Extract #41

Merged
merged 6 commits into from Jul 16, 2022
Merged

Switch from Emotion to Vanilla-Extract #41

merged 6 commits into from Jul 16, 2022

Conversation

shumbo
Copy link
Owner

@shumbo shumbo commented Mar 27, 2022

Switch from Emotion to Vanilla-Extract for styling.

While I personally like Emotion's API, it must be rendered using its provider and there's not much room for controlling how styles get injected. This is problematic in this project, as the way Emotion injects styles caused troubles (e.g. #33 ).

With vanilla-extract, we can choose how to apply the generated CSS. It seems that adding a style that @import the CSS file is not detected by Noir and therefore resolves #33.

@cloudflare-pages
Copy link

cloudflare-pages bot commented Mar 27, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: a0f8dd5
Status: ✅  Deploy successful!
Preview URL: https://49671b1d.svadilfari-checker.pages.dev

View logs

@shumbo shumbo merged commit 9caabfa into main Jul 16, 2022
@shumbo shumbo deleted the vanilla-extract branch August 10, 2022 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy URL action breaks Noir dark mode
1 participant