DEV Community

Discussion on: Styling in Gatsby

emma profile image
Emma Goto 🍙

Yeah I'm a bit confused about how to do CSS in JS for Preact too! Although I think Preact lets you use React libraries via some sort of compatibility tooling/setting, right?

Thread Thread
cguttweb profile image
Chloe Author

I've never used preact (not sure what it is...) so not worried about that I considered something like emotion reading docs seems like it would work but overkill for a bit of styling... Changing colours really isn't that complicated.. At least it shouldn't be.

Thread Thread
emma profile image
Emma Goto 🍙

Yeah I think doing inline styles is totally fine in this scenario but if you're planning on doing a lot of styling across your blog something like styled-components or emotion makes life a little bit easier (for me at least!)

Thread Thread
cguttweb profile image
Chloe Author

Yep makes sense I may look into that at a later date so good to know. Thanks.