Loading
Prepare for Email to Become the Default Login ExperienceRead More
Create Custom CSS Within the Flexcard Designer (Managed Package)

Create Custom CSS Within the Flexcard Designer (Managed Package)

For the managed package runtime, create custom CSS classes within the Flexcard Designer to apply to Flexcard elements or supported fields inside elements. Create custom CSS classes when the design interfaces in the Style panel do not meet your design needs.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

The custom CSS is a Salesforce attachment. When the Flexcard is saved, the attachment is updated. A .css file is also packaged with the generated LWC.

  1. From the Flexcards tab, select the Flexcard to update.
  2. In the Flexcard Designer, click an element on the canvas, and click Style to open the Style panel.
  3. In the Flexcard Designer submenu, click the down arrow next to Activate, and select Add Custom CSS.
    FlexCards Add Custom CSS feature
    Note
    Note

    Your Flexcard must be inactive to use this feature.

  4. Enter your custom classes inside the code editor.
    FlexCards Add Custom CSS feature window
  5. (Optional) Enable Load as Global CSS. These custom styles are loaded as a stylesheet in the header of the page when this feature is enabled. And when not enabled, it's loaded as internal styles inside the header of the Flexcard only.
  6. Click Save.

What’s next: Apply custom CSS classes to elements.

 
Loading
Salesforce Help | Article