Page MenuHomePhabricator

Import php content variables (styles set in the json or from variable in the content handler) into less
Closed, DeclinedPublic

Description

Some of the variables from the php needs to be forwarded into the less for proper style application to the final content. This includes:

  • Colours (T140184)
  • Icon sizes (T140185)
  • Probably some other things later

Event Timeline

We might just use either inline style attributes or a <style> tag.

I think if we want to do per-page less variables we will need to make a custom ResourceLoaderModule class that's per page so the less variables can be different per page and not cached across all pages. Maybe need to ask a RL expert what best approach is here.

This has been rendered moot. We are no longer allowing arbitrary colours, and instead have a preset palette for users to choose from.