Quansight-Labs / jupyterlab-accessible-themes

♿️🎨 An access-centred implementation of the JupyterLab default themes
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Pygments accessible themes #38

Closed trallard closed 1 year ago

trallard commented 2 years ago

A while back we discussed improvements to the syntax highlighting used in JupyterLab. Since JupyterLab uses pygments as its default it is worth creating a set of accessible (i.e. meeting WCAG colour contrast criteria) pygment themes

Proposed steps/deliverables

While @isabela-pf is wrapping up other areas, such as the UI suggestions for Zoom fixes, @steff456 can start exploring porting @ericwbailey's themes to pygments. And when Isabela has more capacity, she can help with the points below and double checking everything is ok with the above ☝🏽

Another bit - I'd like to create contrast grids for the themes and also publish them with the themes themselves (i.e. using something like https://contrast-grid.eightshapes.com/)

Other themes/implementations to explore

Some of these styles are also optimised for colourblindness and light sensitivity, so it is worth considering. And ofc because I am biased, and I made sure that the colours in pitaya-smoothie are WCAG compliant and colourblind friendly too, I'd also like to propose adding this to the package

Other bits

  1. I created a new repo for this work: https://github.com/Quansight-Labs/accessible-pygments
  2. The JupyterLab extension should live in this repo (https://github.com/Quansight-Labs/jupyterlab-accessible-themes/)
ericwbailey commented 2 years ago

Love that y'all are doing this. Definitely let me know if and how I can support you.

trallard commented 2 years ago

Thank you @ericwbailey - we'll definitely be in touch if we need some of your sage insights ✨