#What would be the best way to style components in NextJs 13?

5 messages · Page 1 of 1 (latest)

mighty oasis
#

It seems that CSS-in-JS is clearly on its way out with server-side components. I'm using Stitches and it is not supported in NextJs 13 so I'm wondering what you all use? Do you use Sass, Tailwind or CSS Modules ?

hollow fulcrum
#

I find CSS Modules to be very convenient. It just feels right, and anyone with basic CSS knowledge can work with them easily.

hexed patrol
#

I'm using tailwind just because it's so fast to write, also "themeing" comes kinda out of the box.

mighty oasis
#

It's hard to choose between CSS modules and Tailwind. I do like to write proper css instead of tailwind as the mental model is so different. It took me so long to style an input with Tailwind as I have to find the reference first in their docs. But I guess it gets better as you learn it.

calm mirage
#

i might be on the short end of the stick. I actually came to really like styled-components, but i'm currently getting an issue where the styles don't load until after the page is rendered. I wonder if there's a workaround for this, or if i will just have to bite the bullet and use something like css modules instead.