Using the Utility API

The Utility API lets you create custom utility classes using Bootstrap's configuration.

Example

// bootstrap.config.js
module.exports = {
  utilities: {
    'rotate': [
      ['1', 'rotate(1deg)'],
      ['45', 'rotate(45deg)']
    ]
  }
}

Compile with Bootstrap's build tools to apply custom utilities.

← PrevNext →