I am currently using the most recent version of
"primeng": "^12.2.0",
and I am looking to implement my own custom theme for primeng. Despite searching through numerous blogs, I have yet to find a solution.
In an attempt to create my custom theme, I duplicated the theme.css
file from
‘node_modules/primeng/resources/themes/bootstrap4-dark-blue’
, created a new folder in my source directory, and imported my newly created theme into the angular.json
file. However, the original theme.css file contains over 6000 lines of CSS code, with no reference to variables. This means that each CSS class has hardcoded color codes, making it difficult to modify specific colors such as the primary color without changing multiple instances.
Is there a more effective way to customize the primary color, secondary color, and other aspects of the primeng theme?