Skip to content

How to change colours? #602

Answered by niloc7
niloc7 asked this question in Q&A
Discussion options

You must be logged in to vote

For anyone wanting to customize the design in the future, you can do this by styling it right before your calendar div.

Not the most ideal.. but, so far the best I can come up with:


<style>
   .air-datepicker {
  --adp-font-family: -apple-system, BlinkMacSystemFont, "sans-serif";
  --adp-font-size: 14px;
  --adp-width: 246px; // Day cell width will be equal to 34px
  --adp-z-index: 100;
  --adp-padding: 4px;
  --adp-grid-areas:
    'nav'
    'body'
    'timepicker'
    'buttons';

  --adp-transition-duration: .3s;
  --adp-transition-ease: ease-out;
  --adp-transition-offset: 8px;

  --adp-background-color: #fff;
  --adp-background-color-hover: #f0f0f0;
  --adp-background-color-active: #e…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by niloc7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant