Skip to content

PrimeFlex bg-* and text-* color utilities not working – colors seem undefinedΒ #245

@bayramlibahram

Description

@bayramlibahram

Hi team πŸ‘‹

I'm using PrimeFlex v4 in a React project, and I'm running into an issue where the bg-* and text-* utility classes (e.g., bg-primary, text-secondary) are not applying any color styles. It seems like the color values are undefined or not injected properly.

πŸ” Steps to Reproduce
Install PrimeFlex v4 in a React project.

Use classes like bg-primary, text-secondary, etc., on any HTML or JSX element.

Run the app and inspect the styles applied.

Colors do not appear β€” utilities are present but ineffective.

βœ… Expected Behavior
Utility classes like bg-primary and text-secondary should apply theme-specific colors, similar to how they are demonstrated in PrimeFlex docs or PrimeReact themes.

❌ Actual Behavior
No colors are applied.

Looks like the color variables or CSS custom properties are not defined.

Utilities are present in the DOM but not effective.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions