I've been on a quest to find the perfect solution for customizing the default 'Nova' theme used in Prime React. While I know there is a theme designer available for purchase, I'd prefer not to go that route. In the past, I found myself cluttering my react application with a scss file for every tsx file, littered with !important tags like so -
.p-dropdown-trigger {
background-color: brown !important;
margin-left: 5px !important;
}
This led to a messy situation with excessive !important declarations scattered throughout. I contemplated commenting out the import for the Prime React theme in my index.tsx file
// import 'primereact/resources/themes/nova/theme.css';
And instead importing my own scss file..
import './styles/Override.scss';
However, this resulted in the styling disappearing completely and the page resembling plain HTML. I'm considering copying all the code from the Nova theme file and gradually tweaking it in the override file.
Does anyone have any better suggestions or ideas? Thanks