Chapter 6: Understanding and Using the Bootstrap 5 Utility API
In this chapter, we will learn how to use the utility API to generate and add new simple and complex utilities as well as overwrite, modify, and remove existing utilities.
It’s useful to know how to use the utility API when you need to make small adjustments to your components or general layout, for example, to control the spacing or sizing of elements, add contextual color, change the border, or create a layout based on flexbox.
In this chapter, we’re going to cover the following topics:
- About the utility API
- Understanding the utility API syntax
- Using the utility API
For the two last sections, there will be plenty of code examples to help understand the powerful utility API.