# Utils

Utils are re-usable class names that can give an element desired styling.

See the full list of utils on GitHub (opens new window).

# Adding New Utils

Whenever you’re finding that you’re using a style frequently setting the same properties on an element, consider abstracting it into a utility.

# Rules of thumb

  • Utilities should be reserved for frequently used things. If you only need it once or twice, it probably doesn’t need to be a utility
  • Dont abuse utils. We dont want hundreds of utilities for margins or other trivial things. You will still need to write css in your application.

# Typography

Each of the following applies font-family, font-size, font-weight and line-height.

# Font Styles

Use these classes to adjust the font-weight, style or text-decoration of your text.

# Line Height

Use these classes to adjust the line-height of your text.

# Scrollbars

Use .ci-scrollbars to give an element styled scrollbars.

# Usage

Importing the utils.scss file should be done with its alias @utils.scss, for example when calling it from a component's style section:

<style lang="scss">
@import '@utils.scss'

// rest of file
</style>
Last Updated: 3/24/2023, 11:26:55 AM