Package Exports
- jupyterlab-openbayes-theme
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jupyterlab-openbayes-theme) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
jupyterlab-openbayes-theme
OpenBayes Theme, a fork from official JupyterLab light theme and dark theme with auto color scheme switching support.
该主题为官方 theme-light-extension
和 theme-dark-extension
的缝合怪版,由于官方主题的样式和 SVG 图标覆盖方法写的实在是太烂了,无法轻易通过增加样式对其进行覆盖。为了方便与上流跟进和维护,该主题目前只对官方的主题进行了整合,并加上了对 prefers-color-scheme
的支持
在 2.0.0 中,SVG 图标混乱的局面可能会 有所改善
Prerequisites
- JupyterLab
Installation
jupyter labextension install jupyterlab-openbayes-theme
Development
For a development install (requires npm version 4 or later), do the following in the repository directory:
npm install
npm run build
jupyter labextension link .
To rebuild the package and the JupyterLab app:
npm run build
jupyter lab build
Sync styles from upstream
- Download the source zipball from jupyterlab/jupyterlab
- Compare
packages/theme-light-extension
andpackages/theme-dark-extension
side by side - Copy and paste updated files and override the old ones in this repo(
sass/urls.scss
andsass/variables.scss
) - Exec
npm run css
to build css files