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 color2
Include before script
Add the CSS file before the Linkage Direct script
Basic Example
Main Variables
Corporate Color
--corporative-color
Type: Color hex value | Default:
#2574A9The core customization variable. Set this and the entire color palette adapts automatically.--corporative-color, these colors are automatically generated:
| Generated Variable | Purpose | Example |
|---|---|---|
--mirai-ui-accent | Accent color (same as corporate) | #2574A9 |
--mirai-ui-accent-dark | Darker shade for hover states | #174868 |
--mirai-ui-accent-light | Lighter shade for backgrounds | #669EC3 |
--mirai-ui-accent-border | Border color variations | #A8C7DD |
--mirai-ui-accent-background | Background tint variations | #EDF3F8 |
Component Styling
- Finder Component
- Session Component
Primary Buttons
| Variable | Purpose | Default |
|---|---|---|
--mirai-ui-button-background | Button background | #2574A9 |
--mirai-ui-button-background-active | Background on hover | #174868 |
--mirai-ui-button-color | Button text color | #FFFFFF |
--mirai-ui-button-color-active | Text color on hover | #FFFFFF |
Secondary Buttons
| Variable | Purpose | Default |
|---|---|---|
--mirai-ui-button-secondary-background-active | Background on hover/active | #EDF3F8 |
--mirai-ui-button-secondary-color | Button text color | #2574A9 |
--mirai-ui-button-secondary-color-active | Text color on hover/active | #174868 |
Complete Example
View full CSS template
View full CSS template
Additional Variables
| Variable | Purpose | Default |
|---|---|---|
--mirai-ui-border-radius | Border radius for UI elements | 4px |
--mirai-ui-modal-layer | Z-index for modal windows | 10000 |
💬 Need help with styling? Contact us at [email protected]