I'm using a custom theme deployed as a jar based on the new theme API in 2.2.1. I noticed that some styles defined in my theme are overriden by default PrimeFaces styles. this is because in the html output, the theme stylesheet is loaded first, followed by the PrimeFaces build-in ones. this is in Firefox 4, haven't tested in other browsers.
shouldn't it be the other way round (i.e. load the theme last)?
my concrete problem is that I would like to have panel headers with no padding. so I tried to set ui-panel to zero padding in my theme, but this is overruled by the ui-panel setting in PrimeFaces panel.css. also tried to change padding of ui-widget, but with the same result (panel header still has padding). as a workaround, I load another stylesheet in my page header (in addition to the theme directive in web.xml) which contains these settings.