(P.S. I've looked at this demo site many times. Don't know how I'd missed it)
One minor problem.
Am I going to have to use this demo's site as the source of my styles?
Got it to work. This is awesome.
Not a component developer myself (so I don't know if it is feasible), but I was wondering if it would be possible to create renderers for the standard components which decorates them with the appropriate RichFaces css classes?
If possible it would be cool if those decorating renderers were part of the RichFaces library, and those interested could just add them themselves to their faces-config.
Certainly you may write the custom renderers and use our skin parameters while rendering.
But it would be realy easier to write xcss for standard components and use the skin properties in this xcss file.
The way I imagined is it the appropriate css classes would added to the generated markup by default, so that developers wouldn't have to add styleClass attributes to the standard components,
just the way it is in rich faces.
To me that seems like the easiest way to do it for component users, not so for the guy who has to implement it and configure the application :)
XCSS seems like a great way of creating CSS classes for specific use cases while getting the benefit of reusing properties defined in a skin.