Show: example JupyterLab theme that extends from base theme

12 views
Skip to first unread message

Jason Anderson

unread,
Aug 15, 2019, 3:32:41 PM8/15/19
to Project Jupyter
Hey all,

I've been playing around with distributing a lightly customized theme to users on our JuptyerHub. My first pass was basically forking the existing theme-light-extension packaged within JupyterLab. But, then when 1.0 rolled around and I had to revisit my 0.35-era theme... I experienced pain.

I ended up stumbling across a solution that was obvious in hindsight: simply wrap an existing theme and add a few overrides. For my use-case this was fine; I just wanted to override an icon, and maybe in the future adjust some colors or likewise. This ended up being surprisingly simple to do thanks to JupyterLab's module architecture and tooling around webpack. If you want to have a look, the code is here: https://github.com/chameleoncloud/jupyterlab-theme-extension

I imagine others might have similar use-cases, so I wanted to share my experience. Hope it's helpful!

Cheers,

--
Jason Anderson

Chameleon DevOps Lead
Consortium for Advanced Science and Engineering, The University of Chicago
Mathematics & Computer Science Division, Argonne National Laboratory

Jason Grout

unread,
Aug 15, 2019, 3:41:54 PM8/15/19
to Project Jupyter
Cool, thanks for sharing!

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/836ac6f9-9a9a-1007-2eed-78a4b17167d5%40uchicago.edu.
Reply all
Reply to author
Forward
0 new messages