How to migrate an existing sass codebase to emotion ? #2363
Unanswered
raphaelbadia
asked this question in
Q&A
Replies: 2 comments
-
Refactoring from the atoms sounds good to me - create reusable components this way. I don't think you should have many problems with specificity because Emotion will generate low-specificity classes, so whatever you have with stronger specificity should win over this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I couple of ideas here:
this will help break apart simple components before trying to convert bigger features...
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm working on a quite large website built with sass and following (at least trying) atomic design rules. It's becoming very hard to maintain the existing css and we are willing to migrate to css in js.
The problem is that I don't know from what end we should start to refactor.
I fear that if we start from atoms (small components such as Buttons, Links, Text...), the generated classNames will break the specificity all over the website.
Maybe we should start from pages and go down, but it doesn't feel right...
If someone successfully managed to migrate its website from sass to styled-components slowly, please advise !
Thanks
Beta Was this translation helpful? Give feedback.
All reactions