Variables
Customize your booking engine colors and styling with CSS variables. For most cases, you only need to define one color variable and everything else is generated automatically.
⚡ Quick setup: Define --corporative-color and you’re done. All other colors adapt automatically.
Quick Start
Create CSS file
Create linkage-variables.css with your brand color
Include before script
Add the CSS file before the Linkage Direct script
Basic Example
/* linkage-variables.css */
:root {
--corporative-color : #BF993F ; /* Your brand's primary color */
}
<!-- Include in your HTML -->
< link rel = "stylesheet" href = "path/to/linkage-variables.css" type = "text/css" />
Main Variables
Corporate Color
--corporative-color Type: Color hex value | Default: #2574A9The core customization variable. Set this and the entire color palette adapts automatically.
When you set --corporative-color, these colors are automatically generated:
Generated Variable Purpose Example --mirai-ui-accentAccent color (same as corporate) #2574A9--mirai-ui-accent-darkDarker shade for hover states #174868--mirai-ui-accent-lightLighter shade for backgrounds #669EC3--mirai-ui-accent-borderBorder color variations #A8C7DD--mirai-ui-accent-backgroundBackground tint variations #EDF3F8
If you define --corporative-color, the generated palette values cannot be modified individually. This ensures visual consistency and accessibility.
Component Styling
Complete Example
/* linkage-variables.css */
:root {
/* Primary Brand Color */
--corporative-color : #BF993F ;
/* Primary Button Customization */
--mirai-ui-button-background : #BF993F ;
--mirai-ui-button-background-active : #174868 ;
--mirai-ui-button-color : #FFFFFF ;
--mirai-ui-button-color-active : #FFFFFF ;
/* Secondary Button Customization */
--mirai-ui-button-secondary-color : #BF993F ;
--mirai-ui-button-secondary-color-active : #174868 ;
--mirai-ui-button-secondary-background-active : #EDF3F8 ;
/* Finder Component */
--mirai-finder-background : #FFFFFF ;
--mirai-finder-border : #DDDDDD ;
--mirai-finder-border-radius : 4 px ;
--mirai-finder-padding : 8 px ;
--mirai-finder-gap : 8 px ;
/* Finder Button */
--mirai-finder-button-background : #BF993F ;
--mirai-finder-button-background-active : #174868 ;
--mirai-finder-button-color : #FFFFFF ;
--mirai-finder-button-color-active : #FFFFFF ;
--mirai-finder-button-border-radius : 4 px ;
--mirai-finder-button-font-family : "Arial" , sans-serif ;
--mirai-finder-button-font-weight : 500 ;
--mirai-finder-button-font-size : 14 px ;
/* Finder Fields */
--mirai-finder-field-height : 52 px ;
--mirai-finder-field-border-color : #DDDDDD ;
--mirai-finder-field-border-style : solid ;
--mirai-finder-field-border-width : 0 px ;
--mirai-finder-field-border-radius : 4 px ;
--mirai-finder-field-border-active : #BF993F ;
--mirai-finder-field-separator-color : #DDDDDD ;
--mirai-finder-field-icon-color : #333333 ;
/* Session Component */
--mirai-session-color : #333333 ;
--mirai-session-icon-color : #BF993F ;
--mirai-session-color-active : #BF993F ;
--mirai-session-icon-color-active : #174868 ;
/* General UI */
--mirai-ui-border-radius : 4 px ;
--mirai-ui-modal-layer : 10000 ;
}
Additional Variables
Variable Purpose Default --mirai-ui-border-radiusBorder radius for UI elements 4px--mirai-ui-modal-layerZ-index for modal windows 10000