'How to set the header colour of bootstrap vue date form picker?

I am using bootstrapvue's form date picker. How do I achieve the following?

  1. Change the header colour, ie where the Month is
  2. Change the day colour while hovered over? Currently it's grey by default
  3. Currently you can change the selected date's colour via the property selected-variant but it only accepts:
'secondary', 'success', 'danger', 'warning', 'info'

Is there a way I can pass in a hex value?

I've been looking at the docs, but wasn't able to find information for above: https://bootstrap-vue.org/docs/components/form-datepicker



Solution 1:[1]

Here you go...

  1. Change the header colour, ie where the Month is
.b-calendar .b-calendar-grid-caption {
    background-color: yellow;
}
  1. Change the day colour while hovered over? Currently it's grey by default
span.btn.border-0.rounded-circle.text-nowrap.btn-outline-light.text-dark.font-weight-bold:hover {
    background-color: yellow;
}
  1. Currently you can change the selected date's colour via the property selected-variant but it only accepts: 'secondary', 'success', 'danger', 'warning', 'info'
[aria-selected="true"] > span {
    background-color: yellow !important;
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Cervus camelopardalis