There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-61dc65ef-08f7-4eba-ae0a-b0d31dc6b05b 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-8da3271c-690a-4398-a60c-f60ad2414715 Charpentier Lucas on 15/Oct/25 10:55
 
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.



Edit: Just found a podcast episode that's relevant to the issue found here: https://thecsspodcast.libsyn.com/92-css-if-and-custom-functions