Using Bootstrap's Sass mixins to create custom buttons
To create custom buttons, we will use Bootstrap's Sass mixins in this recipe.
To see the final result, open the chapter4completed
code's app
folder, and run the git bash
on it. Follow it up with the harp server
command, and navigate to localhost:9000
in your browser to see the result we will achieve in this recipe.
Upon opening the web page as explained in the preceding paragraph, you should see six fully functional custom buttons at the bottom of the page.
Getting ready
To get started with the custom buttons in Bootstrap 4, first visit the official documentation on the buttons component in Bootstrap 4, available at https://v4-alpha.getbootstrap.com/components/buttons/.
Default buttons are showcased at https://v4-alpha.getbootstrap.com/components/buttons/#examples. Bootstrap 4 also introduces outline buttons. To see them in practice, navigate to https://v4-alpha.getbootstrap.com/components/buttons/#outline-buttons.
How to do it…
- Open the...