Why You Don't Need Vue Scoped CSS !

  Рет қаралды 19,342

Program With Erik

Program With Erik

Күн бұрын

In Vue.js there are a lot of ways to work with CSS. In this video we take a look at Vue.js Scoped CSS, CSS Modules, Deep selectors, global selectors and dynamic CSS! #vuejs
👉Check out my last video on advanced Vue Components
• Vue.js Advanced Compon...
👉 Sign up and get free Vue cheat sheets and updates!
www.vuecourse.tech/
Need some mentoring, help with a project, get a career in tech, level up your skills? Check it out
👉mentorcruise.com/mentor/erikh...
Need to Learn Vue or Nuxt? Check out my courses below!
bit.ly/2OETt0M - Full 6 Module course on vue!
bit.ly/2LalQka - Learn Nuxt.js Course!
bit.ly/3aiYe8s - Quick Starter On Vue 3
🗂️ 🗂️ 🗂️
0:00 Introduction
0:32 App Setup
02:53 Style Scoped
04:45 Global Selector
06:55 Deep Selector
08:45 CSS Modules
10:53 Dynamic CSS
Links

Пікірлер: 41
@psybitcoin
@psybitcoin 2 жыл бұрын
Can you do a video on Vue Clean Architecture? Thanks Erik!
@ProgramWithErik
@ProgramWithErik 2 жыл бұрын
Sure! I’ll add it to my list
@cokis
@cokis 2 жыл бұрын
Up
@marcosmoralesrodrigo9963
@marcosmoralesrodrigo9963 2 жыл бұрын
This video definitely touched some tricks I didn't know and I'm glad I watched it to the end. Thank you Erik!
@everythingisfine9988
@everythingisfine9988 2 жыл бұрын
I used css modules with react. One of many positives of vue is scoped css. Little less work vs using css modules. And every little bit counts.
@brandonleichty
@brandonleichty 2 жыл бұрын
Thanks for continually pumping out great videos!
@ProgramWithErik
@ProgramWithErik 2 жыл бұрын
You are welcome !
@TheRvh70
@TheRvh70 2 жыл бұрын
Hey Erik, first of all congrats on 100K. I kinda wish there was a video on you channel on bringing a Vue app to production (let's say S3 + cloudfront, since I know you're over at AWS). So the whole deployment side of things. I've been working on smoothing out our deploy process in my job and I've got a pretty good setup now. Happy to share some of my deployment architecture if you need ideas 😉.
@emmanuelehis1194
@emmanuelehis1194 2 жыл бұрын
This is mind blowing. Cooooool! Thanks for the tech talk!!
@PabloMartinezfr
@PabloMartinezfr 2 жыл бұрын
Amazing Tutorial
@rey6253
@rey6253 2 жыл бұрын
A lot of info i did not even know they existed in the first place, thanks a lot 😊
@baka_baca
@baka_baca 2 жыл бұрын
Good to see some of the alternatives to getting the styles you want in Vue. ::v-deep and scoped are nice and all, but working in a larger application I've also had them cause me plenty of headaches while trying to debug why styles aren't working like I thought they should be.
@akad1981
@akad1981 2 жыл бұрын
Awesome! Thanks!
@glowiever
@glowiever 2 жыл бұрын
nice ide setup. wish you'd make a video on it.
@m-fusion
@m-fusion 2 жыл бұрын
Hi. What’s the name a plug-in for highlights active tab ?
@CrazyCodingChannel
@CrazyCodingChannel 2 жыл бұрын
Interesting material, thx!
@aminealoulou
@aminealoulou 2 жыл бұрын
Thank you for this video. CSS custom properties could be a powerful way to make components styles customizable by consumers.
@koknineexclusive370
@koknineexclusive370 2 жыл бұрын
Congratulation 100K Subscribes :D
@aleksas_codebook
@aleksas_codebook 2 жыл бұрын
Unrelated to the topic of the video, what's the name of that VS theme ? It looks amazing. :)
@virtuoz-ru
@virtuoz-ru 2 жыл бұрын
Спасибо Ерик
@VincentDECAUX
@VincentDECAUX 2 жыл бұрын
I am so happy we decided to migrate on classical scss files. But I am so surprised young developers have so many difficulties to handle good CSS. Is it so bad to not use these style scoped / module ... ? Syntax is terrific and I still think a JS framework is a ... JS framework
@samuelnmeje
@samuelnmeje 2 жыл бұрын
This could easily get confusing. But it cool to know there are other ways.
@ProgramWithErik
@ProgramWithErik 2 жыл бұрын
Yes!
@aslamh
@aslamh 2 жыл бұрын
I’ve been working with with css module for a year. The only reason i use css module is that compiled classes look cool 😂. Other than that css module suvk. At least for me. Now use i tailwind and never look other. Tailwind is so good if not hard to read tailwind i think the best.
@stefanosgiannakis7151
@stefanosgiannakis7151 2 жыл бұрын
Gold
@purpleAiPEy
@purpleAiPEy 2 жыл бұрын
… you can v-bind css? Whoopsies guess I missed that lesson.. thanks!
@possumkeys
@possumkeys 2 жыл бұрын
You can vbindalmost any attribute.
@purpleAiPEy
@purpleAiPEy 2 жыл бұрын
@@possumkeys good to know! i just always looked at style tags as forbidden entities untouchable, but i guess the files are VUE ..
@mattbagot1236
@mattbagot1236 2 жыл бұрын
"a very poorly named component..." hahaha! hilarious. btw, what theme are you using??
@ProgramWithErik
@ProgramWithErik 2 жыл бұрын
Yup Synthwave ! I believe it works in Mac too…
@ayitinya
@ayitinya 2 жыл бұрын
Does he always put "not as good as Kevin Powell" or this is the first time
@ProgramWithErik
@ProgramWithErik 2 жыл бұрын
Haha that’s the Easter egg, first time! Haha
@nested9301
@nested9301 10 ай бұрын
there is alot of things to learn in vue unlike react it's limited
@wolfisraging
@wolfisraging 2 жыл бұрын
1st time 1st
@cesswhite
@cesswhite 2 жыл бұрын
you dont need CSS if you have Tailwindcss, :P jk, thank you Erik!
@psybitcoin
@psybitcoin 2 жыл бұрын
@Randy Ainsworth Vuetify is nowhere near Tailwind
@SvingitGolf
@SvingitGolf 2 жыл бұрын
Quasar is the way... 😉🙂
@ProgramWithErik
@ProgramWithErik 2 жыл бұрын
Ha!
@gab_shirohige
@gab_shirohige 2 жыл бұрын
Poor practices here, ladies and gentlemen..
@rajikkali2381
@rajikkali2381 2 жыл бұрын
Ah yes, Hitler's famous book: 'My Comp"
@squiggleturtle
@squiggleturtle 6 ай бұрын
Are CSS modules globally available?
Every New Vue Developer Has Made These Mistakes...
18:04
Program With Erik
Рет қаралды 44 М.
Keeping up with CSS: The features released in 2023
31:13
Kevin Powell
Рет қаралды 91 М.
Кәріс өшін алды...| Synyptas 3 | 10 серия
24:51
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 51 МЛН
Dynamic #gadgets for math genius! #maths
00:29
FLIP FLOP Hacks
Рет қаралды 19 МЛН
ONE MORE SUBSCRIBER FOR 6 MILLION!
00:38
Horror Skunx
Рет қаралды 14 МЛН
Vue.js Advanced Data Provider Component Patterns Explained
14:07
Program With Erik
Рет қаралды 22 М.
Why I Love CSS Modules in Vue.js
14:04
BenCodeZen
Рет қаралды 13 М.
Vue 3 Script Setup, The Future Of Vue? Tutorial And Setup
25:08
Program With Erik
Рет қаралды 59 М.
004. CSS Modules - убрать нельзя оставить
38:53
Yandex for Frontend
Рет қаралды 10 М.
CSS Modules: Why are they great?
12:03
Harry Wolff
Рет қаралды 38 М.
Learn Flexbox CSS in 8 minutes
8:16
Slaying The Dragon
Рет қаралды 1,4 МЛН
Conquering Forms in Vue - VueConf US 2023
33:32
Vue Mastery
Рет қаралды 4,4 М.
Кәріс өшін алды...| Synyptas 3 | 10 серия
24:51