Bootstrap class: .custom-checkbox

Do not have time to learn all the Bootstrap classes?

Try drag & drop Bootstrap builder

<div class="custom-control custom-checkbox">
  <input type="checkbox" class="custom-control-input" id="customCheck1">
  <label class="custom-control-label" for="customCheck1">Check this custom checkbox</label>
</div>

Preview

Sass source

/* _custom-forms.scss:98 */
.custom-checkbox {
  .custom-control-label::before {
    @include border-radius($custom-checkbox-indicator-border-radius);
  }

  .custom-control-input:checked ~ .custom-control-label {
    &::before {
      @include gradient-bg($custom-control-indicator-checked-bg);
    }
    &::after {
      background-image: $custom-checkbox-indicator-icon-checked;
    }
  }

  .custom-control-input:indeterminate ~ .custom-control-label {
    &::before {
      @include gradient-bg($custom-checkbox-indicator-indeterminate-bg);
      @include box-shadow($custom-checkbox-indicator-indeterminate-box-shadow);
    }
    &::after {
      background-image: $custom-checkbox-indicator-icon-indeterminate;
    }
  }

  .custom-control-input:disabled {
    &:checked ~ .custom-control-label::before {
      background-color: $custom-control-indicator-checked-disabled-bg;
    }
    &:indeterminate ~ .custom-control-label::before {
      background-color: $custom-control-indicator-checked-disabled-bg;
    }
  }
}

Uses variables

Code copied to the clipboard.

Copying failed

/* _custom-forms.scss:98 */
$custom-checkbox-indicator-border-radius
$custom-control-indicator-checked-bg
$custom-checkbox-indicator-icon-checked
$custom-checkbox-indicator-indeterminate-bg
$custom-checkbox-indicator-indeterminate-box-shadow
$custom-checkbox-indicator-icon-indeterminate
$custom-control-indicator-checked-disabled-bg
$custom-control-indicator-checked-disabled-bg

More in Bootstrap Custom Forms