add prefix to primeflex

PrimeFlex is a lightweight responsive CSS utility library to accompany Prime UI libraries and static webpages
Post Reply
anurat
Posts: 7
Joined: 11 Dec 2020, 02:29

26 Oct 2022, 07:14

Hello,

I'm using PrimeVue on a laravel project which already has tailwind css installed.
I found that some tailwind classes are conflicting with Primeflex so I would like to add prefix to Primeflex classes.
Is there a way to add prefix to Primeflex classes like p-

Thank you
Top

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

31 Oct 2022, 10:55

Hi,

You can override $prefix variable of primeflex. Exp;

style.scss
$prefix: 'p-';

@import 'node_modules/primeflex/primeflex.scss'
Best Regards,

anurat
Posts: 7
Joined: 11 Dec 2020, 02:29

31 Oct 2022, 14:48

Thank you very much!

Post Reply

Return to “PrimeFlex”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests