Using custom CSS

The out-of-the-box ProsperStack flow fits great on most websites, but with custom CSS you can change the flow's "look and feel" to completely match your brand.

Note: this feature is not available on the free Startup plan.

Example of custom CSS in use

Opening the Custom CSS panel

To access the Custom CSS panel, enter the flow editor by clicking "Flow" in the left navigation and then the pencil icon in the flow steps diagram. Click "Design" in the upper right of the flow editor.

Open the flow editor

Open the design editor

Guidelines

Due to the complex responsive structure of the flow layout, some elements should not be modified with custom CSS.

Class names beginning with flow- are provided for custom CSS targeting.

Automatically-generated class names like hHVQZU should not be targeted with your custom CSS. These may change during the build process.

In the following example, only .flow-sidebar should be targeted by your custom styles.

<div class="sc-1pergwl-5 hHVQZU">
  <div class="flow-sidebar">
    ...
  </div>
</div>

When extra specificity is needed, html body .flow-* {} can be used. Do not rely on other structural elements that don't have a flow-* class, as these are subject to change.

BEM methodology

Class names adhere to the BEM (Block Element Modifier) methodology.

<button class="flow-button flow-button--danger">
  <div class="flow-button__content">Cancel subscription</div>
</button>

In the example above, flow-button is a block, flow-button__content is an element, and flow-button--danger modifies the presentation of the block.

Changing fonts

Fonts can be included with the @import rule.

Example using Google Fonts:

@import url('https://fonts.googleapis.com/css2?family=Pangolin&display=swap');

body {
  font-family: 'Pangolin', cursive;
}

Changing the divider bar color

The color of the divider bar is referenced in multiple elements. A CSS custom property, --flow-divider-color, is used for convenience.

body {
  --flow-divider-color: lightgray;
}

Changing button colors

Buttons in the default theme have three states (default, :hover, :disabled) and come in four varieties (modifiers):

  • .flow-button--default - e.g. "Next" button
  • .flow-button--primary - e.g. "Accept offer" button
  • .flow-button--danger - e.g. "Cancel subscription" button

An example reset for the default button:

.flow-button--default,
.flow-button--default:hover,
.flow-button--default:disabled {
  background-color: inherit;
  color: inherit;
}

Don't let customers slip away.