• Link to X
  • Link to Facebook
  • Link to Youtube
  • Link to Mail
Tel +44 01205 205500 | Email | Get Remote Support [Macs] | Client Portal | Knowledgebase
Pioneer Software
  • Home
  • About
  • ClinicOffice
    • Information
      • ClinicOffice Overview
      • Testimonials
      • The History of ClinicOffice
      • ClinicOffice Demo
      • Hardware Requirements
      • Information for Apple Users
      • General Data Protection Regulation
      • Integrations / Features
        • ClinicOffice AI
        • AI Receptionist
        • ClinicOffice E-Docs
        • ClinicOffice Telehealth
        • Two-Factor Authentication
        • Payment Integration
        • GoCardless Integration
        • Loqate Integration
        • SMS Text Messages
        • VOIP Telephone Integration
        • ClinicOffice API
    • How to Buy
      • ClinicOffice Pricing
      • Cloud Hosted vs Local Install
      • Online Services
        • Patient Portal
        • Online Booking
        • ClinicOffice Web
    • Support
      • ClinicOffice Support
      • Knowledgebase Articles
      • ClinicOffice Support Plan
      • Training
      • Program Updates
      • ClinicOffice Hosted Launcher
      • ClinicOffice Connect
  • AI NEW
    • ClinicOffice AI
    • AI Receptionist
  • Support
    • ClinicOffice Support
    • Knowledgebase Articles
    • ClinicOffice Support Plan
    • Training
    • Program Updates
  • Contact
  • Menu Menu
Knowledgebase Articles
You are here: Home1 / Knowledgebase2 / Knowledgebase Articles3 / Customization & Layouts4 / iFrame Colour Change

iFrame Colour Change

Customization & Layouts
//———————————————————————-
//- Code to change style of the iframe patient booking – black, white, grey, green, blue, purple
//———————————————————————-
const custom_styles = `<style>
:root {
–btn-link: #000;
–btn-primary: #000;
–btn-primary-bg: #fff;
–btn-primary-border: #fff;
–btn-select: #fff;
–btn-select-bg: #000;
–btn-select-border: #000;
–btn-back: #fff;
–btn-back-bg: #cecece;
–btn-back-border: #cecece;
–select-border-hover: #7dda58;
–select-appointment-slot: #7dda58;
–badge-am: #fff;
–badge-am-bg: #007bff;
–badge-pm: #fff;
–badge-pm-bg: #060270;
–wizard-active: #cc6ce7;
–wizard-done: #e4b5f1;
}
a, a:hover {
color: var(–btn-link);
}
.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary.disabled, .btn-primary:disabled,
.bootbox-accept, .bootbox-accept:hover, .bootbox-accept:focus {
color: var(–btn-primary) !important;
background-color: var(–btn-primary-bg) !important;
border-color: var(–btn-primary-border) !important;
    box-shadow: 0 0 0 0 !important;
}
.btn-success, .btn-success:hover, .btn-success:focus, .btn-success.focus, .btn-success.disabled, .btn-success:disabled {
color: var(–btn-select) !important;
background-color: var(–btn-select-bg) !important;
border-color: var(–btn-select-border) !important;
    box-shadow: 0 0 0 0 !important;
}
.btn-outline-secondary, .btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary.focus, .btn-outline-secondary.disabled, .btn-outline-secondary:disabled {
color: var(–btn-back) !important;
background-color: var(–btn-back-bg) !important;
border-color: var(–btn-back-border) !important;
    box-shadow: 0 0 0 0 !important;
}
.ps-fc-badge-am {
color: var(–badge-am) !important;
background-color: var(–badge-am-bg) !important;
}
.ps-fc-badge-pm {
color: var(–badge-pm) !important;
background-color: var(–badge-pm-bg) !important;
}
.ps-card-select:hover {
    border-color: var(–select-border-hover) !important;
}
.stylish-table tbody tr:hover, .stylish-table tbody tr.active {
border-left-color: var(–select-appointment-slot) !important;
}
</style>`;
// Add styles to the page
document.head.insertAdjacentHTML(“beforeend”, custom_styles);
const wizActive = getComputedStyle(document.documentElement)
.getPropertyValue(“–wizard-active”)
.trim();
const wizDone = getComputedStyle(document.documentElement)
.getPropertyValue(“–wizard-done”)
.trim();
document.documentElement.style.setProperty(“–sw-anchor-active-primary-color”, wizActive);
document.documentElement.style.setProperty(“–sw-anchor-done-primary-color”, wizDone);
SettingWhat it changesWhere you will see it
–btn-link
Link text colourAny clickable text links
–btn-primary
Text colour on main buttonsMain buttons such as Continue / Confirm
–btn-primary-bg
Background colour of main buttonsMain buttons
–btn-primary-border
Border colour of main buttons
Around main buttons
–btn-select
Text colour on selection buttons
Select / chosen option buttons
–btn-select-bg
Background colour of selection buttons
Appointment type / practitioner selection buttons
–btn-select-border
Border colour of selection buttons
Around selection buttons
–btn-back
Text colour on back buttons
Back / Previous buttons
–btn-back-bg
Background colour of back buttons
Back / Previous buttons
–btn-back-border
Border colour of back buttons
Around Back / Previous buttons
–select-border-hover
Border colour when hovering over a selectable card
Appointment type or practitioner cards
–select-appointment-slot
Highlight colour for appointment slots
Date/time appointment slot list
–badge-am
Text colour for AM badge
Date/time screen
–badge-am-bg
Background colour for AM badge
Date/time screen
–badge-pm
Text colour for PM badge
Date/time screen
–badge-pm-bg
Background colour for PM badge
Date/time screen
–wizard-active
Colour of the current step
Progress bar / wizard steps at the top
–wizard-done
Colour of completed steps
Progress bar / wizard steps at the top
https://pioneersoftware.co.uk/wp-content/uploads/2022/02/logo_material_original_900_crop_all_objects_transparent_350x51-300x44.png 0 0 Pioneer Software https://pioneersoftware.co.uk/wp-content/uploads/2022/02/logo_material_original_900_crop_all_objects_transparent_350x51-300x44.png Pioneer Software2026-05-19 12:44:532026-05-26 10:20:40iFrame Colour Change

Search Articles

Search Search

Latest Articles

  • iFrame Colour ChangeMay 19, 2026 - 12:44 pm
© Copyright Pioneer Software Ltd | Privacy Policy | Terms of Service
  • Link to X
  • Link to Facebook
  • Link to Youtube
  • Link to Mail
Scroll to top Scroll to top Scroll to top
Remote Support

Please click your button and run PSRemoteSupport.