Design system and theming

Design system and theming

Every 3B Onboarding app (My Documents, Record Files, Compliance Console, Job Board, Self Booking, Chat, AI Chat, AI Form, Assessments) renders with one shared design system. The system is a set of named colour tokens plus a small vocabulary of components (buttons, badges, cards, fields, tables, dialogs, tabs, stats, chat bubbles). All apps read the same tokens, so a theme or brand override applies consistently across the whole onboarding experience.

Themes

Two themes exist: light (default) and dark. Dark mode uses 3B green for --ui-brand and plum for text on primary controls.

Where the theme is set How
Native Lightning component (App Builder, Experience Builder) Theme Type picklist: light or dark.
Visualforce page URL themeType=dark query parameter, for example /apex/b3o__MyDocuments?themeType=dark.
Portals page The theme-type attribute on the embedded app tag.
End user The in-app theme toggle (where hide-theme-switch is not set) stores the choice in the browser under the key theme and it is reused on the next visit.

Any value other than light or dark (including theme names from earlier versions such as cmyk, lemonade, synthwave or custom) falls back to light. Existing configurations keep working; only the visual result changes.

On the Job Board, Job Post, My Documents and Self Booking Visualforce pages, add hideThemeSwitch=true to the URL to hide the theme switch. From 11.12.0 the switch appears by default when that parameter is omitted.

Tokens

The palette is expressed as CSS custom properties. They are set on the app's themed wrapper and inherit into every nested part of the app, so overriding them on a host element restyles everything inside.

Token Purpose Light default
--ui-surface Page canvas behind panels #eceef5
--ui-panel Cards, dialogs, inputs #ffffff
--ui-panel-muted Subtle fills (hover rows, disabled inputs) #f4f5f9
--ui-line / --ui-line-strong Borders and dividers #d6d8e4 / #b3b7cb
--ui-ink / --ui-ink-muted / --ui-ink-faint Text hierarchy #1b1530 / #5f5b70 / #8f8ba0
--ui-brand / --ui-brand-hover / --ui-brand-soft / --ui-brand-content 3B plum: primary buttons, links, checked controls, active tabs, text on brand #291334 / #3d1d4e / #f1ebf5 / #ffffff
--ui-signature / -hover / -strong / -soft / -content 3B green: progress bars, sliders, focus rings, card-accent bar, highlight. Too light for text on white, so use text-signature-strong for green text and signature-content (plum) on the fill #00ca72 / #00b465 / #00844b / #d9f7e8 / #291334
--ui-accent / --ui-accent-soft / --ui-accent-content 3B yellow highlight, pairs with plum text #fabe23 / #fde9b0 / #291334
--ui-ok, --ui-warn, --ui-danger, --ui-info (+ -soft) Status colours and their tinted backgrounds green / amber / red / blue

The dark theme redefines the same tokens; component markup never changes between themes.

Branding a host page

Because the tokens inherit, a Visualforce page, Experience site or Portals page can re-brand an embedded app without any package change. Set the variables on an element that wraps the app tag:

<style>
    .onboarding-shell {
        --ui-brand: #0b5fff;
        --ui-brand-hover: #084ad0;
        --ui-brand-soft: #e6eeff;
        --ui-accent: #ffb020;
        --ui-surface: #f7f8fb;
    }
</style>
<div class="onboarding-shell">
    <user-documents theme-type="light" ...></user-documents>
</div>

Guidance:

Component vocabulary

For reference when reading the rendered markup or writing custom CSS in a host page:

Family Classes
Buttons btn, btn-primary, btn-secondary, btn-accent, btn-ghost, btn-outline, btn-link, btn-danger, btn-success, btn-warn; sizes btn-xs, btn-sm, btn-lg; btn-icon, btn-block
Badges badge, badge-brand, badge-accent, badge-ok, badge-warn, badge-danger, badge-info, badge-neutral, badge-outline, badge-dot; sizes badge-xs, badge-sm, badge-lg
Surfaces card, card-body, card-title, card-actions, card-interactive (hover lift), card-accent (green signature left bar), brand-band (neutral header used by shared-header, transparent in light mode and panel-coloured in dark mode), divider, stats, stat, stat-title, stat-value, stat-desc
Feedback alert (+ alert-danger, alert-warn, alert-ok, alert-info), spinner, skeleton, progress (+ progress-ok, progress-warn, progress-danger), radial-progress, tooltip
Fields field, field-label, field-hint, field-error, input, select, textarea, checkbox, radio, toggle, range, file-input; sizes -xs, -sm, -lg; error state input-error
Overlays and navigation modal, modal-box, modal-full, modal-action, dropdown, dropdown-content, menu, menu-item, tabs, tab, tab-active, tabs-pill, breadcrumbs
Data and chat table, table-hover, table-xs, table-sm, avatar, chat, chat-start, chat-end, chat-bubble, chat-header, chat-footer

Custom-metadata driven configuration (for example console column colours in the compliance definition JSON) may still reference the runtime colour classes of the form bg-<colour>-<shade> with colours red, orange, amber, yellow, green, blue and rose and shades 50 to 950.