Turning off all styling included in openmrs-contrib-uicommons

Is it possible to turn off all the styling provided by the openmrs-contrib-uicommons library? I just need to use the openmrsRest module included with it. I don’t want the styling provided by the library. I’m building an owa that runs on legacyui and clients complain about the app not been uniform with the rest of the application and requested I make it look like the rest of the legacyui. I tried turning off the styling provided by the openmrs-contrib-uicommons module by uninstalling the module and deleting every reference to it. But this also made the openmrsRest module unavailable.

I deleted all styles in the applications main css that was generated by openmrs-owa generator but I still get the RefApp styling on pages.