Custom Styling

Custom Styling

Custom Styling for Your Cancel Flow

By default, the Churnkey widget uses some basic styles, but you can quickly override them with your own CSS by adding new rules with the parent #ck-appselector. To avoid conflicts with your site's existing CSS, you should combine this top level parent selector with highly specific descendant selectors for the child element you want to change.

If there are conflicts between your existing CSS and the default Churnkey styles, you can fix them by simply overriding the behavior you don't want by using a highly targeted #ck-app descendant selector.

CSS Classes Available

# General Components
.ck-style # applies to everything
.ck-modal # the embed pop-up
.ck-background-overlay # the partially transparent overlay
.ck-step # a wrapper around all content

# specific steps in flow

# while a customer subscription is being modified

# once flow is complete - after discount, pause, cancel

# if error is shown at any point (hopefully customers will never see this)

# Step components

# Button variations
.ck-text-button # custom color
.ck-primary-button # custom color

Example CSS Override

For simplicity, assume you want to modify the header text's appearance. The following CSS rule uses the top-level embed id and targets the specific element that needs styling.

#ck-app h1 {
  color: black;
  background: yellow;
  font-style: italic;

Here's how that looks in Chrome dev tools.


Log In Sign up

© Churnkey, Inc. 2024