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

1

Create CSS file

Create linkage-variables.css with your brand color
2

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 VariablePurposeExample
--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

Primary Buttons

VariablePurposeDefault
--mirai-ui-button-backgroundButton background#2574A9
--mirai-ui-button-background-activeBackground on hover#174868
--mirai-ui-button-colorButton text color#FFFFFF
--mirai-ui-button-color-activeText color on hover#FFFFFF

Secondary Buttons

VariablePurposeDefault
--mirai-ui-button-secondary-background-activeBackground on hover/active#EDF3F8
--mirai-ui-button-secondary-colorButton text color#2574A9
--mirai-ui-button-secondary-color-activeText color on hover/active#174868

Complete Example

Additional Variables

VariablePurposeDefault
--mirai-ui-border-radiusBorder radius for UI elements4px
--mirai-ui-modal-layerZ-index for modal windows10000

💬 Need help with styling? Contact us at support@hotellinkage.com