Customization

Setting variables

To customize the calendar import the default Sass variables, set your variables and then import the rest of the styles.
Check all the available variables below

//  Import the default variables
@import "~v-calendar-scheduler/scss/variables";

//  Set your variables
$v-cal-event-bg: salmon; //  Event background color
$v-cal-event-border-radius: 10px; //  Events border radius (all 4 corners)

//  Import the rest
@import "~v-calendar-scheduler/scss/main";

Result:

BeforeAfter
BeforeAfter

Available variables

Basic

VariableDescriptionDefault
$v-cal-font-colorSets the text color for the Title, month days, and week and day times.#4D4F5C
$v-cal-title-font-sizeSets the Title font size.18px
$v-cal-body-bgSets the background color for the calendar body (Including the buttons at the top.$white
$v-cal-body-shadowSets the box shadow for the calendar body (Including the buttons at the top.0 2px 6px rgba(0,0,0,.04)
$v-cal-content-border-colorSets the border of the calendar main section. Applies to all views.#EAF0F4

Calendar head

VariableDescriptionDefault
$v-cal-days-head-bgSets the background of the calendar head, where the days are shown.#F5F6FA
$v-cal-days-head-border-colorSets the border color of the calendar head, bottom border only.#EAF0F4
$v-cal-days-head-colorSets the text color of the calendar head (days names).#A3A6B4
$v-cal-days-head-font-sizeSets the font size of the calendar head (days names)..75rem
$v-cal-days-head-font-weightSets the font weight of the calendar head (days names).bold

Days - All views

VariableDescriptionDefault
$v-cal-day-bgSets the background color for the days.$white
$v-cal-day-border-colorSets the border color for the days (month) and the time blocks (week, day).#EAF0F4
$v-cal-day-diff-month-colorSets the background color for the days that belong to a month different from the active one.rgba(67, 66, 93, .3)
$v-cal-day-today-bgSets the background color today.#F5F6FA
$v-cal-day-disabled-bgSets the background color for disabled days when using min-date or max-date. Learn more.#f0f0f0
$v-cal-day-disabled-colorSets the text color for disabled days when using min-date or max-date. Learn more.#b0b0b0

Days - Month view only

VariableDescriptionDefault
$v-cal-day-number-font-sizeSets the font size for the dates..75rem
$v-cal-day-number-paddingSets the padding for the dates. (Just the numbers)10px
$v-cal-day-month-heightMinimum height for the days.140px
$v-cal-day-month-hover-bgDay background color on hover.#fcfcfc

Times - Week and day views only

VariableDescriptionDefault
$v-cal-time-block-bg'Time block' background color.transparent
$v-cal-time-block-hover-bg'Time block' background color on hover.#fcfcfc

Times column - Week and day views only

VariableDescriptionDefault
$v-cal-times-bgTimes column background color.$white
$v-cal-times-font-sizeTimes column font size..8125rem
$v-cal-times-border-colorTimes column border color.#EAF0F4

Events

VariableDescriptionDefault
$v-cal-event-bgEvent background color.#3B86FF
$v-cal-event-colorEvent text color.$white
$v-cal-event-border-radiusEvents border radius (all 4 corners).4px

Time Marker

VariableDescriptionDefault
$v-cal-time-marker-colorTime marker color (week and day views).#3B86FF

Buttons

VariableDescriptionDefault
$v-cal-button-bgButtons background color.$white
$v-cal-button-shadowButtons shadow.0 2px 3px rgba(0,0,0,.05)
$v-cal-button-paddingButtons padding.8px 18px
$v-cal-button-border-colorButtons border color.#D7DAE2
$v-cal-button-border-radiusButtons border radius.4px
$v-cal-button-active-bgButton is-active background color.$white
$v-cal-button-active-colorButton is-active text color.#3B86FF
$v-cal-button-hover-bgButton hover background color.#fcfcfc
$v-cal-button-hover-colorButton hover text color.#3B86FF
$v-cal-button-disabled-bgButton :disabled background color.#f0f0f0
$v-cal-button-disabled-colorButton :disabled text color.#d0d0d0
$v-cal-button-disabled-cursorButton :disabled cursor.not-allowed

Dialog

VariableDescriptionDefault
$v-cal-dialog-bgDialog background (overlay).rgba(0,0,0,.3)
$v-cal-dialog-card-bgDialog card background color.$white
$v-cal-dialog-card-max-widthDialog card maximum width.500px
$v-cal-dialog-shadowDialog card shadow.0 0 6px rgba(0,0,0,.4)
$v-cal-dialog-header-paddingDialog header padding.20px
$v-cal-dialog-header-border-colorDialog header border-color (bottom only).#EAF0F4
$v-cal-dialog-title-font-sizeDialog title font size.13px
$v-cal-dialog-close-widthDialog close button width.18px
$v-cal-dialog-close-colorDialog close button color.#BCBCCB
$v-cal-dialog-body-paddingDialog body padding.20px
$v-cal-field-border-radiusDialog field border radius.4px
$v-cal-field-paddingDialog field padding.10px 12px
$v-cal-field-idle-border-colorDialog idle field border color.#E8E9EC
$v-cal-field-hover-border-colorDialog :hover field border color.#808495
$v-cal-field-active-border-colorDialog :active, :focus field border color.#3B86FF
$v-cal-dialog-footer-paddingDialog footer padding.20px
$v-cal-dialog-footer-border-colorDialog footer border color (top only).#EAF0F4