tastejs / nuxt-movies

Nuxt.js Movies - a TMDB client optimized for Core Web Vitals
https://nuxt-movies.vercel.app/
75 stars 23 forks source link

Miscellaneous #28

Open anton-karlovskiy opened 3 years ago

anton-karlovskiy commented 3 years ago

@pi0 @danielroe

Could you please teach me one thing in Vue.js development? Our project has SASS preprocessor set up and re-uses the same classes across different components. composition According to a best practice in React componentizing (https://create-react-app.dev/docs/adding-a-sass-stylesheet/), the approach mentioned above is not recommended and I also found that such an approach might make it difficult to maintain the project. Is it also true in Vue.js world?

danielroe commented 3 years ago

@anton-karlovskiy I would personally only put reset CSS in a global CSS context. I would put other classes in the components that use them - or use CSS modules to share styles across components in exceptional circumstances.

In most cases the latter isn't required - having good design tokens that can be referenced through variables throughout the codebase brings the required consistency.

anton-karlovskiy commented 3 years ago

@danielroe Thank you for teaching.

In most cases the latter isn't required - having good design tokens that can be referenced through variables throughout the codebase brings the required consistency.

It sounds like it's also true in Vue.js world.