Details
-
New Feature
-
Resolution: Done
-
Major
-
12.10.5, 13.2-rc-1
-
None
Description
We need to be able to write UI components (JavaScript) that use the active Color Theme (Skin). We can do this in two ways:
- use CSS and Velocity (color theme variables); the CSS can be packaged along with the JavaScript code in the WebJar and can be served with ?evaluate=true to execute the Velocity code. The is the old way, and it's limited: you don't have access to all color theme variables
- use LESS and package it along with the JavaScript code in the WebJar. For this we need to extend the WebJar handler to support compiling LESS files on the fly, when requested with ?evaluate=true. This is very similar to SxDocumentSource#getContent().
Would be nice to support the second option also.
Attachments
Issue Links
- blocks
-
XWIKI-18270 Live Data macro styles don't use the color theme
- Closed