Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ZKOSS - creating new css theme

Tags:

css

zk

I am new to Zkoss and i need to create completely new css theme for my pages. In documentation I found that it can be done by overwriting default z-classes. So I created my own classes like .z-datebox-inp etc. (according to styleguide) but when I inspect elements on page, they have rules from both classes, Zkoss default(comes from zk.wcs) and my custom class (my css file). Sometimes zkoss default class even overrides mine so I have to add body selector before my class name to make it prior to browser. Is there any way to get rid of zkoss default css styles completely or do I have to rewrite every single css rule that comes from default class? Any help would be appreciated. Thanks.

like image 410
Gatekeeper Avatar asked May 12 '26 12:05

Gatekeeper


1 Answers

If you want a theme which is entirely new I would recommend that you use a ThemeProvider. You can use it to control which CSS files are included.

For more information please refer to the following documentation.

like image 126
Tim Avatar answered May 14 '26 00:05

Tim