Integrations

Styling the booking widget with CSS

Change a style with CSS

The color, font and corner settings in Settings → Booking Widget cover the basics. With a few lines of CSS on your own website you can change much more, down to every color, text size, gap, corner and shadow in the widget. This page lists them all. Give it to your web person.

Add this to your website, in the page with the widget or in your site's custom CSS box. Change only the lines you need and delete the rest.

<style>
  body .fullclass-widget {
    --fc-typography-size-base: 1rem;
    --fc-spacing-5: 1.5rem;
    --fc-shadow-small: 0 4px 20px rgba(0, 0, 0, 0.08);
    --fc-shadow-modal: 0 25px 50px rgba(0, 0, 0, 0.25);
    --fc-layout-modal-max: 600px;
  }
</style>
  • Keep body .fullclass-widget as written. It makes your values win over the widget's own, wherever your CSS sits on the page, and it also reaches the booking window, which opens outside your widget's box.
  • Settings win over CSS. The colors, font and corner style saved in Settings → Booking Widget are applied straight onto the widget, so they beat your stylesheet. To let your CSS decide a color instead, empty that color's box in Settings and save. You can also add !important after your value, for example --fc-background-card: #fffbeb !important;. Neither works for a brand, accent or button color saved in Settings, so change those there.
  • Fonts must be loaded first. The widget uses the font you name, but it does not download it. Load it on your page the way you load your site's other fonts.
Check one change at a time. Open your page, right-click the widget and choose Inspect. Your browser shows which variables apply, and you can try values there before you copy them into your site.

Every variable

Each variable has a default. You only set the ones you want to change. Colors take any CSS color, sizes any CSS length.

Brand colors

Your main color. A brand or accent color saved in Settings → Booking Widget always wins over these, even with !important, so change it there. With no brand color saved in Settings, the color you give --fc-brand-primary here colors the whole widget, filled shapes such as today's date included, and a pale one gets a darker shade for text, as a saved one does.

Variable Default What it changes
--fc-brand-primary #7c3aed Links, highlights, today's date, the selected day, calendar chips, active tabs and the loading spinner. Buttons use it too unless you set a button color.
--fc-brand-primary-hover #6d28d9 Links when the pointer is over them.
--fc-brand-primary-light rgba(124, 58, 237, 0.1) Soft tinted backgrounds, such as the pay-at-the-studio icon and the glow around a focused field.

Buttons

Book, Continue, Pay and the other main buttons. Leave these unset and buttons follow your brand color. A button color saved in Settings → Booking Widget always wins over these, even with !important.

Variable Default What it changes
--fc-button-primary Your brand color Button background, and the outline of secondary buttons.
--fc-button-primary-hover Your brand hover color Button background when the pointer is over it.
--fc-button-primary-light Your light brand color The ring around a button reached with the keyboard.
--fc-button-text-color White or near-black, whichever reads better Text on buttons.

Status colors

Messages, seat badges and form errors.

Variable Default What it changes
--fc-color-success #047857 Seats available, finished steps, applied discounts.
--fc-color-success-bg #D1FAE5 Background behind success badges and messages.
--fc-color-warning #92400E Few seats left, booking deadlines, the test mode notice.
--fc-color-warning-bg #FEF3C7 Background behind warnings.
--fc-color-error #991B1B Sold out, field errors and error messages.
--fc-color-error-bg #FEE2E2 Background behind error messages.
--fc-color-error-border #FECACA Border around error boxes.
--fc-color-info #1E40AF Information notices, such as a course that has already started.
--fc-color-info-bg #DBEAFE Background behind information notices.

Backgrounds

Variable Default What it changes
--fc-background-page #F9FAFB Not painted by the embedded widget, which is see-through so your own page shows behind it. Style your own container instead.
--fc-background-section #FFFFFF Panels inside the booking window, such as the step bar, the order summary and the booking reference box.
--fc-background-card #FFFFFF Class cards, the calendar and the footer of the booking window.
--fc-background-input #FFFFFF Form fields and the gift card amount buttons.
--fc-background-input-focus #FFFFFF The field someone is typing in.
--fc-background-modal #FFFFFF The booking window and the cookie banner.
--fc-background-modal-body #fafafa The scrolling middle part of the booking window.
--fc-background-overlay rgba(0, 0, 0, 0.55) The dimmed layer behind the booking window.
--fc-background-subtle #F3F4F6 The list and calendar switch, days outside the current month, and disabled buttons.

Text colors

Variable Default What it changes
--fc-text-color-primary #111827 Headings and main text.
--fc-text-color-secondary #6B7280 Dates, descriptions, labels and other supporting text.
--fc-text-color-muted #69707D Small hints, icons and tax notes.
--fc-text-color-inverse White or near-black, whichever reads better Text on brand-colored fills, such as today's date, calendar chips and active tabs.
--fc-text-color-link Your brand color (darker if too pale to read) Links.
--fc-text-color-link-hover Your brand hover color (darker if too pale to read) Links when the pointer is over them.

Borders

Variable Default What it changes
--fc-border-color-default #E5E7EB Lines around cards, fields and the calendar.
--fc-border-color-subtle #F3F4F6 Light dividers, such as between address suggestions.
--fc-border-color-active Your brand color (darker if too pale to read) The outline of the field someone is typing in.
--fc-border-width-default 1px Thickness of most borders.
--fc-border-width-active 1.5px Thickness of the outline on a focused field.

Corners

The corner style in Settings → Booking Widget sets all of these at once, keeping their proportions.

Variable Default What it changes
--fc-border-radius-sm 4px Calendar chips and small outlines.
--fc-border-radius 6px Buttons, notices and form fields.
--fc-border-radius-md 8px Large buttons, date squares, class photos and the list and calendar switch.
--fc-border-radius-lg 12px Class cards, the calendar and the gift card banner.
--fc-border-radius-xl 16px The booking window.
--fc-border-radius-full 9999px Round items, such as badges, avatars and the loading spinner.

Shadows

Variable Default What it changes
--fc-shadow-small 0 1px 2px rgba(0, 0, 0, 0.05) Class cards and the gift card banner.
--fc-shadow-focus-ring 0 0 0 3px, in your light brand color The glow around a focused field.
--fc-shadow-modal none The booking window.

Fonts

The font in Settings → Booking Widget sets the main font. The font must already be loaded on your page.

Variable Default What it changes
--fc-typography-font-family 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif The font for all text in the widget.
--fc-typography-font-family-mono ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace The booking reference shown after booking.

Text sizes

Variable Default What it changes
--fc-typography-size-xs 0.7rem The smallest text, used for badges, small labels, calendar chips and the month on date squares.
--fc-typography-size-sm 0.875rem Buttons, form labels and most supporting text.
--fc-typography-size-base 0.9375rem Body text.
--fc-typography-size-md 1rem Large buttons, class names in the booking window, the booking reference.
--fc-typography-size-lg 1.125rem Class names on cards, prices, the calendar month and the booking window title.
--fc-typography-size-xl 1.25rem The order total and the close button.
--fc-typography-size-2xl 1.5rem The schedule heading and the day number on date squares.
--fc-typography-size-3xl 1.875rem The icons on the empty and error screens.

Text weight, line height and letter spacing

Variable Default What it changes
--fc-typography-weight-normal 400 Regular text, such as price details.
--fc-typography-weight-medium 500 Calendar dates, form errors and small labels.
--fc-typography-weight-semibold 600 Buttons, form labels and tabs.
--fc-typography-weight-bold 700 Headings and today's date.
--fc-typography-line-height-tight 1.25 Line height of headings and class names.
--fc-typography-line-height-normal 1.5 Line height of body text.
--fc-typography-line-height-relaxed 1.625 Line height of descriptions, notices and waivers.
--fc-typography-letter-spacing-wide 0.025em Small capital labels, such as the month, seat badges and step names.

Spacing

One scale for every gap and padding. Change a step and everything built on it moves together.

Variable Default What it changes
--fc-spacing-1 0.25rem The tightest gaps, such as between an icon and its text.
--fc-spacing-2 0.5rem Small gaps inside buttons, tabs and calendar cells.
--fc-spacing-3 0.75rem Gaps between items in a list or form.
--fc-spacing-4 1rem Standard padding inside notices, fields and the calendar.
--fc-spacing-5 1.25rem Padding inside class cards and buttons, and around the booking window.
--fc-spacing-6 1.5rem Larger padding inside cards and the booking window header, and between sections.
--fc-spacing-8 2rem Space above the success message and the Load more button.
--fc-spacing-10 2.5rem Space below section headings.
--fc-spacing-12 3rem Space above and below a whole section.
--fc-spacing-16 4rem Space around the loading, empty and error screens.

Widths and sizes

Variable Default What it changes
--fc-layout-container-max 1080px The widest the schedule gets.
--fc-layout-modal-max 520px The widest the booking window gets.
--fc-layout-date-width 64px Width of the date squares and class photos on cards.
--fc-layout-date-height 68px Height of the date squares and class photos on cards.

Date squares

The square with the month and day on each class card. The gift card banner icon and the course icon use it too.

Variable Default What it changes
--fc-date-block-bg #f3f4f6 Background of the date squares.
--fc-date-block-text Your main text color Month, day and icon color on the date squares.

Animation

Visitors who ask their device for less motion get none, whatever you set here.

Variable Default What it changes
--fc-motion-fast 150ms ease Hover changes on buttons, tabs and calendar days.
--fc-motion-base 200ms ease The booking window and photo viewer fading in.

Stacking order

Raise these if something on your page, such as a sticky menu, covers the booking window.

Variable Default What it changes
--fc-z-index-modal 9999 The booking window and the cookie banner.

Small details

Variable Default What it changes
--fc-private-opacity 0.65 How faded private classes look in the schedule.
--fc-private-filter grayscale(60%) The filter applied to private classes in the schedule.
--fc-marketing-checkbox-size 18px Size of the email sign-up checkbox.
--fc-marketing-checked-bg Your brand color Fill of the email sign-up checkbox when ticked.
--fc-marketing-check-color White or near-black, whichever reads better The tick inside the email sign-up checkbox.

Class names to target

When a variable is not enough, style the parts directly. These are the class names worth using. Start every rule with body so it wins, for example body .fc-event-title { font-family: "Lora", serif; }. Other class names inside the widget can change without notice.

Class What it is
.fullclass-widget Wraps the schedule, and separately the booking window, the photo viewer and the cookie banner. Put your variables here.
.fc-container The schedule's main column.
.fc-schedule-title The heading above the schedule.
.fc-category-tab A category tab. The selected one also has .fc-category-tab--active.
.fc-view-tab The List and Calendar switch. The selected one also has .fc-view-tab--active.
.fc-calendar The month calendar. Each day is a .fc-calendar-cell, and each class in it a .fc-calendar-chip.
.fc-event-card One class or course in the list. Private classes also have .fc-event-card--private.
.fc-event-date-block The date square on a card, with .fc-event-month and .fc-event-day inside.
.fc-event-thumb The class photo on a card.
.fc-event-title The class name.
.fc-event-price The price on a card.
.fc-event-action The price and Book button on a card. On a phone they move under the class name, with a line above them.
.fc-seats-badge The seats badge. It also has available, low or sold-out.
.fc-btn Every button. Main buttons also have .fc-btn-primary, others .fc-btn-secondary.
.fc-btn-book The Book button on each card.
.fc-giftcard-banner The gift card banner above the schedule.
.fc-modal-overlay The dimmed layer behind the booking window.
.fc-modal-dialog The booking window itself, with .fc-modal-header, .fc-modal-body and .fc-modal-footer inside.
.fc-step-indicator The step bar in the booking window. Each step is a .fc-step-item.
.fc-event-summary The date, time and place at the top of the booking window. For a course it is .fc-course-summary, with the list of sessions.
.fc-step-section A box in the booking window, such as the number of spots or a gift card amount.
.fc-desc-card The class description in the booking window, and the list of what to bring.
.fc-form-label A form label.
.fc-form-input A form field.
.fc-form-error The error message under a field.
.fc-review-section The order summary before paying.
.fc-success-header The top of the confirmation screen after booking.
.fc-booking-ref-value The booking reference on the confirmation screen.
.fc-events-empty The screen shown when there are no classes. The loading and error screens are .fc-events-loading and .fc-events-error.
.fc-consent-banner The cookie banner, when your tracking settings need one.

Start from nothing (bare mode)

Bare mode turns off all of the widget's own CSS. You get the same booking steps and the same class names, unstyled, and your designer writes every rule. None of the variables above do anything in bare mode.

FullClassBooking.init({
  apiKey: "pk_your_public_api_key",
  container: "#booking-widget",
  injectStyles: false
});

With the two-line embed, add data-fullclass-bare="true" to the widget's <div> instead.

You style the booking window too. In bare mode the booking window has no layout of its own. It has no overlay and no position, and nothing hides it when it is closed. It opens by gaining the class fc-open, so your CSS has to hide .fc-modal-overlay until then and lay it out once it has that class.

What you can't change

The card number field is drawn by Stripe or Square inside their own secure frame, so your CSS cannot reach the digits in it, only the space around it. With Square the field picks up your brand, text, border, card background and error colors. The widget's wording is not CSS either. Change it with the strings option in init, covered on API and widget.

Names the widget sets itself

You will see these in your browser's inspector. The widget works them out from the variables above, so setting them yourself does not work reliably. Set the variable in the second column instead.

Name Set this instead
--fc-accent --fc-brand-primary
--fc-accent-hover --fc-brand-primary-hover
--fc-accent-light --fc-brand-primary-light
--fc-accent-fill --fc-brand-primary
--fc-button --fc-button-primary
--fc-button-hover --fc-button-primary-hover
--fc-button-light --fc-button-primary-light
--fc-button-text --fc-button-text-color
--fc-success --fc-color-success
--fc-success-bg --fc-color-success-bg
--fc-warning --fc-color-warning
--fc-warning-bg --fc-color-warning-bg
--fc-error --fc-color-error
--fc-error-bg --fc-color-error-bg
--fc-error-border --fc-color-error-border
--fc-info --fc-color-info
--fc-info-bg --fc-color-info-bg
--fc-bg-section --fc-background-section
--fc-bg-card --fc-background-card
--fc-bg-input --fc-background-input
--fc-bg-input-focus --fc-background-input-focus
--fc-bg-modal --fc-background-modal
--fc-bg-modal-body --fc-background-modal-body
--fc-bg-overlay --fc-background-overlay
--fc-bg-subtle --fc-background-subtle
--fc-text-primary --fc-text-color-primary
--fc-text-secondary --fc-text-color-secondary
--fc-text-muted --fc-text-color-muted
--fc-text-inverse --fc-text-color-inverse
--fc-text-link --fc-text-color-link
--fc-text-link-hover --fc-text-color-link-hover
--fc-border-color --fc-border-color-default
--fc-border-color-light --fc-border-color-subtle
--fc-border-color-focus --fc-border-color-active
--fc-border-width --fc-border-width-default
--fc-border-width-focus --fc-border-width-active
--fc-radius-sm --fc-border-radius-sm
--fc-radius --fc-border-radius
--fc-radius-md --fc-border-radius-md
--fc-radius-lg --fc-border-radius-lg
--fc-radius-xl --fc-border-radius-xl
--fc-radius-full --fc-border-radius-full
--fc-shadow-sm --fc-shadow-small
--fc-shadow-focus-custom --fc-shadow-focus-ring
--fc-font-family --fc-typography-font-family
--fc-font-family-mono --fc-typography-font-family-mono
--fc-font-size-xs --fc-typography-size-xs
--fc-font-size-sm --fc-typography-size-sm
--fc-font-size-base --fc-typography-size-base
--fc-font-size-md --fc-typography-size-md
--fc-font-size-lg --fc-typography-size-lg
--fc-font-size-xl --fc-typography-size-xl
--fc-font-size-2xl --fc-typography-size-2xl
--fc-font-size-3xl --fc-typography-size-3xl
--fc-font-weight-normal --fc-typography-weight-normal
--fc-font-weight-medium --fc-typography-weight-medium
--fc-font-weight-semibold --fc-typography-weight-semibold
--fc-font-weight-bold --fc-typography-weight-bold
--fc-line-height-tight --fc-typography-line-height-tight
--fc-line-height-normal --fc-typography-line-height-normal
--fc-line-height-relaxed --fc-typography-line-height-relaxed
--fc-letter-spacing-wide --fc-typography-letter-spacing-wide
--fc-space-1 --fc-spacing-1
--fc-space-2 --fc-spacing-2
--fc-space-3 --fc-spacing-3
--fc-space-4 --fc-spacing-4
--fc-space-5 --fc-spacing-5
--fc-space-6 --fc-spacing-6
--fc-space-8 --fc-spacing-8
--fc-space-10 --fc-spacing-10
--fc-space-12 --fc-spacing-12
--fc-space-16 --fc-spacing-16
--fc-container-max-width --fc-layout-container-max
--fc-modal-max-width --fc-layout-modal-max
--fc-card-date-width --fc-layout-date-width
--fc-card-date-height --fc-layout-date-height
--fc-transition-fast --fc-motion-fast
--fc-transition-base --fc-motion-base
--fc-z-modal --fc-z-index-modal
--fc-accent-fill-auto Worked out by the widget. Nothing to set.
--fc-text-inverse-auto Worked out by the widget. Nothing to set.
--fc-button-text-auto Worked out by the widget. Nothing to set.
--fc-view-toggle-pad Worked out by the widget. Nothing to set.
--fc-accent-ink Worked out by the widget. Nothing to set.
--fc-accent-ink-hover Worked out by the widget. Nothing to set.
--fc-accent-ink-auto Worked out by the widget. Nothing to set.
--fc-accent-ink-hover-auto Worked out by the widget. Nothing to set.
--fc-accent-edge Worked out by the widget. Nothing to set.
--fc-accent-edge-auto Worked out by the widget. Nothing to set.
--fc-accent-outline Worked out by the widget. Nothing to set.
--fc-button-ink Worked out by the widget. Nothing to set.
--fc-button-ink-auto Worked out by the widget. Nothing to set.
--fc-button-edge Worked out by the widget. Nothing to set.
--fc-button-edge-auto Worked out by the widget. Nothing to set.

Older pages may still use the names below. With Square, the card number field reads them only when the newer name is not set. Use the newer name.

Older name Newer name
--fc-text --fc-text-color-primary
--fc-muted --fc-text-color-secondary
--fc-border --fc-border-color-default
--fc-surface --fc-background-card