There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e7b1e77f-b27d-481d-b8de-bee87998e98e XWIKI-19850 Open

The wiki is defaced when trying to use a Google Fonts 2022 import in the color theme - less compilation error

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-5b1976d5-c760-4282-82dd-f343aefbf51f Charpentier Lucas on 22/May/25 13:13
 

There's a native way to provide options for imports in LESS. I'll add a note about this in the documentation, but it looks like there's nothing much we need to do on XWiki. If the user knows LESS well, they can solve this issue.

For reference, correct implementation for the example shown above is :

@import (css) url('https://fonts.googleapis.com/css2?family=Fascinate&display=swap');

We just need to add the `(css)` option in between the statement and the URL, as described at https://lesscss.org/features/#import-atrules-feature-css .