Finding What to Change

One of the most common challenges when customizing an Open edX site is identifying which CSS variable or style rule controls a specific visual element. This section provides a recommended methodology for systematically discovering and applying the right changes.

Using the Browser Inspector

The most reliable way to find which CSS property controls a specific element is to use your browser’s built-in developer tools:

  1. Open your Open edX site in a browser.

  2. Right-click the element you want to change and select Inspect (or press F12 and select the element with the picker tool).

  3. In the Styles panel, look for CSS declarations that use var(--pgn-...) references. These are the Paragon variables controlling the element’s appearance.

  4. Note the variable name (e.g., --pgn-color-primary-base).

  5. Return to Branding by Aulasneo and add that variable as a custom Paragon property (see Custom Paragon Properties).

  6. Save the change and perform a hard browser refresh to see the result.

Tip

In Chrome and Firefox, you can edit CSS variable values directly in the developer tools to preview changes before committing them. This is a fast way to experiment without creating a new build each time.

When No Paragon Variable Is Found

If the browser inspector shows that an element’s style does not reference any --pgn-* variable, the component may be styled with hardcoded CSS that is not exposed through the Paragon token system. In this case:

  1. Copy the CSS selector shown in the inspector (e.g., .course-card .card-title).

  2. Compose a CSS override using that selector and add it to the Custom CSS field of your core theme or the relevant variant.

  3. Use the !important declaration if the existing rule has higher specificity than your override.

See Advanced CSS Styling for guidance on writing effective custom CSS overrides.

Checking the Style Map

Before adding a custom Paragon property for a specific variable, check the Understanding the Style Map to understand:

  • Whether the variable has a parent variable that, if changed, would affect this and related components simultaneously (a more efficient change).

  • Whether the variable is actually used in the current version of Open edX (variables that exist in Paragon but are unreferenced by any MFE component will have no visible effect).

Common Variable Patterns

The following table lists common visual concerns and the Paragon variable categories most likely to be relevant:

Common Visual Concerns and Variable Patterns

Visual Element

Variable Pattern to Look For

Primary buttons and links

--pgn-color-primary-*, --pgn-color-btn-*

Navigation header background

--pgn-color-*-nav-*, custom CSS for .site-header

Page background color

--pgn-color-body-bg, variant body_background_color

Body text color

--pgn-color-body-color, variant body_text_color

Warning and alert colors

--pgn-color-warning-*, --pgn-color-yellow

Card borders and backgrounds

--pgn-color-border-*, --pgn-color-card-*

Input field borders and focus

--pgn-color-input-*, input_focus_color in variant

Heading color

--pgn-color-headings-*, variant headings_color

Footer background

Custom CSS targeting the footer component

Back to Home