Skip to content

Too many style frameworks? #1265

Open
Open
@krassowski

Description

@krassowski

jupyterlab-git uses:

  • typestyle
  • mui
  • native CSS

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

typestyle is really a mixed bag:

  • good because it prevents unused styles from lingering,
  • provides some checks (but we can get this in plain CSS with stylelint),
  • is good/neutral in performance terms (tailored classes are good)
  • is hard to debug, and to profile with ui-profiler
  • is hard to override in themes (which is not a huge deal if variables are used widely, but then overuse of variables has performance implications).

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions