Sass @import is being replaced with @use and @forward

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ค. 2024
  • 🔥 My course: Responsive Design for Beginners! coder-coder.com/responsive/
    💻 Become a full-stack web dev with Zero to Mastery: academy.zerotomastery.io/a/af...
    This video explains the new @use and @forward rules in Sass that are replacing the old @import rule. I'll show you how the old and new rules compare, and how to set up your Sass/SCSS files in your workflow.
    If you want to see me build a real-world project using the new Sass rules, check out my current series: • Building a Light/Dark ...
    0:00 - Intro
    0:43 - ✨ Thank you to GitHub sponsors clint25104, ChideraObi, and Deta ✨
    1:09 - Walkthrough of the demo project
    1:58 - Looking at files with "old" way using @import
    4:47 - Issues with @import and why @use and @forward were introduced
    8:32 - Sass modules explained
    10:11 - Updating the old Sass files with the new @use and @forward rules
    16:03 - How the new rules fix the issues with @import
    19:14 - Updating Gulp config for the new Sass syntax
    Resources mentioned:
    Sass Modules by Miriam Suzanne -- www.oddbird.net/2019/10/02/sa...
    Libsass is Deprecated -- sass-lang.com/blog/libsass-is...
    Support for @import will be dropped latest Oct 2022 -- github.com/sass/sass/blob/mai...
    ____________________________
    SUPPORT THE CHANNEL
    ⭐ Join channel members and get perks: / @thecodercoder
    👏🏽 Hit the THANKS button in any video!
    🎨 Get my VS Code theme: marketplace.visualstudio.com/...
    WANT TO LEARN WEB DEV?
    Check out my courses:
    🌟 Responsive Design for Beginners: coder-coder.com/responsive/
    🌟 Gulp for Beginners: coder-coder.com/gulp-course/
    RECOMMENDATIONS
    ⌨ My keyboard-- get 10% off with code THECODERCODER -- vissles.com/?ref=mu96kxst5w
    💻 Other gear -- www.amazon.com/shop/thecoderc...
    📚 My Favorite Books -- coder-coder.com/best-web-deve...
    📺 My Favorite Courses -- coder-coder.com/best-web-deve...
    🔽 FOLLOW CODER CODER
    Blog -- coder-coder.com/
    Twitter -- / thecodercoder
    Instagram -- / thecodercoder
    #sass #css #coding
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 105

  • @anoorhakim20
    @anoorhakim20 2 ปีที่แล้ว +37

    The thumbnail 😂❤️

  • @kamilc.5271
    @kamilc.5271 2 ปีที่แล้ว +11

    This video was so helpful. Finally got a good grasp of the new syntax. Thank you, Jessica! This is definitely one of my favorite youtube channels on web development!

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว +4

      Thanks so much!! I appreciate it and I'm glad my videos are helpful for you!

    • @ibrahimabubakarlincoln3815
      @ibrahimabubakarlincoln3815 2 ปีที่แล้ว

      @@TheCoderCoder very helpful Jessica

  • @fraserlock-macardy9633
    @fraserlock-macardy9633 2 ปีที่แล้ว +2

    Thank you for your time making this video. I have learnt a lot from it. Have a prosperous 2022.

  • @BenDemeyere
    @BenDemeyere ปีที่แล้ว

    I wasn’t aware of the changes here so was great to find this video!

  • @zakhariihusar6975
    @zakhariihusar6975 2 ปีที่แล้ว

    Remember you as a person who's made a great webdev roadmap.
    Much love to your channel ❤️❤️❤️.

  • @erenlothbrok4736
    @erenlothbrok4736 2 ปีที่แล้ว +4

    Please make a complete course on sass! It would help alot!

  • @shonuff4323
    @shonuff4323 8 หลายเดือนก่อน

    Thanks! I've been stubborn about using the new stuff. Figured it is time to start changing.

  • @financewithsom485
    @financewithsom485 2 ปีที่แล้ว

    The content quality is the best I have even seen in a coding channel

  • @bugoaneo
    @bugoaneo ปีที่แล้ว

    Let me hug you and thank you sincerely! I finally moved to the modules)))🥰🤗

  • @hajimeippo804
    @hajimeippo804 2 ปีที่แล้ว +8

    I was going to learn sass today evening 😂😂
    Now I will start to learn from afternoon for this video

  • @Knards
    @Knards 2 ปีที่แล้ว +5

    I just did a project with Use and Forward. I thought life was over when I decided to use it. But, once I used it, I discovered it wasn't so bad. Pain in the butt, but not so bad

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว +4

      Yeah it takes a while to get used to the new syntax! Definitely took me a few tries to get it

  • @progmell
    @progmell ปีที่แล้ว

    Hey pretty, thank u so much, finally I could to learn how to use @use and @fordward.

  • @roctanweer2265
    @roctanweer2265 2 ปีที่แล้ว

    Although you taught me all about Sass but this time I've already learnt about these stuffs...
    Keep it up 🤗🤗

  • @Manhleban
    @Manhleban ปีที่แล้ว

    Great and informative tutorial! Can you please tell me what color theme you are using on your VSC?

  • @chr_aikicom
    @chr_aikicom ปีที่แล้ว

    really love your style of teaching, everything seems so simple 😊
    can you tell where you find your background music?

  • @loiuxxx
    @loiuxxx ปีที่แล้ว

    is there an existing boilerplate on this new module? im quite a newbie to sass and im currently using kitty giraudel boilerplate. , any sugestions?

  • @frontend3409
    @frontend3409 ปีที่แล้ว

    Great explanation of @use! thank you! You have a gift (and my sub)!

  • @sayutalks9721
    @sayutalks9721 2 ปีที่แล้ว +1

    You are just awesome !! Subscribed

  • @stephenlittle7688
    @stephenlittle7688 2 ปีที่แล้ว

    is it better to use gulp then just the sass --watch scss:css ?

  • @_moxy9905
    @_moxy9905 ปีที่แล้ว

    hey jessica! :)
    how to use dart-sass in react project?

  • @arthurplays6943
    @arthurplays6943 28 วันที่ผ่านมา

    I have a query if anyone can help, I have angular library i am creating for my company. I dont know how to setup global css in it. So what i did is I have created a src/lib/styles/styles.scss and using it in every components scss file like @use 'styles'; is this a good approch or there is better solution for this.

  • @renzvallinas3694
    @renzvallinas3694 2 ปีที่แล้ว +2

    ctrl + / also works for comments

  • @jaseem1448
    @jaseem1448 2 ปีที่แล้ว

    What is the difference between browsersync and live server?

  • @NabeerDarVlogs
    @NabeerDarVlogs 2 ปีที่แล้ว

    Thanks, it was really helpful

  • @ouddriss
    @ouddriss 2 ปีที่แล้ว +3

    I really liked your video, it's really informative. Only thing that disturb me is the background music it's a little bit louder! Other than that is perfect ^^

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว +3

      Thanks for the feedback! we're going to be turning down the music for future videos

  • @ThePHPElephant
    @ThePHPElephant 2 ปีที่แล้ว

    That was helpfull, Thanks.

  • @ProgrammingwithShahan
    @ProgrammingwithShahan 2 ปีที่แล้ว

    Great video. I appreciate it

  • @nikhiltyagi6619
    @nikhiltyagi6619 2 ปีที่แล้ว

    Name of this vs code theme?

  • @kentmiggalen9756
    @kentmiggalen9756 2 ปีที่แล้ว +1

    14:08 thank you so much!

  • @harrypujols886
    @harrypujols886 2 ปีที่แล้ว +7

    Now it truly feels like Sass is no longer being maintained by Ruby developers, because they found a bloated, over-engineered solution for a problem that was easy to work around with.

    • @KletoReese
      @KletoReese 2 ปีที่แล้ว +1

      PRECISELY!!! Right now this way of using Sass is annoying and overwhelming taking the sheer fun out of development.

  • @malaydesign
    @malaydesign 2 ปีที่แล้ว

    When Will Coming Web development Course

  • @albertgalvez9424
    @albertgalvez9424 2 ปีที่แล้ว

    Easiest way to comment a line is Ctrl + ? (question mark).

  • @Daddasoft
    @Daddasoft 2 ปีที่แล้ว

    I love SASS thanks for give us more knowledge

  • @AlThePal78
    @AlThePal78 5 หลายเดือนก่อน

    why did you use root -- colors instead of scss $color

  • @VinceM1000
    @VinceM1000 2 ปีที่แล้ว

    I noticed you are using CSS Custom Properties in your Sass workflow. Do you have a video that walks through how to do this? I have been using Sass colour variables so far but have heard good things about Custom Properties but can't find much on how to implement them into a Sass Workflow.

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว

      I don't have a dedicated video for CSS custom properties yet, but I am using them in my dark/light toggle Frontend Mentor series!
      I set up the colors using custom properties so that I can change them via JS. You can see how I set it up in this video at minute 19 -- th-cam.com/video/nI0BfXFjI1I/w-d-xo.html
      Hope this helps for now!

  • @shubhammusmade5744
    @shubhammusmade5744 2 ปีที่แล้ว

    Best youtube channel for front end development

  • @stillready6405
    @stillready6405 2 ปีที่แล้ว

    Hey thank you for this video, this was just what I needed. One question regarding Gulp: Could I use for file minifying and bundling (sass, css, js) just Webpack or where and why should I use Gulp? I know Gulp is a task runner, where Webpack is a bundler, but I what I've seen Webpack can do already very much.

    • @RickyGarcia_Learning
      @RickyGarcia_Learning 2 ปีที่แล้ว

      you can replace gulp with webpack. it's preferred for many even.

  • @DenisovichDev
    @DenisovichDev 2 ปีที่แล้ว +7

    How is that every tutorial I need you post right away...

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว +4

      Hope this video is helpful for you!!

  • @tiaan_va
    @tiaan_va 9 หลายเดือนก่อน

    The direct shortcut for commenting code in vscode is 'ctrl + /'

  • @groovebird812
    @groovebird812 2 ปีที่แล้ว +11

    I see no advantages to the older import syntax. It is complicated and more to write

  • @jasonspeziale7782
    @jasonspeziale7782 ปีที่แล้ว

    This is great and all but about bootstrap 5 and dart sass there's no videos on this topic. Whats the story with this cause I'm using bootstrap 5 the old sass way but how do i do it with dart sass being bootstrap already is using the old syntactic. I need help and the uikit I'm using that has bootstrap 5 is using the old sass way @import.

    • @TheCoderCoder
      @TheCoderCoder  ปีที่แล้ว

      From what I can tell, Bootstrap won't use the new Sass modules with @use and @forward until v6. On the Sass website, they've pushed back the deprecation of @import much further until more people are using Dart Sass. So I think you will have to use the old way until v6 comes out.

    • @jasonspeziale7782
      @jasonspeziale7782 ปีที่แล้ว

      @@TheCoderCoder Ok can I use it for now cause I'm already using a ui kit I bought that don't use the new sass pluse I'm good with bootstrap and I'm trying to build my portfolio so I can get a job I don't wanna sit around and waste anymore time.

    • @jasonspeziale7782
      @jasonspeziale7782 ปีที่แล้ว

      @@TheCoderCoder Also all those calc() errors I'm getting can I just go in and change them manually and it will work fine.

  • @useruser-xb9vj
    @useruser-xb9vj 2 ปีที่แล้ว

    very nice video! me help quite

  • @ritroo492
    @ritroo492 2 ปีที่แล้ว

    What do I do when I press watch sass it doesn't generate any dist file

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว

      Thanks for joining the chat! Hope you were able to get your problem resolved!

  • @thecodetex
    @thecodetex 2 ปีที่แล้ว +1

    This talk is going on a lot lately would be glad to see your explanation though I have already read an article about this in curiosity 😂

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว +1

      Hope this video helps explain it!

    • @thecodetex
      @thecodetex 2 ปีที่แล้ว

      @@TheCoderCoder Yea it did, cool video very detailed and we'll explained 😁👍

  • @kentmiggalen9756
    @kentmiggalen9756 2 ปีที่แล้ว +1

    Please more videos like this

  • @bogijeaa513
    @bogijeaa513 2 ปีที่แล้ว +2

    Is it better to use live sass compiler or gulp?

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว +4

      Live Sass is great for working locally. For working in a professional setting on a team you would need a build tool like Gulp, Webpack, etc.

  • @mobilepassiveincome6637
    @mobilepassiveincome6637 2 ปีที่แล้ว +2

    I want to be just like you. 😊 But I still need to study allot when it comes to coding.

  • @Sonya_Makepeace
    @Sonya_Makepeace 9 หลายเดือนก่อน

    The problem I've got is the live sass compiler extension I use in VS Code doesn't support the @use or @forward. I just get a compile error. It's fine when I use the import function though. I'm using the compiler by Glenn Marks, and even though it's recently updated, it doesn't support those newer functions, unless I've missed something. I can't be bothered to install another compiler, I want it kept simple.

    • @TheCoderCoder
      @TheCoderCoder  9 หลายเดือนก่อน

      hmm, I've been using Glenn Marks' Live Sass Compiler for quite a while now, and it's never had a problem with @use and @forward. Maybe check that the extension is up to date, or perhaps you have a syntax error in your Sass?

    • @Sonya_Makepeace
      @Sonya_Makepeace 9 หลายเดือนก่อน

      @@TheCoderCoder I've sorted it now. I was making the mistake of not adding the variables to every scss file that was using them. I haven't got around to using mixins yet, but I'm guessing it will be the same. I'm using them with a namespace. BTW, I love your colour theme for VS Code. I'm using it on all my computers.

    • @TheCoderCoder
      @TheCoderCoder  9 หลายเดือนก่อน

      @@Sonya_Makepeace oh thank you! Glad you were able to figure it out!

  • @bandarkhawaji
    @bandarkhawaji 2 ปีที่แล้ว +1

    Thumbnail is dope 👌😂

  • @malaydesign
    @malaydesign 2 ปีที่แล้ว

    YOU ARE MY HERO (WEB HERO )

  • @YOUdudex
    @YOUdudex 2 ปีที่แล้ว

    Is sass even useful in 2021 with js frameworks like react, vue, angular etc when we have css in js solutions like styled-components

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว +2

      If you're working on a large site that is very component-driven then CSS-in-JS might be a better solution for that! But Sass and BEM are good ways to write and organize your styles if you're not super dependent on JS components.

    • @YOUdudex
      @YOUdudex 2 ปีที่แล้ว

      @@TheCoderCoder Thanks for explaining!! :)

  • @babyboyknace4936
    @babyboyknace4936 2 ปีที่แล้ว

    Hi Jessica,I've been doing some learning,training and been practicing and lot of web development (full stack) and your videos have been helpful,I'd love to know if I can get a job as a web develop anywhere without a degree

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว +2

      It is possible-- some companies may still want a cs degree but others don't require one. Depending on the company and the job position you may have to practice algorithms for technical interviews. You can do this at places like LeetCode or the book Cracking the Coding Interview. Good luck!

  • @agentsmith2189
    @agentsmith2189 2 ปีที่แล้ว

    where is the git repository?

  • @PokerDKSTART
    @PokerDKSTART 2 ปีที่แล้ว

    Has your video "Browsersync + Sass + Gulp in 15 minutes" become outdated with the rollout of this video? As I'm getting the following error message when i run gulp in the terminal:
    "Error in plugin "gulp-sass"
    Message:
    gulp-sass 5 does not have a default Sass compiler; please set one yourself.

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว

      Yes, you'll need to update the gulpfile based on what I did in the last section of this video 20:30

    • @PokerDKSTART
      @PokerDKSTART 2 ปีที่แล้ว

      @@TheCoderCoder Yup, I've tried doing that, but then it threw the error: Error: Cannot find module 'sass', code: 'MODULE_NOT_FOUND'. I've tried removing gulp sass from my package.json and then installing the newest version, but I keep getting the same error. :/
      By the way, thank you for the reply, love your content!

  • @zen-zeo3223
    @zen-zeo3223 2 ปีที่แล้ว

    thank u

  • @malaydesign
    @malaydesign 2 ปีที่แล้ว

    Please Make Step With Web Developer How

  • @rafalpotasz
    @rafalpotasz 2 ปีที่แล้ว +4

    Hi Jessica! Love your content and looking forward to see how you explain this shift in SASS, your channel has a ridiculously great production quality.
    I'm curious about something, more from a 'creator' angle, something I'm struggling with that is a roadblock of sorts. As a creator you know that others have content that talks about what you're about to talk about. But you make the decision to make it.
    I guess this is a question of what drives you, or rather how this knowledge of other-content that covers what you want to cover doesn't discourage you? Is it the fact that different people want different things? Or is it that you WANT to do something and the content being useful/informative/entertaining is a type of bonus?
    Than again, I already use @use and @forward, yet I want to watch this video to see what I've missed, or if you know something I don't yet. Perhaps I've answered my own question in part...

    • @TheCoderCoder
      @TheCoderCoder  2 ปีที่แล้ว +4

      That's a great question! The way I see it, if you see videos on a topic you want to do, that's actually a good indicator that there is interest in that topic. And everyone explains things differently with their own style-- so some people will resonate with certain creators more than others. It's kinda like watching a TV show or movie-- people have different likes and dislikes. So even if someone has created a video on the same topic, you still can put your own unique spin on it. Hope this helps!

    • @rafalpotasz
      @rafalpotasz 2 ปีที่แล้ว +2

      @@TheCoderCoder That does indeed help, thanks for taking the time to respond - appreciate it 😁

  • @KangJangkrik
    @KangJangkrik 2 ปีที่แล้ว

    Video request: implement material design
    Seriously, I would gladly show that video to new employees

  • @MatthewKennedyUK
    @MatthewKennedyUK 2 ปีที่แล้ว

    I give up at 5:12 we still haven't got to the point yet.

  • @malaydesign
    @malaydesign 2 ปีที่แล้ว

    Love From India ❤️

  • @fatgolem69
    @fatgolem69 2 ปีที่แล้ว +1

    I like the drake meme style thumbnail

  • @GamerSolitO
    @GamerSolitO 2 ปีที่แล้ว +2

    Nice thumbnail!

  • @malaydesign
    @malaydesign 2 ปีที่แล้ว

    You Are My Sister I Am Learning From Your video

  • @funkyboy4882
    @funkyboy4882 2 ปีที่แล้ว

    she is awesome

  • @p09m21
    @p09m21 2 ปีที่แล้ว

    Hotline bling thumbnail 😂

  • @user-fz4jr6tv5x
    @user-fz4jr6tv5x 2 ปีที่แล้ว

    Woow that thumbnail

  • @SaturneKx
    @SaturneKx 2 ปีที่แล้ว

    tfw coder coder makes drake meme format

  • @abdullahalmahin8100
    @abdullahalmahin8100 2 ปีที่แล้ว

    I was gonna say that..but you took it from my mouth..

  • @MorningstarMiracle-wi4uq
    @MorningstarMiracle-wi4uq 4 หลายเดือนก่อน

    The music is loud... distracting my understanding ..and also ur theme in ur vscode .. not bright

  • @Neverhood.
    @Neverhood. 4 หลายเดือนก่อน

    pull my finger 👉

  • @sachubarman
    @sachubarman ปีที่แล้ว

    Just wondering why did you add this music?? it's irritating

  • @howuseehim
    @howuseehim ปีที่แล้ว

    I swear they make things more complicated and add a lot of repetition

  • @gabrielcajigas1904
    @gabrielcajigas1904 7 หลายเดือนก่อน

    use and foward are so bad

    • @TheCoderCoder
      @TheCoderCoder  7 หลายเดือนก่อน

      They're definitely kinda confusing