Open jaburgoyne opened 1 year ago
We might set colours and fonts as scss variables, and let labs override them.
As discussed last Tuesday, I think we concluded it would be nice if we could configure a theme through the Django admin interface. Preferably the:
A Dark theme would be 2nd priority.
@jaburgoyne Could you update the PR title & description to something more concise, with clearer boundaries and a well-defined scope? Perhaps by using a User Story Format (example below)?
As a MUSCLE admin user I would like to be able to configure the font, logo, background image and main design token colors (primary, success, positive, negative, secondary, info) so I can easily customize the MUSCLE application's design for my organization.
(feel free to copy + paste)
As a lab leader implementing the MUSCLE infrastructure at my own laboratory, I would like to be able to configure the fonts (heading, body, and perhaps code), logo, background image, and utility-class colours (primary, secondary, etc.) so that my lab's experiments have a consistent local look.
Lower priority: As an experiment designer using text in non-Latin scripts, I may want to be able to configure the fonts (heading, body, and perhaps code) to support internationalisation for a specific experiment only.
Still lower priority: As an experiment designer, I may want to be able to configure the background image and utility-class colours specifically for an individual experiment.
Lowest priority: As a lab manager running an experiment on behalf of an external party, I may want to be able to configure the logo for an individual experiment.
The utility classes for colours that are implemented in Bootstrap (the world I'm most familiar with) would be the following:
We don't necessarily need to support all of these (and could also support 'normal' colour names in addition), but this may still help to contextualise the issue.
The lowest-hanging fruit seems to be to allow other labs to change the fonts (display and body text), the default colour scheme (cf. the AML style guide), and the favicons