Bootstrap 5 Crash Course Tutorial #19 - Customizing Bootstrap

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 มิ.ย. 2021
  • Hey gang, in this Bootstrap tutorial I'll show you how we can install Bootstrap locally and customize theme variables (like colors) using SASS.
    🐱‍👤 View this course in full now - without ads - on Net Ninja Pro:
    netninja.dev/p/bootstrap-5-cr...
    🐱‍💻 Access the course files on GitHub:
    github.com/iamshaunjp/bootstr...
    🐱‍💻 HTML & CSS Crash Course:
    • HTML & CSS Crash Cours...
    🐱‍💻 Node.js Crash Course:
    • Node JS Tutorial for B...
    🐱‍💻 SASS Crash Course:
    • SASS Tutorial #1 - Wha...
    🐱‍💻 VS Code - code.visualstudio.com/
    🐱‍💻 Bootstrap 5 Docs - getbootstrap.com/docs/5.0/get...
    🐱‍💻 Social Links:
    Facebook - / thenetninjauk
    Twitter - / thenetninjauk
    Instagram - / thenetninja

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

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

    I don’t really understand why the videos like yours with actual content don’t get enough views and some garbage videos have millions of views .... after so many stupid videos this is where I got my answer.... thanks a million

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

      That’s how life is

  • @rodrigoblejman2129
    @rodrigoblejman2129 3 ปีที่แล้ว +10

    Just finished the hole playlist. Great teaching method and straight to the point.

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

    I watch like 15 videos on this and this is the only one I followed and actually had work. Thanks.

  • @user-op9ds9er3e
    @user-op9ds9er3e 5 หลายเดือนก่อน +1

    I have been trying to work out how to compile css and sass for a few days now, this video smashed it, lifesaver!!

  • @ridl27
    @ridl27 3 ปีที่แล้ว +1

    ty Shaun, I've been waiting for this lesson! So now we are true bootstrap ninjas 🐱‍👤🐱‍👤🐱‍👤

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

    This is an excellent tutorial. It is concise and just what I was looking for to turn on negative margins in Bootstrap! Thanks!

  • @etekumoses3320
    @etekumoses3320 ปีที่แล้ว +15

    Been struggling for days on how to customize bootstrap but you are a life saver
    Thanks a lot 🎉

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

      Happy to help Eteku! Thanks for watching :)

    • @remember.772
      @remember.772 2 หลายเดือนก่อน

      ​@@NetNinjathe offcanvas and this part(customizing the setting process all) is not working for me ,idk why pls say smth

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

    Great video. I got exactly what I needed by halfway through. Thanks!

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

    Nice job man! finally someone clear and easy explained that issue to me!

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

    That was a great lesson Thanks....Seriously that lesson has instilled a lot of confidence in my coding going forward. Many Thanks indeed. Wishing you well. Fraser.

  • @koala_8027
    @koala_8027 3 ปีที่แล้ว +1

    Great and simple video, really opened my eyes up to the power of SCSS and bootstrap 5 👍

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

    You are gold, explained it as clear as Crystal

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

    Ninja I learned so much from you over the years, thank you

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

    Thanks a lot for video! I always have problems with all this pathes and imports, and it makes mem a bit crazy, but u explained everything so clear!

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

    Considering the convoluted nonsense that you used to have to go through with Sublime text to setup sass and compile, Livesass is brilliant. Just to add, excellent tutorial as always!

  • @user-we3kd4yd1o
    @user-we3kd4yd1o 3 ปีที่แล้ว +7

    Got up at 3 am to wait for and watch new episode from Net Ninja!

    • @NetNinja
      @NetNinja  3 ปีที่แล้ว +5

      dedication!

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

    Thanks, Buddy. This is what, I was looking for today.

  • @venugopalpv823
    @venugopalpv823 2 หลายเดือนก่อน

    At last after so many videos I got the correct video, and got clarity on customizing bootstrap themes, Thank you

    • @NetNinja
      @NetNinja  2 หลายเดือนก่อน

      Great to hear! :)

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

    You help me save a lot of time. Thanks dude. I subbed

  • @abelmurua6980
    @abelmurua6980 3 ปีที่แล้ว

    Amazing, spent 2 days and didnt know how to do this. Thank you

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

    Fantastic, my friend. Many thanks indeed !!

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

    Excellent tutorial! Thanks

  • @XnonXte
    @XnonXte 11 หลายเดือนก่อน

    Very neat tutorial, thanks!

  • @imajika6
    @imajika6 3 หลายเดือนก่อน

    Very helpful, thanks!

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

    Such a helpful, well-explained tutorial. Thank you!!

    • @NetNinja
      @NetNinja  8 หลายเดือนก่อน +1

      Glad it was helpful! :) thanks for watching

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

    Thank you so much, this helps me a lot, thanks once again.

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

    FOR EVERYONE HAVING PROBLEMS WITH THE CUSTOM COLORS NOT CHANGING
    Someone already said this but you can add the following under your map-merge function (for example):
    ```
    $theme-colors: map-merge($theme-colors, $custom-theme-colors); // You should already have this, so no need to copy this part.
    // Start copying at the line below
    $theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
    $utilities-colors: map-merge(
    $theme-colors-rgb,
    (
    "black": to-rgb($black),
    "white": to-rgb($white),
    "body": to-rgb($body-color)
    )
    );
    $utilities-text-colors: map-loop($utilities-colors, rgba-css-var, "$key", "text");
    $utilities-bg-colors: map-loop($utilities-colors, rgba-css-var, "$key", "bg");
    // Stop copying at the line above
    @import "../node_modules/bootstrap/scss/bootstrap"; // You should already have this as well, so no need to copy this part.
    ```
    If this doesn't work, make sure you've typed everything in correctly. Reply to this comment if you have any questions!
    Also make sure you are watching your sass file at the bottom of the page, you have to click that button every time you load up your project.
    Hope it helps!

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

      Thank you! Your solution worked for me!

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

      thanks! why does this work?

    • @Danny-zf2wu
      @Danny-zf2wu 2 ปีที่แล้ว +5

      try this
      // merge the maps to add new theme colors
      $theme-colors: map-merge($custom-theme-colors, $theme-colors);
      // import bootstrap
      @import '../node_modules/bootstrap/scss/bootstrap';
      @each $key,$val in $custom-theme-colors{
      .bg-#{$key}{
      background-color: $val;
      }
      .text-#{$key}{
      color: $val;
      }
      }

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

      I love you, thx!

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

      Thank you!!

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

    Look at that, I had to skip to the 19th video to find what I needed, very efficient AND practical.

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

    Thanks for the training. Really appreciated! Very simple and comprehensive for the starters. Just a quick question, I have a scenario where in Bootstrap-3 the .col-xs-n class was defined outside the media query but in Bootstrap 5 it is defined within the media query. Due to which, the wkhtmltopdf utility is unable to use .col-xs-n class. What do you think is the best idea to create a custom class outside media query and inherit it from the .col-xs-n class. Is it possible to show the video on it please? Thanks in advance!

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

    This was rather an excellent tutorial--thank you, siree!

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

      Thanks Arkan, glad it was helpful!

  • @CeeTheJay
    @CeeTheJay 5 วันที่ผ่านมา

    Right on the money! Thank you, very helpful.

    • @NetNinja
      @NetNinja  5 วันที่ผ่านมา

      Glad it helped! :)

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

    thanks for this brilliant tutorial, Sass is the easiest and the most useful tool for customizing bootsrap

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

      You're welcome! :)

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

    very useful , thanks 🌷

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

    Thank you very much. Really informative and useful.

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

      Glad it was helpful! :) thanks for watching

  • @HomelessDeamon
    @HomelessDeamon 3 ปีที่แล้ว

    😉🎊🎊🎊🎊🎊🎊🎊 thanks Shaun
    (Btw are u doing any livestreams? )

  • @Moustafa-Sabry
    @Moustafa-Sabry 5 หลายเดือนก่อน

    Amazing. Didn’t want to have to learn a whole new language when all I wanted to do was change colours in bootstrap, and now I don’t have to. Thanks!

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

    This is a goldmine. You got a subscription.

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

      Thank you! :)

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

    Awesome content

  • @__Who-am-i__
    @__Who-am-i__ ปีที่แล้ว

    Where have you been all my life! Xd
    I love you

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

    Thanks a lot mate. ❤

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

    Awesome. Solved my Bootstrap Vue problems.

  • @GeminiLearning
    @GeminiLearning 3 ปีที่แล้ว +1

    Great content Thanks!. Can you use Node JS in ASP.NET project?

  • @hasannasuha1118
    @hasannasuha1118 2 หลายเดือนก่อน

    thanks man, very helpful

    • @NetNinja
      @NetNinja  2 หลายเดือนก่อน

      Thanks for watching! :)

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

    Well Explained! Thank-You So Much 😁

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

      You're very welcome 😊

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

    Thanks a lot, this video was very helpful.

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

      Glad it was helpful!

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

    Thanks really helpful video.

    • @NetNinja
      @NetNinja  4 หลายเดือนก่อน +1

      Glad it was helpful!

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

    thank you so much!!!

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

    Have just found your Tutorial, thank you. I a wondering have you done a similar tutorial using VS2022 IDE rather than VS Code? Thanks

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

    omg thank you!

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

    You are the best.

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

    Live sass didnt creat a Css folder for me so I created the Folder myself and I copied the css files there and then it worked. I hoped that helped anyone who has the same problem like me.

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

    You're really great pal

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

      Thanks Ninette!

  • @chrischti
    @chrischti 3 ปีที่แล้ว +8

    This is a great course, I went through all the Bootstrap 5 Crash Course now, very helpful. One questions, it was mentioned that overriding styles using a individual css is not recommended, but I wonder why. If I just have to modify some styles, it seems so much easier to me just to add a small, individual stylesheet, rather than setting all this up. What is the reason using an individual css is not recommended?

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

      I think the answer is if u have small project and small changes it is ok, but if your project is huge - its not an option. In my bootstrap course it was explained like this "This is how all components are presented within Bootstrap. Almost any external change is the result of the use of variables. This approach ensures that you bind to the framework and change all components when you change the basic settings.
      Many developers, when creating their components, miss this point, which negatively affects the future support of the project, since changing the settings will not change the component. To do this, you will need to edit the CSS separately. If there are dozens of such components, then the possibility of error increases, and the time required for changes will increase significantly." sorry for mistakes^ its just google translate from russian

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

      Exactly, absolutely no need to do all this for small projects. If you're working a project by yourself, you can work with external files. This is basically for really large scale projects that involve teams.

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

    You are awesome! Do you know how many videos unsuccessfully made it through my thick skull? You were the first that explained this perfectly. I effing get it now! The only thing I had to look up was how to get npm to install bootstrap 4.6 because the site was originally created with ver. 4 and was afraid weird things might happen or not work with v5. Thanks man!!!

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

      Aha, thanks for the support, glad it helped! :)

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

    thanks a lot brother !

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

      You're welcome!

  • @AxxionMarketPlace-iu6ri
    @AxxionMarketPlace-iu6ri 11 หลายเดือนก่อน

    Thank you

  • @sanjundev9807
    @sanjundev9807 3 ปีที่แล้ว +1

    Im searching for mongo db realm for react native tutorials, but none found good. Can you do it?

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

    thank you bro

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

    thanks very helful

  • @sadhakbj
    @sadhakbj 3 ปีที่แล้ว +1

    Would be grateful if you do another video continuing bootstrap for admin portal with dashboard and forms.

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

    Hey shaun, How can i use @use instead of @import?

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

    You explain things so well..........Thanks.

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

      Thanks Steve!

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

      @@NetNinja how did you import here 5:13

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

    Is there any easy way to change the @import to @use? Or some other method? Apparently import is deprecated, or will be eventually.

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

    Not working on Angular... default styles.scss, doing the same thing, btn-primary still blue

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

    can i change the value of user defined variable in bootstrap?

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

    sir i don,t get the fiel that you have included in html link "css/main.min.css" how can i get this file tell me please

  • @OstonCodeCypher
    @OstonCodeCypher 3 ปีที่แล้ว +14

    My neighbors listen to this everyday. It's not like they have a choice. 😁 #GreatTutorials

  • @saravana6882
    @saravana6882 3 ปีที่แล้ว

    Hello sir, I am beginner to web development, learning javascript now. i found you have uploaded tutorials on react,graphql,gatsby. in which order I should watch this playlists? react then graphql finally gatsby? please guide me sir

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

    Thank you thank you

  • @salahalhashmi6528
    @salahalhashmi6528 3 ปีที่แล้ว

    thank you

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

    Dziękujemy.

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

      Thanks for your support Tomasz!

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

    Anyone else not seeing the same settings in there settings.json file? What is the default and what did he change?

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

    Thanks!

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

      Thanks for the support Samuel :)

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

      @@NetNinja You're welcome! Helped me a lot!

  • @user-sv8rk6yu7t
    @user-sv8rk6yu7t 2 หลายเดือนก่อน

    Nice tutorial, am learning the web dev, instead of altering the default values with SASS I use the inline CSS I am not sure if that's the right way to do.

  • @ac.4ce442
    @ac.4ce442 3 ปีที่แล้ว

    Thanks

  • @cafe-con-leche
    @cafe-con-leche 2 ปีที่แล้ว

    Thank you so much! but I have no idea why map-merge function doesn't work 😢

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

    I couldn't get this to work for backgrounds or text but it did work for buttons e.g. btn-altdark was purple but the other classes e.g. bg-altdark and text-altdark didn't have any styling in dev tools. I've checked my scss against yours. Not sure what is wrong. Any ideas?

    • @dhawwal
      @dhawwal 3 ปีที่แล้ว +1

      Same for me as well "altlight" and "altdark" isn't working.

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

    How did you do the first import of the video

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

    How do you manage and compile Sass on live web server/hosting?

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

    can any on help me in sass integration iam not able to change the color plz help me out

  • @mlungost
    @mlungost 2 หลายเดือนก่อน

    genius!

  • @MatheusSilva-qm3ph
    @MatheusSilva-qm3ph 3 ปีที่แล้ว

    Very job...

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

    Any changes in bs4 and bs5?

  • @shohagkhan3677
    @shohagkhan3677 3 ปีที่แล้ว

    Please make tutorial on crud operation with rtk createAsyncThunk and rtk-query. That will be very much helpful for lots of developer.

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

    i have got a big problem. i was using the cdn links like you did in this video, but after downloading the bundle, the image still doesn't show up when the internet is off. Same goes with the icons, they seldom showup. Anybody having any idea what to do other than using cdn?

  • @anoop.225
    @anoop.225 2 ปีที่แล้ว

    How to add custom color for button :hover style similar method ?

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

    6:01 - It is just what I was searching for.... WHY I need to write the variable ABOVE the import line. I was writing it in other way and didnt get any results!

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

    Thanks for all tutorials
    I am stuck here at compile and output the main.scss file. can you please reexplain how to configire the livesass json settings ? I can t get the files in the specified output folder..
    Thanks in advance

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

    Thanks, But how can I custom directions ? rtl ?

  • @beesechurger7667
    @beesechurger7667 3 หลายเดือนก่อน

    does this also work with Templated Bootsrap? the one that are Free? and should i use this method with the same Bootstrap Version?,
    in my case im trying to use this 1 template with Different Version of Bootstrap, its like 4.0 something and the current latest ver is around 5.2 bootstrap, also the template has alrd css folder with their own variable q.q

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

    Using this method, how do I add the bootstrap javascripts on my working files?

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

    This is a great course, but in my case the main.min.css contains only: --bs-altdark: #color; but no e.g. bg-altdark oder text-altdark. Don't no why?

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

    god job

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

    Mine isn't compiling into one file.. many files are being compiles in my css folder after watching the scss file?

  • @marcosaugustorodrigueszano5945
    @marcosaugustorodrigueszano5945 23 วันที่ผ่านมา

    where can I change the number of columns in the grid?

  • @MultiMemich
    @MultiMemich 3 ปีที่แล้ว

    How long is the series gonna be?

  • @kiranfrancis7397
    @kiranfrancis7397 3 ปีที่แล้ว

    Sir please do video about carousel in the BS5

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

    When I click "Watch Sass" it doesn't compile. It gets stuck on "Working on it..." and it gave the following error in the runtime status: glob pattern string required

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

    thanks

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

      You're welcome! :)

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

    Hi there, i'm having the same issue as some of the other people here. The code doesn't change backgrounds when i write "bg-altdark" or "bg-altlight", i've watched the video a few times to see if i'm making any mistakes but i've written everything like you did, it works on buttons, but not on backgrounds or icons, any idea why is this and what should we do to fix it? Thanks!

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

      I had the same issue, i tried this and it worked, there's probably a better way to do it though but i dont know (paste this in the sass file after you merged the theme colors with your custom ones)
      $theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
      $utilities-colors: map-merge(
      $theme-colors-rgb,
      (
      "black": to-rgb($black),
      "white": to-rgb($white),
      "body": to-rgb($body-color)
      )
      );
      $utilities-text-colors: map-loop($utilities-colors, rgba-css-var, "$key", "text");
      $utilities-bg-colors: map-loop($utilities-colors, rgba-css-var, "$key", "bg");

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

      @@vali8924 how did you find the solution to this problem? I would like to read the source, and by the way it helped me thanks to you