DEV Community

Discussion on: What CSS methodology should we use at dev.to?

Collapse
 
jimmed profile image
Jim O'Brien

I've had great results with a similar setup, (also a React app), although with two differences:

  • Rather than @include in a core stylesheet, I tend to import the stylesheet directly in the component's JS source, using webpack loaders to handle this. This allows for slightly better build performance when developing, especially when using Storybook or similar, as well as not having a huge list of stylesheet imports in one place.
  • I also like to use CSS modules in some projects, as this makes naming collisions impossible, allowing scoping without any cognitive overhead.
Collapse
 
decahub profile image
Dan

One great thing baked into Angular: CSS scopes! I am a fan of Atomic Design :)