Clientlibs and Style System
The Documentation here: Style System States
Caution:
The CSS classes (as well as any necessary Javascript) configured as style properties of a component's policy must be deployed as Client Libraries in order to work
I cannot understand the link between Clientlibs and the style system. If I create a CSS file on an external system it will still work with the design principles of the Style System. I am obviously missing something important, or the documentation is incorrect.
I believed that If I added a new item to the Style System I would have to support this with a new clientlib, this is not so.
My Use Case: I wish to have a generic RTE component, with many styles attached, say Quotation, Annotation, Code, Raw etc; I would like the subsequent css/js generation to contain only the styles I have used on the page; not the complete set of styles for all possible combinations of the component. How can I do this optimisation?