Awell Health Developer Hub
Dev Hub
01

JavaScript

01

Fonts

CareOps lets you pick brand typography that the portal and embeds use. If you override fonts via the SDK, make sure the font files are actually available to the page (via a <link> to a web font provider or @font-face).

  • Recommended: configure fonts in CareOps for most use cases.
  • If overriding in the SDK:
    • Load the font on your site (examples below)
    • Pass the family and the weights/styles you intend to use

Example (Google Fonts):

01

Then set via BrandingConfig:

01

If self-hosting fonts, define @font-face and reference the same family name in BrandingConfig.

BrandingConfig reference (excerpt)

01

Notes:

  • Tokens align with shadcn/ui theme primitives.
  • Provider‑level branding is merged with embed‑level branding (embed wins per key).
  • Prefer CareOps for organization‑wide consistency; use SDK overrides sparingly.

Checklist

  • Publishable key Allowed Domains includes your site
  • Branding saved in CareOps
  • If overriding fonts, fonts are loaded (link or @font-face)
  • Optional: border radius and color tokens align with your design system

Troubleshooting

  • Colors not applying: confirm you’re using the correct publishable key.
  • Fonts not applying: ensure the fonts are google fonts, the files are loaded and the family name matches exactly; confirm weights/styles requested are available.