View as Markdown

Styling

The booking widget can easily be styled using CSS variables. Put the new variable values in your own CSS file, or in a style tag in the head section of your page.

Example code

The following example sets the primary and secondary color in a style tag in the head section. The colors are set on a class, cliento-custom-theme. Add that class to the body tag to apply the theme.

<head>
  <style>
    .cliento-custom-theme {
      --cb-color-primary: #5f56fc;
      --cb-color-secondary: #51136b;
    }
  </style>
</head>
<body class="cliento-custom-theme">
  ...
</body>

Color variables

The variables in the table below can be used to control the colors in the booking widget.

Variable nameDefault value
--cb-color-primary#5f56fc
--cb-color-primary-hover#4b42e8
--cb-color-secondary#51136b
--cb-color-neutral-10#0f0e28
--cb-color-neutral-20#484765
--cb-color-neutral-40#746f88
--cb-color-neutral-50#908faf
--cb-color-neutral-60#c8c7d6
--cb-color-neutral-70#ddddea
--cb-color-neutral-80#f3f2f9
--cb-color-neutral-90#f8f8fc
--cb-color-neutral-100#fff
--cb-color-success-10#0d7436
--cb-color-success-30#4db376
--cb-color-success-40#6cdf9f
--cb-color-success-50#8ae8af
--cb-color-success-100#f2fcf6
--cb-color-error-40#ff4d62
--cb-color-error-100#fff2f4
--cb-color-warning-40#e39600
--cb-color-warning-100#fff4d9
--cb-textvar(--cb-color-neutral-20)
--cb-text-mutedvar(--cb-color-neutral-50)
--cb-input-focus#5f56fc40
--cb-input-focus-bordervar(--cb-color-neutral-60)
--cb-alt-button-bgvar(--cb-color-success-100)
--cb-alt-button-bg-hovervar(--cb-color-success-50)
--cb-alt-button-bg-activevar(--cb-color-success-40)
--cb-alt-button-bordervar(--cb-color-success-40)
--cb-alt-button-labelvar(--cb-color-success-30)
--cb-alt-button-label-emphasisedvar(--cb-color-success-10)

Sizes and spacing

The variables in the table below can be used to control font sizes and spacing in the booking widget.

Variable nameDefault value
--cb-font-size-heading-large26px
--cb-font-size-heading-medium22px
--cb-font-size-heading-small20px
--cb-font-size-large18px
--cb-font-size-medium16px
--cb-font-size-small14px
--cb-font-size-tiny13px
--cb-border-radius-medium16px
--cb-border-radius-small8px
--cb-gutters-desktop48px
--cb-gutters-tablet24px
--cb-gutters-mobile12px
--cb-spacing-xlarge32px
--cb-spacing-large24px
--cb-spacing-medium16px
--cb-spacing-small8px
--cb-icon-xlarge32px
--cb-icon-large28px
--cb-icon-medium20px
--cb-icon-small16px
--cb-aside-width360px
--cb-nav-item-size22px