jupyterlab / jupyterlab-git

A Git extension for JupyterLab
BSD 3-Clause "New" or "Revised" License
1.46k stars 320 forks source link

Too many style frameworks? #1265

Open krassowski opened 1 year ago

krassowski commented 1 year ago

jupyterlab-git uses:

This has performance implications because we get a lot of CSS rules of various quality.

typestyle is really a mixed bag:

I do not have a strong opinion on mui yet but I suspect there are limits to what it can do.

It would be good to consider some guidelines on what future code should use to minimise confusion and get the best performance (for example #1264 adds more typestyle).

fcollonval commented 1 year ago

@Zxun2 if you want to work on this one, I would start by switching components from MaterialUI to the Jupyter toolkit when there is a replacement available (like tab panel, buttons, dialog, input,...). When replacing components, remove the associated CSS-in-JS class(es) and add well defined CSS class name(s) with as few rules as possible (mostly positioning rules as the toolkit should give you well integrated font and color rules).

Some notes on the toolkit:

krassowski commented 1 year ago

(feel free to ping me for a final review to check for performance-related CSS issues)