Skip to content

Theming

The widget exposes CSS custom properties so you can match your brand without touching any widget source code.

Stylesheet

The recommended approach — add a rule to your existing stylesheet targeting the booksea-widget element:

css
booksea-widget {
  --primary-color: #1a6b3c;
  --primary-hover: #145530;
  --font-family: 'Inter', sans-serif;
  --font-size-base: 16px;
}

CSS custom properties

PropertyDefaultDescription
--primary-color#004963Primary button and accent colour
--primary-hover#023044Hover state for primary elements
--text-primary#27292fMain body text colour
--border-color#666666Input borders and dividers
--background-light#f3f3f3Subtle background for panels
--font-family'azo-sans-web', 'Roboto', sans-serifWidget font stack
--font-size-base18pxBase font size
--font-weight500Default font weight

Inline styles

For quick tests or one-off overrides, variables can also be set directly on the element:

html
<booksea-widget
  company-slug="your-slug"
  style="
    --primary-color: #1a6b3c;
    --primary-hover: #145530;
    --font-family: 'Inter', sans-serif;
    --font-size-base: 16px;
  "
></booksea-widget>