@function fullcalendar-event-bg($background, $opacity: .15) {
  @return rgba($background, $opacity);
}

@mixin fullcalendar-event-variant($background) {
  &.fc-event {
    background: fullcalendar-event-bg($background) !important;
  }

  .fc-event-dot {
    background: fullcalendar-event-bg($background, .4) !important;
  }
}

@mixin fullcalendar-theme($background) {
  .fc-event {
    background: fullcalendar-event-bg($background) !important;
  }

  .fc-event-dot {
    background: fullcalendar-event-bg($background, .4) !important;
  }

  .fc-highlight,
  .fc-bgevent:not(.fc-nonbusiness) {
    background: $background !important;
  }
}

@function fullcalendar-event-bg-dark($background, $opacity: .5) {
  @return rgba($background, $opacity);
}

@mixin fullcalendar-event-dark-variant($background) {
  &.fc-event {
    background: fullcalendar-event-bg-dark($background) !important;
  }

  .fc-event-dot {
    background: fullcalendar-event-bg-dark($background, 1) !important;
  }
}

@mixin fullcalendar-dark-theme($background) {
  .fc-event {
    background: fullcalendar-event-bg-dark($background) !important;
  }

  .fc-event-dot {
    background: fullcalendar-event-bg-dark($background, 1) !important;
  }

  .fc-highlight,
  .fc-bgevent:not(.fc-nonbusiness) {
    background: $background !important;
  }
}
