Does jupyter have guideline for the colors used in the extension

43 views
Skip to first unread message

徐蕊鑫

unread,
Oct 21, 2018, 10:50:33 PM10/21/18
to Project Jupyter
We are building Jupyter extensions and would like to check is there any guideline for the colors used in Jupyter extension? 

Ryan Lovett

unread,
Oct 22, 2018, 10:29:11 PM10/22/18
to Project Jupyter
I don't know if there are color guidelines, but you may want to consider accessibility when choosing colors. It came up in this issue:

Alena Mueller

unread,
Oct 23, 2018, 4:36:29 PM10/23/18
to Project Jupyter
There are! When adding things like colors and fonts, you should use the pre-defined variables. That way when someone changes between light theme and dark theme, your extension changes too. Here are how the variables are assigned for light theme: https://github.com/jupyterlab/jupyterlab/blob/master/packages/theme-light-extension/style/variables.css

One important note is that while there are greens listed in these variables, JupyterLab is taking out green as a way to make sure colorblind users can still use the software.


On Sunday, October 21, 2018 at 7:50:33 PM UTC-7, 徐蕊鑫 wrote:
Reply all
Reply to author
Forward
0 new messages