primereact-sass-theme icon indicating copy to clipboard operation
primereact-sass-theme copied to clipboard

Chip Variables are missing in the myTheme

Open stevenovak123 opened this issue 1 year ago • 5 comments

React js with vite and primereact

steps to reproduce

  1. install primereact-sass-theme
  2. import theme-base and mytheme as written in the documentation.
  3. run the dev server

expected result: To work without any issues

Actual: image

stevenovak123 avatar Jun 13 '24 10:06 stevenovak123

Same.

I am losing my mind with these repos recently. All of these purportedly big libraries do not work out of the box any more.

Do these things not get tested before they are released? Is that not absolutely basic?

jambudipa avatar Jun 27 '24 16:06 jambudipa

Hi, I found a solution to the problem. I hope it helps. Open this file: themes/mytheme/_variables/_misc.scss and then add the following lines.

/// Background of a chip /// @group misc $chipFocusBg:#dee2e6;

/// Text color of a chip /// @group misc $chipFocusTextColor:#dee2e6;

After that, run: sass --update themes/mytheme/theme.scss:themes/mytheme/theme.css.

that is all :)

dev-fatih-erol avatar Jul 03 '24 19:07 dev-fatih-erol

Thanks so much for your help. Will look into this solution

stevenovak123 avatar Jul 07 '24 18:07 stevenovak123

@dev-fatih-erol The solution you suggested worked like a charm. Thank you so much!

mahip-hiehq avatar Sep 03 '24 06:09 mahip-hiehq

@dev-fatih-erol, thank you for the solution. Have you considered opening a PR for that fix? Hopefully, they will agree there is an issue and it will get fixed.

stefann01 avatar Oct 25 '24 09:10 stefann01