Sass Tutorial for Beginners - CSS With Superpowers

Поделиться
HTML-код
  • Опубликовано: 1 июл 2024
  • In this course, you will learn the basics of Sass. We will start with a brief overview of what Sass is along with what is required to incorporate Sass into your environment. We will also set up a Sass compiler in Visual Studio Code. You will learn about Sass variables, maps, nesting, functions, mixins, extending, and operations.
    Lastly, we will start from scratch on a real-world project (Portfolio website) using Sass. We will go step-by-step through each part, and at the end, we will deploy the site.
    🔗 Project Code: github.com/codeSTACKr/portfol...
    🎥 Tutorial from codeSTACKr. Check out their RUclips Channel: / codestackr
    ⭐️ Course Contents ⭐️
    ⌨️ (0:00:00) Intro
    ⌨️ (0:00:58) What Is Sass?
    ⌨️ (0:01:24) Requirements
    ⌨️ (0:02:15) Install/Setup Live Sass Compiler VS Code Extension
    ⌨️ (0:04:02) Folder Structure / Sass Syntax
    ⌨️ (0:08:06) Variables
    ⌨️ (0:10:03) Maps
    ⌨️ (0:03:00) Nesting
    ⌨️ (0:16:54) Partials
    ⌨️ (0:19:40) Functions
    ⌨️ (0:21:30) Mixin Example 1
    ⌨️ (0:24:26) Mixin Example 2
    ⌨️ (0:28:00) Mixin Example 3
    ⌨️ (0:30:20) Extend
    ⌨️ (0:32:05) Math Operations
    ⌨️ (0:33:49) How to Learn More (Documentation)
    ⌨️ (0:34:02) Real-World Example From Scratch (Portfolio Site)
    ⌨️ (0:34:38) index.html
    ⌨️ (0:40:35) Font Awesome Setup
    ⌨️ (0:41:29) main.scss / _config.scss
    ⌨️ (0:48:18) _home.scss
    ⌨️ (0:52:55) Transition Ease Mixin
    ⌨️ (0:54:24) Text Color Function
    ⌨️ (0:57:10) _menu.scss
    ⌨️ (1:02:38) main.js
    ⌨️ (1:06:08) Menu cont.
    ⌨️ (1:19:38) about.html
    ⌨️ (1:23:51) _about.scss
    ⌨️ (1:30:37) projects.html
    ⌨️ (1:35:05) _projects.scss
    ⌨️ (1:43:57) contact.html
    ⌨️ (1:47:09) _contact.scss
    ⌨️ (1:49:56) _responsive.scss
    ⌨️ (2:01:35) Deploy on Github Pages
    ✔️ codeSTACKr on Twitter: / codestackr
    ✔️ codeSTACKr on Instagram: / codestackr
    ✔️ codeSTACKr website: codeSTACKr.com
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: medium.freecodecamp.org

Комментарии • 526

  • @kenthefley2226
    @kenthefley2226 4 года назад +674

    Just a modular tip: You don't need to write @import each time you import a partial: You can simply add a comma and continue on the same line. @import "config", "main", "home", "menu", "about", etc;

    • @blonduose
      @blonduose 4 года назад +16

      thanks, really helpful will put it in my notes

    • @alexradu1921
      @alexradu1921 3 года назад +4

      @@blonduose same... damn I have like lots of notes.

    • @2breborn247
      @2breborn247 3 года назад

      @@alexradu1921 same...again XD

    • @sadeghmaramazi886
      @sadeghmaramazi886 3 года назад +1

      Wow thats really work when i test thanks for that its simply and graet idea

    • @chubbyBunny94
      @chubbyBunny94 3 года назад +1

      every job I've had founds on this because of readability, sadly

  • @betfab9806
    @betfab9806 4 года назад +344

    Thank you so much for this. This is amazing
    Note to self coz im sure ill keep coming back here
    variables 8:43
    maps 10:04
    nesting 13:00
    imports 17:00
    functions 19:40
    mixins 22:45
    extensions 30:20
    operations 32:00

  • @codeanything1092
    @codeanything1092 3 года назад +7

    Sass literally has everything that I wanted to do in CSS, like nesting properties inside of other properties. Thanks for the tutorial btw👍

  • @AdADglgmutShevanel
    @AdADglgmutShevanel 3 года назад +1

    Thanks so much for this! I've been seeing so many jobs ask for Sass knowledge, and I finally took the time to learn it with this video!

  • @oldmangames6593
    @oldmangames6593 3 года назад +8

    Such a great and understandable course!!! This helped me fully understand Sass. Thanks guys!

  • @jenniferward6821
    @jenniferward6821 3 года назад +1

    Have watched the other SASS tuts. This one is the benchmark. But so grateful to all who give their time and knowledge thank you

  • @fabrizioiacovone2661
    @fabrizioiacovone2661 4 года назад +23

    Thanks a lot for this wonderful training! Not easy to keep focused for 2 hours and keeping the audience focussed as well, really nicely presented

  • @5houmei
    @5houmei 2 года назад +2

    めちゃお世話になりました!
    英語もSASSも学べて非常に有意義な動画でした!!
    ありがとうございます!!

  • @RaymondPoston
    @RaymondPoston 3 года назад +1

    You are a natural and gifted teacher. Thanks for this tutorial and the others you have created.

  • @zerosandones7547
    @zerosandones7547 4 года назад

    the custom sass save in setting was really helpful, THANK YOU!

  • @cswalker21
    @cswalker21 2 года назад +2

    Thanks. This is the first tutorial on anything related to CSS that I got all the way through without rocking on the floor in the fetal position crying.

  • @jonathanacevedo4335
    @jonathanacevedo4335 4 года назад +27

    Bless you guys.
    In the name of open source

  • @albertoressia5325
    @albertoressia5325 3 года назад +6

    Awesome: simple, direct, exaustive, no useless discussion. Really a great job! Thanks

  • @mledesma64
    @mledesma64 4 года назад +8

    Thank you for putting your time and effort into this tutorial, it was really helpful to me

  • @justinobrien2907
    @justinobrien2907 3 года назад +2

    24 minutes in and I can't believe I waited so long to learn this. Subscribed.

  • @ritwik5774
    @ritwik5774 3 года назад +1

    What an absolutely rocking video. Incredible content, and an exceptional teacher as well. Very lucid and expressive.

  • @Dexter101x
    @Dexter101x 3 года назад +9

    Took me 24 hours to get this typed out. I know the source is on github, but I just wanted to get used to it. Thanks, awesome as SASS is

  • @filcondrat
    @filcondrat 4 года назад +38

    've been using scss for years, didn't know half of features until this tut

    • @noonefromearth2916
      @noonefromearth2916 3 года назад +4

      Somehow your comment comforts me as i am a beginner dev..

    • @chubbyBunny94
      @chubbyBunny94 3 года назад

      ​@@noonefromearth2916 lol same here, I've got my first day as a junior dev tomorrow and I thought I knew scss.Man how wrong was I

    • @noonefromearth2916
      @noonefromearth2916 3 года назад +3

      @@chubbyBunny94 bro not to discourage you, but after selflearning react during lockdown and bagging a job, i quit the job in 2 weeks. 9 hrs of me and the computer was so boring and mind F*@king, i couldn't take it.
      Ps- I'm a computer engineering graduate

    • @chubbyBunny94
      @chubbyBunny94 3 года назад

      @@noonefromearth2916 that’s fair
      Nah I’m not discouraged. I’ve tried so hard to get a dev job. Now I’ve got one, I’ll do all I can not to let it go!

    • @alexapirot32
      @alexapirot32 2 года назад

      @@chubbyBunny94 how much did it take you to get the job?

  • @AlexanderDemin
    @AlexanderDemin 3 года назад +1

    Great course. Coded along for a few hours. Thanks!

  • @uxninjaa
    @uxninjaa 4 года назад

    By far the best tutorial video I have seen on RUclips, thanks a lot!

  • @ProgrammingwithPeter
    @ProgrammingwithPeter 4 года назад +9

    Sass is the best and most powerful CSS preprocessor card-body and card-head

  • @mudyeet_
    @mudyeet_ 3 года назад +40

    Quick Tip: Change the savePath for the scss compilation to "~/../dist/css" if you want your css to be compiled relatively to whereever your scss is, not relatively to where the terminal is opened at. The options can be found in the same settings.json file in which you tweaked the scss config at the beginning of this tutorial, check 2:15.
    Took me 5 minutes+ to figure it out, might save you those precious 5 minutes :)

    • @sunnyside1252
      @sunnyside1252 2 года назад

      Great, thank you :)

    • @MK_con
      @MK_con 2 года назад

      so you chose his third option or the first one with different path?
      for a reason it keeps not working for me

    • @yuobuten
      @yuobuten 2 года назад +1

      i've been throwing punches at the table for a day straight because of this, thank you!

  • @levi4thon
    @levi4thon 4 года назад +15

    Wow, one of my 2 requests has been met. Now I only wish for a nice Typescript tutorial. Great job guys!

  • @shanemotyl
    @shanemotyl 3 года назад

    Best SCSS tutorial I've seen so far - Thank you

  • @TriniLime123
    @TriniLime123 4 года назад +9

    great tutorial man, really appreciated how you constantly reinforced ideas introduced earlier in the tutorial

  • @valentynan6446
    @valentynan6446 4 года назад +1

    Thanks! that is just utterly easy to understand! I enjoyed every minute of your video!

  • @raptorthefirst
    @raptorthefirst 4 года назад +2

    OMG,I just yesterday tried to find any video about sass. And now it's here....Thnx

  • @luciepetit8673
    @luciepetit8673 3 года назад +1

    omg your video is wonderful, I learned a lot more with 30 minutes of your video than 2h of my classes. Please keep doing such an amazing content !!

  • @TheOshinoMeme
    @TheOshinoMeme 2 года назад +1

    The explanation about "em" and "rem" differentiation was cristal clear and extremely short compare at when i was looking for an explanation.
    Thank you for the lesson !

  • @daisylopezartist
    @daisylopezartist 4 года назад +2

    Done with the tutorial! Really good one! Thanks!

  • @deumolo
    @deumolo Год назад

    Man, this project was really educational and fun to do.
    Thank you, Jesse

  • @philipham1
    @philipham1 3 года назад

    Really awesome video man, first time I’ve stuck around till the end without skipping constantly 🤪

  • @mohammedhasanshaikh4800
    @mohammedhasanshaikh4800 3 года назад +3

    I'm really grateful that I have learnt from this course a lot of insight. Please keep up the good work and encourage you'll to post such amazing courses looking forward to see more..Well done guys for wonderful course..😍😍😍

  • @prayascsa6601
    @prayascsa6601 2 года назад

    Thanks a lot for this, Sass is really great and I just loved nesting! And I also learned how to properly structure my code

  • @21thTek
    @21thTek 3 года назад

    I really love this video, I have learned a lot with a p´rosessional one. What i apreciate the most is that the speach its at very easy to follow speed and the pronunciation is excelent. This is important so it can be understood all around the world. Thanks a lot Sir !!!

  • @sreez248
    @sreez248 4 года назад +6

    Its a beautiful way of explaining the SASS concepts. Thanks a lot!!

  • @SimpleTubeKK
    @SimpleTubeKK 3 года назад +62

    Dude didn't even Google once even for color picks. Man that's mastery of content, calm and process flow truly a professional.

    • @rafi8534
      @rafi8534 3 года назад +7

      This is the recording dude ...Actually he cut the unnecessary Clips

    • @thesharptechcoder8211
      @thesharptechcoder8211 3 года назад +24

      Dude they had already built these projects and they just copy from another pc or screen and type in again.

    • @aryalaashaya
      @aryalaashaya 2 года назад +1

      Dude...no wait people before me already have said the stuff I'm about to say lol

    • @arabiclearner711
      @arabiclearner711 2 года назад

      Dude

    • @anonme_
      @anonme_ 2 года назад +1

      Dude, people be so dumb that they simply cannot revel in somebody's appreciation and leave it to be.

  • @sarilusblondywadley2677
    @sarilusblondywadley2677 2 года назад

    Thanks for this amazing tutorial about sass.I feel like you are a good man,i like the the way you go slowly to explain things.

  • @emilianovc5919
    @emilianovc5919 3 года назад +1

    this was awesome. thanks for such clear concepts!

  • @andcaru
    @andcaru 2 года назад +1

    Great tutorial, clear explanation, thanks a lot man!!

  • @CurtisKnudson
    @CurtisKnudson 3 года назад

    This was a really good SASS tutorial. Thank you!

  • @mk9834
    @mk9834 4 года назад

    정말 고맙습니다 codeSTACKr!

  • @adityagupta232
    @adityagupta232 4 года назад +3

    Thanks for this video. Great and easy.
    We can improve this by using a single "open" class. This SASS works for me.
    &.open {
    visibility: visible;
    .menu-nav {
    transform: translateY(0);
    &__item {
    transform: translateX(0);
    }
    }
    }

  • @abrotherinchrist
    @abrotherinchrist 11 месяцев назад +1

    I learned a lot from this. Thanks! For consistency I think there a several styles that could have been made mixins in this tutorial that weren't.

  • @blue_berry_pie64
    @blue_berry_pie64 Год назад

    Thank you for this course! very well-instructed!

  • @RanjeetKumar_23
    @RanjeetKumar_23 Год назад +1

    great tutorial...definitely worth the time and very beginner friendly

  • @slickathanasnicka
    @slickathanasnicka 4 года назад

    you sir ARE A LIFE SAVER! Very informative THANKS!!!

  • @sleeptownProductions
    @sleeptownProductions 2 года назад

    Thank you so much!! Great tutorial!! :) And well explained!

  • @harshittiwary382
    @harshittiwary382 4 года назад +34

    Free code camp is just the best place for a new comer to learn code.

  • @FirdavsiWebDev
    @FirdavsiWebDev 4 года назад +1

    Great Tutorial. Thank you!

  • @upierczileonheart7020
    @upierczileonheart7020 Год назад +1

    I really loved this tutorial, thank you so much, it helped me a lot

  • @danielnowak7557
    @danielnowak7557 4 года назад +6

    37:43 There is one important issue anyone didn't spot. Watch out for headings order - h2 comes after h1. As long as it's not related to navigation, this may disrupt page content flow and lead to SEO and accessibility related problems.

  • @Webtricker
    @Webtricker 2 года назад

    Your all tutorial was awesome. This Sass tutorial was so easy. Thanks for giving such a simple way. It was very helpful

  • @girishsunkeri358
    @girishsunkeri358 3 года назад

    Thanks for explaining it so well !

  • @brnheavymetal
    @brnheavymetal 4 года назад +1

    Nice, I also subscribed to the CodeStackr channel, I used the basics of Sass some time ago but this is a great video to remember how to use and also learn new functionaties

  • @alexradu1921
    @alexradu1921 3 года назад +1

    Great, after this video and some note-taking, we can add SCSS to our skills in CV.

  • @mahmodsamir5110
    @mahmodsamir5110 Год назад +1

    Thank you so much, it is really, really helpful

  • @vikramadityakukreja6725
    @vikramadityakukreja6725 2 года назад

    nice work with the burger/cross menu transitions

  • @ProgrammingwithShahan
    @ProgrammingwithShahan 2 года назад +1

    Really helpful SASS tutorial. Thanks

  • @balanceiseverything2565
    @balanceiseverything2565 3 года назад

    Awesome tutorial, thank you!

  • @erdalerden1117
    @erdalerden1117 2 года назад +1

    Thank you so much. This is a really useful post !!!

  • @mitchellw7695
    @mitchellw7695 2 года назад +1

    Thanks Beau, very informative. Unlike the competetors teaching sass you get to the fundamentals that assist beginners in the early stages of development. Cheers :)

  • @vojica6055
    @vojica6055 4 года назад

    I just started learing Sass and i found this tutorial. Cant be better

  • @zainuddin1205
    @zainuddin1205 3 года назад

    Thank you, sir, and freeCodeCamp for giving us such free and brilliant content.

  • @Olivia-kl8yz
    @Olivia-kl8yz 4 года назад

    Thank you @freeCodeCamp and @codeSTACKr !

  • @AsifDawood
    @AsifDawood 2 года назад

    Thank you for the course video. Very beautifully explained Saas and its practical application

  • @romyt9816
    @romyt9816 3 года назад

    Great, accurate explanation. Thanks

  • @apnkta112
    @apnkta112 Год назад

    Greate video for a sass beginner ! Thanks a lot!

  • @VladimirDevyatoff
    @VladimirDevyatoff 4 года назад

    An amazing tutorial. Thank you for it! I don't know where to use all these knowledge, especially functions because it makes the whole thing a little bit crabbed and huge while the problem small is. But may be I'll grow up to that one day. :D

  • @BusinessWolf1
    @BusinessWolf1 2 года назад

    This is incredibly useful!

  • @gianlucafontana5536
    @gianlucafontana5536 2 года назад

    Really well done! Thanks bro!

  • @alibarznji2000
    @alibarznji2000 4 года назад

    this guy is ammazing, thank you for this amazing content

  • @kiranjoshi893
    @kiranjoshi893 4 года назад

    best tutorial so far.

  • @agrajyadav9
    @agrajyadav9 3 года назад

    Nice tutorial, thanks FCC and codeSTACKr

  • @abby7070
    @abby7070 3 года назад

    This was awesome. TYSM! ♥

  • @ssushantss
    @ssushantss 3 года назад

    this was a really nice crash course !
    thanks

  • @videloco84
    @videloco84 4 года назад

    Thx, great tutorial!!!. You have a new subscriber in your channel

  • @dvxx9
    @dvxx9 4 года назад

    Great vídeo!!! Thank you!

  • @Elliot3482
    @Elliot3482 2 года назад

    Great tutorial. You are my inspiration.

  • @Didier-cu6cb
    @Didier-cu6cb 7 месяцев назад

    perfect ... thank you so much for this !

  • @Kainone
    @Kainone 2 года назад

    Amazing Video! Thanks a lot!

  • @baberaham
    @baberaham 4 года назад +35

    Awesome tutorial, not only did I learn SASS, I also learned how to structure my css and html a lot nicer.
    FYI: I was stuck on an issue with css not updating which left me baffled for about an hour because I messed up the directory structure and sass compiler live kept creating a new /dist/dist/css folder and compiling main.css there. At first, I was frustrated with the extension, then I felt silly. Be very attentive!

  • @ajaz_ahmed
    @ajaz_ahmed 4 года назад

    Wonderful tutorial , cheers :)

  • @demoniaroja2011
    @demoniaroja2011 4 года назад

    Amazing tutorial!!!

  • @nhanaothanh341
    @nhanaothanh341 3 года назад

    Such a great SASS course. I have learnt a lot of things from this video, Thank you.

  • @randomesischannel926
    @randomesischannel926 2 года назад

    Thanks for the video!
    If you have a problem with changing the path of the "savePath" name, then just make sure you are changing the exact Live Sass Compiler settings .json file.
    Because there is more than one .json file and you might select not the right one.
    And, yes, I made this mistake as well...

  • @0xbitbybit
    @0xbitbybit 4 года назад +1

    Wooo, just finished the whole 2 hours, yay! Looks amazing and learnt a lot! Thanks @codeSTACKr

  • @user-yd9nq1ub1x
    @user-yd9nq1ub1x 3 года назад

    thanx a lot! a very helpful course!

  • @belloticyd
    @belloticyd 4 месяца назад

    Thank you so much for this video.. it is indeed impactful

  • @jacob_dmn
    @jacob_dmn 2 года назад

    Amazing Tutorial..Thank YOU Sir

  • @danimanabat5791
    @danimanabat5791 2 года назад

    Thank you so much for this!

  • @ab3d69
    @ab3d69 4 года назад +1

    it was awesome :). thanks

  • @mariosilva1911
    @mariosilva1911 2 года назад

    Great tutorial, very helpful.

  • @byronbieniemy6385
    @byronbieniemy6385 4 года назад

    Needed to be brought up to scss speed and FCC came in right on time for the win!

  • @Zangetsu95bankai
    @Zangetsu95bankai Год назад

    Thanks a lot man, very good explications

  • @ahmedginani8991
    @ahmedginani8991 Год назад

    Thank you so much for your videos; these are quite helpful for the beginners as well as experienced learners!!!

    • @ash1ra
      @ash1ra Год назад +1

      how actual this tutorial for end of 2022?

  • @anshurawat5033
    @anshurawat5033 3 года назад

    Thank u sir
    Really needed this guidance 🙏🏻

  • @cindrmon
    @cindrmon 2 года назад

    nice tutorial! would like to see another tutorial that utilises the sass 7-1 architecture, since i feel like that's a good way to organise code

  • @phoenixocean8594
    @phoenixocean8594 3 года назад +12

    variables 8:43
    maps 10:04
    nesting 13:00
    imports 17:00
    functions 19:40
    mixins 22:45
    extensions 30:20
    operations 32:00
    Credit: @Lilibeth Fabregas
    "Thank you so much for this. This is amazing
    Note to self coz im sure ill keep coming back here"

  • @tayebsouini7947
    @tayebsouini7947 2 года назад

    Thank you very much for this tutorial, it is very helpful