jacquesramphal / jacquesramphal.github.io

Jacques' personal site and playground
http://ramphal.design
1 stars 0 forks source link

CSS Modules? vs. Vue scoped css #29

Open jacquesramphal opened 3 years ago

jacquesramphal commented 3 years ago

What are CSS Modules and why do i need them?

https://css-tricks.com/css-modules-part-1-need/

Slack Convo

https://myplanet.slack.com/archives/CHK7U2BTJ/p1616773042049200 Yashar: any recommended best practices for using CSS Modules? Adrian D: I used CSS modules for a side project. The only 'caveat' I found is making the decision of using camelCased CSS class names to be able to use dot notation or sticking with kebab-case but having to do access with bracket notation

camelcased_class_names kebab-cased_class_names
jacquesramphal commented 3 years ago

CSS Modules in Vue

https://redonion.se/en/css-modules-in-vue-js-2/

jacquesramphal commented 1 year ago

Currently using scope css in my vue components? What is the benefit of using modules? I dont really like the way things render with modules. Random css naming, hard to trace? :S

good to know what they are and how they work. Used in orium.com

jacquesramphal commented 1 year ago

Why You Don't Need Vue Scoped CSS ! https://www.youtube.com/watch?v=9WEV51IGSek

Why I Love CSS Modules in Vue.js https://www.youtube.com/watch?v=ZxPTBMcaoqo

Vue.js - Scoped Styles vs CSS Modules https://www.netguru.com/blog/vue.js-scoped-styles-vs-css-modules