come to think of it, this wouldn't work either.optimus.prime wrote:If we render theme after registered css, then we'll break apps that overrides theme visuals by using h:outputStylesheet as a resource registered with h:outputStylesheet will be rendered before theme so people can't override the themes if they are keeping their extensions in a separate css file like myapp.css. This will also break our apps as well since we've used this approach to override themes instead of changing theme.css file.
theme.css file is ideally should contain theme stuff not the structural stuff then. Order is;
- theme.css
- appcssthathasoverrides.css
Which makes sense to me.
because if you use h:outputstylesheet it results in the following:
- theme.css
- appcssthathasoverrides.css
- structural-primefaces.css