There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-b4ad83b4-c182-4478-a251-9f0778007e91 XWIKI-23029 Open

Make the supported colorTheme LESS sections compatible with the CSS properties system

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-02e72b36-341d-4254-bb80-21726c8f5535 Charpentier Lucas on 27/Mar/25 11:05
 
Some things we can migrate, some others we need to duplicate and some others we don't need to do anything.

* Variable definitions: duplicate them, so that current customizations relying on them keep working and can be easily migrated.
* Custom styles: migrate them, the only thing relying on those styles are the components and they'd work just as well with a CSS native solution.
EDIT: those custom styles can use mixin extensively. Instead of having a hard time migrating them, we can keep them in LESS if it's easier. END OF EDIT
* Mixins: leave them unchanged. There's no way to reproduce mixins in CSS (style queries could be a replacement, but it's not supported well yet -- CSS native mixins are actively thought about, but it'll be a while until we get full support) If some of them are useful for custom styles, replace them with somewhat appropriate CSS variable equivalents.