Utility classes
Utility classes — formerly helper classes to speed up your development process.
For faster mobile-friendly and responsive development, Bootstrap includes dozens of utility classes for showing, hiding, aligning, and spacing content.
Bootstrap utilitiesWe have added new utility classes in theme to speed up your development process. Checkout the list below:
Utility class name | Description | Available options |
---|---|---|
.text-primary-hover | Set text primary color on hover to all anchor tags under .text-primary-hover container. |
- |
.font-base | Apply font family base | - |
.font-heading | Apply font family heading | - |
.grayscale | To apply grayscale filter on image or any section. On hover it will change back to normal | - |
.rotate-# | rotate elements by using this class | .rotate-30 |
.opacity-# | Set opacity to elements by using this class | .opacity-1 |
.z-index-# | Set z-index | .z-index-9 |
.z-index-n9 | Set z-index in negative | .z-index-n9 |
.fill-### | Fill utilities. You can also set different colors in elements |
.fill-primary |
.h-### | Height utilities. You can also set different height in different Screen sizes by combining with Screen sizes classes h-md-400 |
.h-300 |
.rounded-top-right | Set border radius in different corners of element |
.rounded-top-right-0 |
.rounded-top-left | Set border radius in different corners of element |
.rounded-top-left-0 |
.rounded-bottom-right | Set border radius in different corners of element |
.rounded-bottom-right-0
|
.rounded-bottom-left | Set border radius in different corners of element |
.rounded-bottom-left-0
|
.box-sm, md, lg, and xl | Set box with fixed height and width |
.box-sm |