<div dir="ltr">I found a way on my own ...<div><br></div><div>Added an annotation on my custom Component class :</div><div>@StyleSheet("myfile.css")<br>public class CmsSiteManagementView extends VerticalLayout {<br></div><div><br></div><div>The file is placed in the same package of this class.</div><div>It contains my css :</div><div>e-color-red{color:red}</div><div><br></div><div>In my component, I use </div><div>mylabel.addStyleName("e-color-red");</div><div><br></div><div>Build the lib with the *.css in it, import, restart OpenCms, test my app, it's red!</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 19 sept. 2019 à 11:25, Sandrine Prousteau <<a href="mailto:s.prousteau@eurelis.com">s.prousteau@eurelis.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all<div><br></div><div>Is there a way to add custom css styles to the vaadin theme on OpenCms11+ ?</div><div>I'd like for example display some Label objects in red or green... I didn't find any in the OpenCmsTheme.</div><div><br></div><div>It should be great to publish a styleguide of this OpenCmsTheme.</div><div><br></div><div>Sandrine</div></div>
</blockquote></div>