There are two types of components FinDock provides for Experience Cloud:
- Managed components that are a part of the FinDock package (payButton, paymentMethodSelector)
- Unmanaged components provided via FinDock Labs (currencyPicker, experienceProgressStages, etc.)
Both types utilize CSS custom properties (--dxp-* and --slds-* styling hooks) rather than hardcoded colors, fonts, or spacing. This makes them themeable: a hook is just a named variable a component reads with var(--hook-name, fallback). Because custom properties inherit through the DOM (including across shadow DOM boundaries), setting one anywhere above a component in the cascade tree changes how that component renders, without needing code change or redeployment of the component itself.
This is why the "How do I style this?" question always reduces to answering "Where do I set the hook, and how far down does it reach?" — which is what we explain in the following sections.
Screen Flows have their own native styling controls, separate from the --dxp-*/--slds-* hook system. Selecting a screen or an individual component in Flow Builder opens a Style tab with a Styling Overrides section, letting you adjust background, text, and border colors, plus border weight and border radius — either at the screen level (affecting the screen container, header, and footer navigation buttons) or at the level of one specific component instance, without touching any other component on the screen or flow.
The foundation is Salesforce's base design system. On top of that is the org theme, and on top of the org theme is the Experience Cloud site theme. The Flow-level styles are at the top, overriding everything else. They are the most specific and highest-priority layer, meant for one-off exceptions rather than full rebranding.
Because these styles only impact native Flow chrome and standard screen components, they do not replace the hook-based approaches. Payment Experiences components like payButton and currencyPicker, and similar custom components inside the Flow still take their styling from --dxp-*/--slds-* hooks, not from Styling Overrides. Use the overrides for small, targeted adjustments to a Flow's own borders/colors on a specific screen; use the Experience Cloud or container hook approach (see below) for anything that needs to apply consistently across the Flow and the custom components it contains.
If you create your own custom LWC that uses FinDock components (like currencyPicker or payButton), styling should be declared in that wrapper component's own .css file, on :host (or a class further down the template). CSS custom properties inherit through shadow DOM boundaries, so a hook set on the wrapper's :host cascades into every nested component automatically. This is the same mechanism that makes Experience Cloud-level :root styling work, scoped to this one wrapper instead of the entire site.
Here are some of the prominent hooks used in FinDock Payment Experiences components.
| Hook | What it affects |
|---|---|
--dxp-g-brand | Primary brand color |
--dxp-g-brand-contrast | Text on brand color |
--dxp-s-button-color | Button background |
--dxp-s-button-color-hover | Button hover background |
--dxp-s-button-color-contrast | Button text color |
--dxp-s-button-radius-border | Button corner rounding |
--dxp-s-form-element-color-background | Card/field background |
--dxp-s-form-element-color-border | Card/field border color |
--dxp-s-form-element-radius-border | Card/field corner rounding |
--dxp-s-form-element-text-color | Body text color |
--dxp-s-form-checkbox-color-border-checked | Selected radio/checkbox color |
--dxp-s-spacing-medium | Vertical spacing between sections |
--dxp-s-color-text-secondary | Muted/helper text color |
--currency-picker-max-width | Currency dropdown width cap |
For the full set of dxp hooks, refer to Salesforce documentation.
You can change the styling properties from the Experience Cloud setup.
- In the Experience Cloud builder, go to Setting > Advanced > Edit Head Markup.
- In the pop-up, add
<style> </style>tags and put your changes inside that tags. For example:<style> :root { --dxp-g-brand: #22c55e; --dxp-g-brand-contrast: #980002; } </style> - Save your changes
Setting a --dxp-* hook at the Experience Cloud level in the site's Head Markup, as a :root rule, is the broadest and lowest-effort way to theme these components. Every component in this family reads its colors, borders, and text styling through the same three-tier fallback chain (--dxp-s-* → --dxp-g-* → --slds-g-*), so hook set once at :root cascades into all of them automatically.
Experience Cloud styling affects not only the LWCs FinDock provides, but also propagates into a Screen Flow's own rendered elements, like native buttons, and field frames, when that Flow is exposed through a container LWC (as long as the container doesn't redeclare the same hook itself).
Remember to re-publish when you change styles.
This is the default styling of the FinDock components in Lightning Out 2.0 by default, without applying any Flow styling:


After applying the style from the example, the components look like this:


Styling from a fully external website works differently than Experience Cloud Head Markup. The two are technically separate; there is no shared CSS between the external page and the Salesforce-rendered component at all.
The bridge is the Lightning Out 2.0 style attribute on the embedded tag. To achieve the same result as for the Experience Cloud styling (green button with red text), you need to apply styles to the container, as demonstrated below.
<lightning-out-application org-url="https://your-domain.my.salesforce.com" site-prefix="your-site"
app-id="your-lightning-out-app-id" components="c-your-flow-container,cpm-pay-button">
</lightning-out-application>
<c-your-flow-container style="
display: block; width: 100%; height: 60vh;
--dxp-g-brand: #22c55e;
--dxp-g-brand-contrast: #980002;
--dxp-s-button-color: #22c55e;
--dxp-s-button-color-contrast: #980002;
--dxp-s-button-border-color: #22c55e;
--dxp-s-button-color-hover: #22c55e;
--dxp-s-button-color-hover-contrast: #980002;
--dxp-s-button-border-color-hover: #22c55e;
--dxp-s-button-color-focus: #22c55e;">
</c-your-flow-container>Notice that there are nine declared properties here versus two in the Experience Cloud Head Markup approach. The Experience Cloud :root rule lives in the same DOM as the Flow, so the browser's own CSS engine resolves each component's full fallback chain for free: payButton.css reads var(--dxp-s-button-color, var(--dxp-g-brand, ...)), so --dxp-g-brand alone satisfies it by native inheritance.
The cross-origin relay of Lightning Out 2.0 is not a live cascade. Rather, it only copies over the declared custom properties you provided. No styles are derived or inferred. So each state-specific hook (hover, focus, border) has to be named explicitly, since nothing on the external page's side can complete the fallback chain the way the browser does inside a single DOM.
This is an important styling constraint. While not stated explicitly in Salesforce guidance, the provided examples demonstrate a class-based rule computes fine within the host page's own rendering, but the Lightning Out 2.0 relay never considers stylesheets, only the inline style property. To be clear: with Lightning Out 2.0, you do not control styles through CSS. In Lightning Out 2.0 attribute and JS forms, styling is read from the element's inline style specifically, never a class or external stylesheet rule.
Since the JS form writes to that same inline style object, it's a functional equivalent to the markup version — useful when the color values need to be computed or reused rather than hardcoded per tag:
<c-your-flow-container id="your-flow-container" style="display: block; width: 100%; height: 60vh;"></c-your-flow-container>
<script>
(function () {
var flowBrandHooks = {
'--dxp-g-brand': '#22c55e',
'--dxp-g-brand-contrast': '#980002',
'--dxp-s-button-color': '#22c55e',
'--dxp-s-button-color-contrast': '#980002',
'--dxp-s-button-border-color': '#22c55e',
'--dxp-s-button-color-hover': '#22c55e',
'--dxp-s-button-color-hover-contrast': '#980002',
'--dxp-s-button-border-color-hover': '#22c55e',
'--dxp-s-button-color-focus': '#22c55e'
};
var flowEl = document.getElementById('your-flow-container');
Object.keys(flowBrandHooks).forEach(function (prop) {
flowEl.style.setProperty(prop, flowBrandHooks[prop]);
});
})();
</script>Instead of styling from the external website, the same set of hooks can be baked directly into the container LWC's own .css file, on :host. This keeps the theme with the component in Salesforce rather than the host page:
:host {
--dxp-g-brand: #22c55e;
--dxp-g-brand-contrast: #980002;
--dxp-s-button-color: #22c55e;
--dxp-s-button-color-contrast: #980002;
--dxp-s-button-border-color: #22c55e;
--dxp-s-button-color-hover: #22c55e;
--dxp-s-button-color-hover-contrast: #980002;
--dxp-s-button-border-color-hover: #22c55e;
--dxp-s-button-color-focus: #22c55e;
}The same nine hooks are needed here as well, even though this is entirely inside Salesforce. Setting only --dxp-g-brand/--dxp-g-brand-contrast on the container's :host is not enough, unlike the Experience Cloud Head Markup case. The reason is that on a normal Experience Cloud page, the site's own compiled theme/branding stylesheet is loaded alongside the page, and that stylesheet is what maps the specific hooks (--dxp-s-button-color, --dxp-s-button-color-hover, etc.) back to the one brand-color input, overriding --dxp-g-brand at :root rides on top of that existing chain.
A container rendered through Lightning Out 2.0 doesn't load that site-wide theme stylesheet. Only SLDS-based styles and the container's own bundled CSS are included. That normally mapping layer simply isn't present. The fallback chain of payButton.css has nothing to resolve the more specific hooks against except the final generic SLDS default.
Practically, this means you need to pick one owner for the theme. If it is included the container's :host like this, it becomes the fixed default for that container regardless of what the external page or the Experience Cloud's Head Markup try to set — the shadow DOM boundaries apply here, too.
See also: