stellars_jupyterlab_darcula_theme 1.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2024, Konrad Jelen
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md ADDED
@@ -0,0 +1,105 @@
1
+ # Stellars Jupyterlab Darcula Theme
2
+
3
+ ![GitHub Actions](https://github.com/stellarshenson/jupyterlab_stellars_darcula_theme/actions/workflows/build.yml/badge.svg)
4
+ [![npm version](https://badge.fury.io/js/stellars_jupyterlab_darcula_theme.svg)](https://www.npmjs.com/package/stellars_jupyterlab_darcula_theme)
5
+ [![PyPI version](https://badge.fury.io/py/stellars-jupyterlab-darcula-theme.svg)](https://pypi.org/project/stellars-jupyterlab-darcula-theme/)
6
+ ![PyPI downloads](https://img.shields.io/pypi/dm/stellars-jupyterlab-darcula-theme?label=PyPI%20downloads)
7
+ ![JL4 Ready](https://img.shields.io/badge/Jupyterlab%204-ready-blue)
8
+
9
+ **IntelliJ Darcula Theme clone tweaked by Stellars**
10
+
11
+ Yet another Darcula theme clone for jupyterlab, just modernised and tweaked for readability.
12
+ This theme has simple, clean colours and minimal intruision into the standard jupyterlab styling.
13
+
14
+ This project is based on the original [Darcula theme](https://github.com/telamonian/theme-darcula) ported
15
+ to the latest [jupyterlab extension template](https://github.com/jupyterlab/extension-template) with copier
16
+
17
+ ![](https://github.com/stellarshenson/jupyterlab_stellars_darcula_theme/blob/master/screenshot-stellars-darcula.png?raw=true)
18
+
19
+ ## Requirements
20
+
21
+ - JupyterLab >= 4.0.0
22
+
23
+ ## Install
24
+
25
+ To install the extension, execute:
26
+
27
+ ```bash
28
+ pip install stellars_jupyterlab_darcula_theme
29
+ ```
30
+
31
+ ## Uninstall
32
+
33
+ To remove the extension, execute:
34
+
35
+ ```bash
36
+ pip uninstall stellars_jupyterlab_darcula_theme
37
+ ```
38
+
39
+ ## Contributing
40
+
41
+ ### Development install
42
+
43
+ Note: You will need NodeJS to build the extension package.
44
+
45
+ #### Dependencies
46
+
47
+ - install nodejs with conda: `conda install nodejs`
48
+ - install jupyterlab: `conda install jupyterlab`
49
+ - install maketools: `conda install make`
50
+ - install build and setuptools: `pip install build setuptools`
51
+
52
+ #### Build
53
+
54
+ - invoke `make` to build the `.whl` package
55
+ - invoke `make clean` to run cleanup & uninstall
56
+ - invoke `make install` to build and install extension
57
+ - invoke `make uninstall` to uninstall extension
58
+
59
+ #### Development
60
+
61
+ The `jlpm` command is JupyterLab's pinned version of
62
+ [yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
63
+ `yarn` or `npm` in lieu of `jlpm` below.
64
+
65
+ ```bash
66
+ # Clone the repo to your local environment
67
+ # Change directory to the stellars_jupyterlab_darcula_theme directory
68
+ # Install package in development mode
69
+ pip install -e "."
70
+ # Link your development version of the extension with JupyterLab
71
+ jupyter labextension develop . --overwrite
72
+ # Rebuild extension Typescript source after making changes
73
+ jlpm build
74
+ ```
75
+
76
+ You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
77
+
78
+ ```bash
79
+ # Watch the source directory in one terminal, automatically rebuilding when needed
80
+ jlpm watch
81
+ # Run JupyterLab in another terminal
82
+ jupyter lab
83
+ ```
84
+
85
+ With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
86
+
87
+ By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
88
+
89
+ ```bash
90
+ jupyter lab build --minimize=False
91
+ ```
92
+
93
+ ### Development uninstall
94
+
95
+ ```bash
96
+ pip uninstall stellars_jupyterlab_darcula_theme
97
+ ```
98
+
99
+ In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
100
+ command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
101
+ folder is located. Then you can remove the symlink named `stellars_jupyterlab_darcula_theme` within that folder.
102
+
103
+ ### Packaging the extension
104
+
105
+ See [RELEASE](RELEASE.md)
package/lib/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { JupyterFrontEndPlugin } from '@jupyterlab/application';
2
+ /**
3
+ * Initialization data for the stellars_jupyterlab_darcula_theme extension.
4
+ */
5
+ declare const plugin: JupyterFrontEndPlugin<void>;
6
+ export default plugin;
package/lib/index.js ADDED
@@ -0,0 +1,22 @@
1
+ import { IThemeManager } from '@jupyterlab/apputils';
2
+ /**
3
+ * Initialization data for the stellars_jupyterlab_darcula_theme extension.
4
+ */
5
+ const plugin = {
6
+ id: 'stellars_jupyterlab_darcula_theme:plugin',
7
+ description: 'IntelliJ Darcula Theme tweaked by Stellars, based on original Darcula theme',
8
+ autoStart: true,
9
+ requires: [IThemeManager],
10
+ activate: (app, manager) => {
11
+ console.log('JupyterLab extension stellars_jupyterlab_darcula_theme is activated!');
12
+ const style = 'stellars_jupyterlab_darcula_theme/index.css';
13
+ manager.register({
14
+ name: 'Stellars Darcula Dark Theme',
15
+ themeScrollbars: true,
16
+ isLight: false,
17
+ load: () => manager.loadCSS(style),
18
+ unload: () => Promise.resolve(undefined)
19
+ });
20
+ }
21
+ };
22
+ export default plugin;
package/package.json ADDED
@@ -0,0 +1,188 @@
1
+ {
2
+ "name": "stellars_jupyterlab_darcula_theme",
3
+ "version": "1.0.43",
4
+ "description": "IntelliJ Darcula Theme tweaked by Stellars",
5
+ "keywords": [
6
+ "jupyter",
7
+ "jupyterlab",
8
+ "jupyterlab-extension"
9
+ ],
10
+ "homepage": "https://github.com/stellarshenson/jupyterlab_stellars_darcula_theme",
11
+ "bugs": {
12
+ "url": "https://github.com/stellarshenson/jupyterlab_stellars_darcula_theme/issues"
13
+ },
14
+ "license": "BSD-3-Clause",
15
+ "author": {
16
+ "name": "Konrad Jelen",
17
+ "email": "konrad.jelen@gmail.com"
18
+ },
19
+ "files": [
20
+ "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21
+ "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
22
+ "src/**/*.{ts,tsx}"
23
+ ],
24
+ "main": "lib/index.js",
25
+ "types": "lib/index.d.ts",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/stellarshenson/jupyterlab_stellars_darcula_theme.git"
29
+ },
30
+ "scripts": {
31
+ "build": "jlpm build:lib && jlpm build:labextension:dev",
32
+ "build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
33
+ "build:labextension": "jupyter labextension build .",
34
+ "build:labextension:dev": "jupyter labextension build --development True .",
35
+ "build:lib": "tsc --sourceMap",
36
+ "build:lib:prod": "tsc",
37
+ "clean": "jlpm clean:lib",
38
+ "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
39
+ "clean:lintcache": "rimraf .eslintcache .stylelintcache",
40
+ "clean:labextension": "rimraf stellars_jupyterlab_darcula_theme/labextension stellars_jupyterlab_darcula_theme/_version.py",
41
+ "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
42
+ "eslint": "jlpm eslint:check --fix",
43
+ "eslint:check": "eslint . --cache --ext .ts,.tsx",
44
+ "install:extension": "jlpm build",
45
+ "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
46
+ "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
47
+ "prettier": "jlpm prettier:base --write --list-different",
48
+ "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
49
+ "prettier:check": "jlpm prettier:base --check",
50
+ "stylelint": "jlpm stylelint:check --fix",
51
+ "stylelint:check": "stylelint --cache \"style/**/*.css\"",
52
+ "watch": "run-p watch:src watch:labextension",
53
+ "watch:src": "tsc -w --sourceMap",
54
+ "watch:labextension": "jupyter labextension watch ."
55
+ },
56
+ "dependencies": {
57
+ "@jupyterlab/application": "^4.0.0",
58
+ "@jupyterlab/apputils": "^4.0.0"
59
+ },
60
+ "devDependencies": {
61
+ "@jupyterlab/builder": "^4.0.0",
62
+ "@types/json-schema": "^7.0.11",
63
+ "@types/react": "^18.0.26",
64
+ "@types/react-addons-linked-state-mixin": "^0.14.22",
65
+ "@typescript-eslint/eslint-plugin": "^6.1.0",
66
+ "@typescript-eslint/parser": "^6.1.0",
67
+ "css-loader": "^6.7.1",
68
+ "eslint": "^8.36.0",
69
+ "eslint-config-prettier": "^8.8.0",
70
+ "eslint-plugin-prettier": "^5.0.0",
71
+ "npm-run-all": "^4.1.5",
72
+ "prettier": "^3.0.0",
73
+ "rimraf": "^5.0.1",
74
+ "source-map-loader": "^1.0.2",
75
+ "style-loader": "^3.3.1",
76
+ "stylelint": "^15.10.1",
77
+ "stylelint-config-recommended": "^13.0.0",
78
+ "stylelint-config-standard": "^34.0.0",
79
+ "stylelint-csstree-validator": "^3.0.0",
80
+ "stylelint-prettier": "^4.0.0",
81
+ "typescript": "~5.0.2",
82
+ "yjs": "^13.5.0"
83
+ },
84
+ "sideEffects": [
85
+ "style/*.css"
86
+ ],
87
+ "publishConfig": {
88
+ "access": "public"
89
+ },
90
+ "jupyterlab": {
91
+ "extension": true,
92
+ "outputDir": "stellars_jupyterlab_darcula_theme/labextension",
93
+ "themePath": "style/index.css"
94
+ },
95
+ "eslintIgnore": [
96
+ "node_modules",
97
+ "dist",
98
+ "coverage",
99
+ "**/*.d.ts"
100
+ ],
101
+ "eslintConfig": {
102
+ "extends": [
103
+ "eslint:recommended",
104
+ "plugin:@typescript-eslint/eslint-recommended",
105
+ "plugin:@typescript-eslint/recommended",
106
+ "plugin:prettier/recommended"
107
+ ],
108
+ "parser": "@typescript-eslint/parser",
109
+ "parserOptions": {
110
+ "project": "tsconfig.json",
111
+ "sourceType": "module"
112
+ },
113
+ "plugins": [
114
+ "@typescript-eslint"
115
+ ],
116
+ "rules": {
117
+ "@typescript-eslint/naming-convention": [
118
+ "error",
119
+ {
120
+ "selector": "interface",
121
+ "format": [
122
+ "PascalCase"
123
+ ],
124
+ "custom": {
125
+ "regex": "^I[A-Z]",
126
+ "match": true
127
+ }
128
+ }
129
+ ],
130
+ "@typescript-eslint/no-unused-vars": [
131
+ "warn",
132
+ {
133
+ "args": "none"
134
+ }
135
+ ],
136
+ "@typescript-eslint/no-explicit-any": "off",
137
+ "@typescript-eslint/no-namespace": "off",
138
+ "@typescript-eslint/no-use-before-define": "off",
139
+ "@typescript-eslint/quotes": [
140
+ "error",
141
+ "single",
142
+ {
143
+ "avoidEscape": true,
144
+ "allowTemplateLiterals": false
145
+ }
146
+ ],
147
+ "curly": [
148
+ "error",
149
+ "all"
150
+ ],
151
+ "eqeqeq": "error",
152
+ "prefer-arrow-callback": "error"
153
+ }
154
+ },
155
+ "prettier": {
156
+ "singleQuote": true,
157
+ "trailingComma": "none",
158
+ "arrowParens": "avoid",
159
+ "endOfLine": "auto",
160
+ "overrides": [
161
+ {
162
+ "files": "package.json",
163
+ "options": {
164
+ "tabWidth": 4
165
+ }
166
+ }
167
+ ]
168
+ },
169
+ "stylelint": {
170
+ "extends": [
171
+ "stylelint-config-recommended",
172
+ "stylelint-config-standard",
173
+ "stylelint-prettier/recommended"
174
+ ],
175
+ "plugins": [
176
+ "stylelint-csstree-validator"
177
+ ],
178
+ "rules": {
179
+ "csstree/validator": true,
180
+ "property-no-vendor-prefix": null,
181
+ "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
182
+ "selector-no-vendor-prefix": null,
183
+ "value-no-vendor-prefix": null,
184
+ "alpha-value-notation": null,
185
+ "color-function-notation": null
186
+ }
187
+ }
188
+ }
package/src/index.ts ADDED
@@ -0,0 +1,33 @@
1
+ import {
2
+ JupyterFrontEnd,
3
+ JupyterFrontEndPlugin
4
+ } from '@jupyterlab/application';
5
+
6
+ import { IThemeManager } from '@jupyterlab/apputils';
7
+
8
+ /**
9
+ * Initialization data for the stellars_jupyterlab_darcula_theme extension.
10
+ */
11
+ const plugin: JupyterFrontEndPlugin<void> = {
12
+ id: 'stellars_jupyterlab_darcula_theme:plugin',
13
+ description:
14
+ 'IntelliJ Darcula Theme tweaked by Stellars, based on original Darcula theme',
15
+ autoStart: true,
16
+ requires: [IThemeManager],
17
+ activate: (app: JupyterFrontEnd, manager: IThemeManager) => {
18
+ console.log(
19
+ 'JupyterLab extension stellars_jupyterlab_darcula_theme is activated!'
20
+ );
21
+ const style = 'stellars_jupyterlab_darcula_theme/index.css';
22
+
23
+ manager.register({
24
+ name: 'Stellars Darcula Dark Theme',
25
+ themeScrollbars: true,
26
+ isLight: false,
27
+ load: () => manager.loadCSS(style),
28
+ unload: () => Promise.resolve(undefined)
29
+ });
30
+ }
31
+ };
32
+
33
+ export default plugin;
@@ -0,0 +1,111 @@
1
+ /* -----------------------------------------------------------------------------
2
+ | Copyright (c) Max Klein.
3
+ | Distributed under the terms of the Modified BSD License.
4
+ |---------------------------------------------------------------------------- */
5
+
6
+ /*
7
+ * Codemirror styling that isn't currently supported by Jupyterlab themes
8
+ */
9
+
10
+ /* text rendered in stderr with keyword highlight
11
+ fix: annoying problem of almost invisible text in stderr */
12
+ .jp-RenderedText pre .ansi-yellow-bg {
13
+ background-color: #b52318;
14
+ }
15
+
16
+ /* stylelint-disable selector-class-pattern */
17
+ .cm-s-jupyter .CodeMirror-activeline-background {
18
+ background: #323232;
19
+ }
20
+
21
+ .cm-s-jupyter .CodeMirror-guttermarker {
22
+ color: #ffee80;
23
+ }
24
+
25
+ .cm-s-jupyter .CodeMirror-guttermarker-subtle {
26
+ color: #d0d0d0;
27
+ }
28
+
29
+ .cm-s-jupyter .CodeMirror-linenumber {
30
+ color: #606366;
31
+ }
32
+
33
+ .cm-s-jupyter .CodeMirror-matchingbracket {
34
+ background-color: #3b514d;
35
+ color: #ffef28 !important;
36
+ font-weight: bold;
37
+ }
38
+
39
+ .cm-s-jupyter div.CodeMirror-selected {
40
+ background: #214283;
41
+ }
42
+ /* stylelint-enable selector-class-pattern */
43
+
44
+ .cm-s-jupyter span.cm-type {
45
+ color: #abc;
46
+ font-weight: bold;
47
+ }
48
+
49
+ /*
50
+ .cm-s-jupyter span.cm-keyword { color: #CC7832; line-height: 1em; font-weight: bold; }
51
+ .cm-s-jupyter span.cm-atom { color: #CC7832; }
52
+ .cm-s-jupyter span.cm-number { color: #6897BB; }
53
+ .cm-s-jupyter span.cm-def { color: #A9B7C6; font-style: italic; }
54
+ .cm-s-jupyter span.cm-variable { color: #A9B7C6; }
55
+ .cm-s-jupyter span.cm-variable-2 { color: #A9B7C6; }
56
+ .cm-s-jupyter span.cm-variable-3 { color: #9876AA; }
57
+ .cm-s-jupyter span.cm-special { color: #FF9E59; }
58
+ .cm-s-jupyter span.cm-property { color: #FFC66D; }
59
+ .cm-s-jupyter span.cm-operator { color: #A9B7C6; }
60
+ .cm-s-jupyter span.cm-comment { color: #61A151; font-style: italic; }
61
+ .cm-s-jupyter span.cm-string { color: #6A8759; }
62
+ .cm-s-jupyter span.cm-string-2 { color: #6A8759; }
63
+ .cm-s-jupyter span.cm-meta { color: #BBB529; }
64
+ .cm-s-jupyter span.cm-qualifier { color: #6A8759; }
65
+ .cm-s-jupyter span.cm-builtin { color: #FF9E59; }
66
+ .cm-s-jupyter span.cm-bracket { color: #A9B7C6; }
67
+ .cm-s-jupyter span.cm-tag { color: #629755; font-weight: bold; font-style: italic; text-decoration: underline; }
68
+ .cm-s-jupyter span.cm-attribute { color: #6897bb; }
69
+
70
+ .cm-s-jupyter span.cm-link { color: #CC7832; }
71
+ .cm-s-jupyter span.cm-error { color: #BC3F3C; }
72
+
73
+ .cm-s-jupyter .CodeMirror-gutters { background: #313335; border-right: 1px solid #313335; }
74
+
75
+ .cm-s-jupyter { font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;}
76
+ .cm-s-jupyter.CodeMirror { background: #2B2B2B; color: #A9B7C6; }
77
+
78
+ .CodeMirror-hints.jupyter {
79
+ font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
80
+ color: #9C9E9E;
81
+ background-color: #3B3E3F !important;
82
+ }
83
+
84
+ .CodeMirror-hints.jupyter .CodeMirror-hint-active {
85
+ background-color: #494D4E !important;
86
+ color: #9C9E9E !important;
87
+ }
88
+ */
89
+
90
+ /* override - settings restore button */
91
+ .jp-SettingsHeader-buttonbar > .jp-RestoreButton {
92
+ color: var(--jp-content-link-color);
93
+ }
94
+
95
+ .jp-OutputArea-child,
96
+ .jp-OutputArea-output,
97
+ .jp-Cell-outputArea,
98
+ .jp-OutputArea-output.jp-OutputArea-executeResult {
99
+ max-height: none !important;
100
+ overflow: visible !important;
101
+ }
102
+
103
+ .jp-Cell.jp-mod-outputsScrolled .jp-Cell-outputArea {
104
+ max-height: none !important;
105
+ }
106
+
107
+ .jp-OutputArea {
108
+ overflow: visible !important;
109
+ }
110
+
111
+ /* EOF */
@@ -0,0 +1,18 @@
1
+ /* -----------------------------------------------------------------------------
2
+ | Copyright (c) Max Klein.
3
+ | Distributed under the terms of the Modified BSD License.
4
+ |---------------------------------------------------------------------------- */
5
+
6
+ @import url('./custom.css');
7
+ @import url('./variables.css');
8
+
9
+ /* Set the default typography for monospace elements */
10
+ tt,
11
+ code,
12
+ kbd,
13
+ samp,
14
+ pre {
15
+ font-family: var(--jp-code-font-family);
16
+ font-size: var(--jp-code-font-size);
17
+ line-height: var(--jp-code-line-height);
18
+ }
@@ -0,0 +1,478 @@
1
+ /* -----------------------------------------------------------------------------
2
+ | Copyright (c) Max Klein.
3
+ | Distributed under the terms of the Modified BSD License.
4
+ |---------------------------------------------------------------------------- */
5
+
6
+ /*
7
+ The following CSS variables define the main, public API for styling JupyterLab.
8
+ These variables should be used by all plugins wherever possible. In other
9
+ words, plugins should not define custom colors, sizes, etc unless absolutely
10
+ necessary. This enables users to change the visual theme of JupyterLab
11
+ by changing these variables.
12
+
13
+ Many variables appear in an ordered sequence (0,1,2,3). These sequences
14
+ are designed to work well together, so for example, `--jp-border-color1` should
15
+ be used with `--jp-layout-color1`. The numbers have the following meanings:
16
+
17
+ * 0: super-primary, reserved for special emphasis
18
+ * 1: primary, most important under normal situations
19
+ * 2: secondary, next most important under normal situations
20
+ * 3: tertiary, next most important under normal situations
21
+
22
+ Throughout JupyterLab, we are mostly following principles from Google's
23
+ Material Design when selecting colors. We are not, however, following
24
+ all of MD as it is not optimized for dense, information rich UIs.
25
+ */
26
+
27
+ :root {
28
+ /* Elevation
29
+ *
30
+ * We style box-shadows using Material Design's idea of elevation. These particular numbers are taken from here:
31
+ *
32
+ * https://github.com/material-components/material-components-web
33
+ * https://material-components-web.appspot.com/elevation.html
34
+ */
35
+
36
+ /* The dark theme shadows need a bit of work, but this will probably also require work on the core layout
37
+ * colors used in the theme as well. */
38
+ --jp-shadow-base-lightness: 32;
39
+ --jp-shadow-umbra-color: rgba(
40
+ var(--jp-shadow-base-lightness),
41
+ var(--jp-shadow-base-lightness),
42
+ var(--jp-shadow-base-lightness),
43
+ 0.2
44
+ );
45
+ --jp-shadow-penumbra-color: rgba(
46
+ var(--jp-shadow-base-lightness),
47
+ var(--jp-shadow-base-lightness),
48
+ var(--jp-shadow-base-lightness),
49
+ 0.14
50
+ );
51
+ --jp-shadow-ambient-color: rgba(
52
+ var(--jp-shadow-base-lightness),
53
+ var(--jp-shadow-base-lightness),
54
+ var(--jp-shadow-base-lightness),
55
+ 0.12
56
+ );
57
+ --jp-elevation-z0: none;
58
+ --jp-elevation-z1:
59
+ 0px 2px 1px -1px var(--jp-shadow-umbra-color),
60
+ 0px 1px 1px 0px var(--jp-shadow-penumbra-color),
61
+ 0px 1px 3px 0px var(--jp-shadow-ambient-color);
62
+ --jp-elevation-z2:
63
+ 0px 3px 1px -2px var(--jp-shadow-umbra-color),
64
+ 0px 2px 2px 0px var(--jp-shadow-penumbra-color),
65
+ 0px 1px 5px 0px var(--jp-shadow-ambient-color);
66
+ --jp-elevation-z4:
67
+ 0px 2px 4px -1px var(--jp-shadow-umbra-color),
68
+ 0px 4px 5px 0px var(--jp-shadow-penumbra-color),
69
+ 0px 1px 10px 0px var(--jp-shadow-ambient-color);
70
+ --jp-elevation-z6:
71
+ 0px 3px 5px -1px var(--jp-shadow-umbra-color),
72
+ 0px 6px 10px 0px var(--jp-shadow-penumbra-color),
73
+ 0px 1px 18px 0px var(--jp-shadow-ambient-color);
74
+ --jp-elevation-z8:
75
+ 0px 5px 5px -3px var(--jp-shadow-umbra-color),
76
+ 0px 8px 10px 1px var(--jp-shadow-penumbra-color),
77
+ 0px 3px 14px 2px var(--jp-shadow-ambient-color);
78
+ --jp-elevation-z12:
79
+ 0px 7px 8px -4px var(--jp-shadow-umbra-color),
80
+ 0px 12px 17px 2px var(--jp-shadow-penumbra-color),
81
+ 0px 5px 22px 4px var(--jp-shadow-ambient-color);
82
+ --jp-elevation-z16:
83
+ 0px 8px 10px -5px var(--jp-shadow-umbra-color),
84
+ 0px 16px 24px 2px var(--jp-shadow-penumbra-color),
85
+ 0px 6px 30px 5px var(--jp-shadow-ambient-color);
86
+ --jp-elevation-z20:
87
+ 0px 10px 13px -6px var(--jp-shadow-umbra-color),
88
+ 0px 20px 31px 3px var(--jp-shadow-penumbra-color),
89
+ 0px 8px 38px 7px var(--jp-shadow-ambient-color);
90
+ --jp-elevation-z24:
91
+ 0px 11px 15px -7px var(--jp-shadow-umbra-color),
92
+ 0px 24px 38px 3px var(--jp-shadow-penumbra-color),
93
+ 0px 9px 46px 8px var(--jp-shadow-ambient-color);
94
+
95
+ /* Borders
96
+ *
97
+ * The following variables, specify the visual styling of borders in JupyterLab.
98
+ */
99
+
100
+ --jp-border-width: 1px;
101
+ --jp-border-color0: var(--md-grey-700);
102
+ --jp-border-color1: var(--md-grey-700);
103
+ --jp-border-color2: var(--md-grey-800);
104
+ --jp-border-color3: var(--md-grey-900);
105
+ --jp-border-radius: 2px;
106
+
107
+ /* UI Fonts
108
+ *
109
+ * The UI font CSS variables are used for the typography all of the JupyterLab
110
+ * user interface elements that are not directly user generated content.
111
+ *
112
+ * The font sizing here is done assuming that the body font size of --jp-ui-font-size1
113
+ * is applied to a parent element. When children elements, such as headings, are sized
114
+ * in em all things will be computed relative to that body size.
115
+ */
116
+
117
+ --jp-ui-font-scale-factor: 1.2;
118
+ --jp-ui-font-size0: 0.8333em;
119
+ --jp-ui-font-size1: 13px; /* Base font size */
120
+ --jp-ui-font-size2: 1.2em;
121
+ --jp-ui-font-size3: 1.44em;
122
+ --jp-ui-font-family:
123
+ -apple-system, blinkmacsystemfont, 'Segoe UI', helvetica, arial, sans-serif,
124
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
125
+
126
+ /*
127
+ * Use these font colors against the corresponding main layout colors.
128
+ * In a light theme, these go from dark to light.
129
+ */
130
+
131
+ --jp-ui-font-color0: rgb(195, 195, 195);
132
+ --jp-ui-font-color1: rgb(165, 165, 165);
133
+ --jp-ui-font-color2: rgb(125, 125, 125);
134
+ --jp-ui-font-color3: rgb(90, 90, 90);
135
+
136
+ /* Defaults use Material Design specification */
137
+
138
+ /*
139
+ * --jp-ui-font-color0: #a9b7c6;
140
+ * --jp-ui-font-color1: var(--md-grey-300);
141
+ * --jp-ui-font-color2: var(--md-grey-500);
142
+ * --jp-ui-font-color3: var(--md-grey-700);
143
+ *
144
+ * --jp-ui-font-color0: rgba(195, 195, 195, 1);
145
+ * --jp-ui-font-color1: rgba(195, 195, 195, 0.87);
146
+ * --jp-ui-font-color2: rgba(195, 195, 195, 0.54);
147
+ * --jp-ui-font-color3: rgba(195, 195, 195, 0.38);
148
+ */
149
+
150
+ /*
151
+ * Use these against the brand/accent/warn/error colors.
152
+ * These will typically go from light to darker, in both a dark and light theme.
153
+ */
154
+
155
+ --jp-ui-inverse-font-color0: rgba(30, 33, 36, 1);
156
+ --jp-ui-inverse-font-color1: rgba(30, 33, 36, 0.8);
157
+ --jp-ui-inverse-font-color2: rgba(30, 33, 36, 0.5);
158
+ --jp-ui-inverse-font-color3: rgba(30, 33, 36, 0.3);
159
+
160
+ /* Content Fonts
161
+ *
162
+ * Content font variables are used for typography of user generated content.
163
+ *
164
+ * The font sizing here is done assuming that the body font size of --jp-content-font-size1
165
+ * is applied to a parent element. When children elements, such as headings, are sized
166
+ * in em all things will be computed relative to that body size.
167
+ */
168
+
169
+ --jp-content-line-height: 1.6;
170
+ --jp-content-font-scale-factor: 1.2;
171
+ --jp-content-font-size0: 0.8333em;
172
+ --jp-content-font-size1: 14px; /* Base font size */
173
+ --jp-content-font-size2: 1.2em;
174
+ --jp-content-font-size3: 1.44em;
175
+ --jp-content-font-size4: 1.728em;
176
+ --jp-content-font-size5: 2.0736em;
177
+
178
+ /* This gives a magnification of about 125% in presentation mode over normal. */
179
+ --jp-content-presentation-font-size1: 1.25em;
180
+ --jp-content-heading-line-height: 1;
181
+ --jp-content-heading-margin-top: 1.2em;
182
+ --jp-content-heading-margin-bottom: 0.8em;
183
+ --jp-content-heading-font-weight: 500;
184
+
185
+ /* Shades of the default font color */
186
+ --jp-content-font-color0: rgba(187, 187, 187, 1);
187
+ --jp-content-font-color1: rgba(187, 187, 187, 1);
188
+ --jp-content-font-color2: rgba(187, 187, 187, 0.7);
189
+ --jp-content-font-color3: rgba(187, 187, 187, 0.5);
190
+ --jp-content-link-color: var(--md-blue-300);
191
+ --jp-content-font-family:
192
+ -apple-system, blinkmacsystemfont, 'Segoe UI', helvetica, arial, sans-serif,
193
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
194
+
195
+ /*
196
+ * Code Fonts
197
+ *
198
+ * Code font variables are used for typography of code and other monospaces content.
199
+ */
200
+
201
+ --jp-code-font-size: 15px;
202
+ --jp-code-line-height: 1.3077; /* 17px for 15px base */
203
+ --jp-code-padding: 0.385em; /* 5px for 15px base */
204
+ --jp-code-font-family-default:
205
+ consolas, menlo, monaco, 'Lucida Console', 'Liberation Mono',
206
+ 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace,
207
+ serif;
208
+ --jp-code-font-family: var(--jp-code-font-family-default);
209
+
210
+ /* This gives a magnification of about 125% in presentation mode over normal. */
211
+ --jp-code-presentation-font-size: 1.25em;
212
+
213
+ /* may need to tweak cursor width if you change font size */
214
+ --jp-code-cursor-width0: 2px; /* 0.107em; */
215
+ --jp-code-cursor-width1: 3px; /* 0.154em; */
216
+ --jp-code-cursor-width2: 6px; /* 0.308em; */
217
+
218
+ /* Layout
219
+ *
220
+ * The following are the main layout colors use in JupyterLab. In a light
221
+ * theme these would go from light to dark.
222
+ */
223
+
224
+ --jp-layout-color0: #2b2b2b;
225
+ --jp-layout-color1: #313335; /* var(--md-grey-900); */
226
+ --jp-layout-color2: #3c3f41; /* var(--md-grey-800); */
227
+ --jp-layout-color3: #555758; /* var(--md-grey-700); */
228
+ --jp-layout-color4: #626465; /* var(--md-grey-600); */
229
+ --jp-layout-color5: #a9b7c6;
230
+
231
+ /* Inverse Layout
232
+ *
233
+ * The following are the inverse layout colors use in JupyterLab. In a light
234
+ * theme these would go from dark to light.
235
+ */
236
+
237
+ --jp-inverse-layout-color0: white;
238
+ --jp-inverse-layout-color1: white;
239
+ --jp-inverse-layout-color2: var(--md-grey-200);
240
+ --jp-inverse-layout-color3: var(--md-grey-400);
241
+ --jp-inverse-layout-color4: var(--md-grey-600);
242
+
243
+ /* Brand/accent */
244
+
245
+ --jp-brand-color0: var(--md-blue-700);
246
+ --jp-brand-color1: var(--md-blue-500);
247
+ --jp-brand-color2: var(--md-blue-300);
248
+ --jp-brand-color3: var(--md-blue-100);
249
+ --jp-brand-color4: var(--md-blue-50);
250
+ --jp-accent-color0: var(--md-green-700);
251
+ --jp-accent-color1: var(--md-green-500);
252
+ --jp-accent-color2: var(--md-green-300);
253
+ --jp-accent-color3: var(--md-green-100);
254
+
255
+ /* State colors (warn, error, success, info) */
256
+
257
+ --jp-warn-color0: var(--md-orange-700);
258
+ --jp-warn-color1: var(--md-orange-500);
259
+ --jp-warn-color2: var(--md-orange-300);
260
+ --jp-warn-color3: var(--md-orange-100);
261
+ --jp-error-color0: var(--md-red-700);
262
+ --jp-error-color1: var(--md-red-500);
263
+ --jp-error-color2: var(--md-red-300);
264
+ --jp-error-color3: var(--md-red-100);
265
+ --jp-success-color0: var(--md-green-700);
266
+ --jp-success-color1: var(--md-green-500);
267
+ --jp-success-color2: var(--md-green-300);
268
+ --jp-success-color3: var(--md-green-100);
269
+ --jp-info-color0: var(--md-cyan-700);
270
+ --jp-info-color1: var(--md-cyan-500);
271
+ --jp-info-color2: var(--md-cyan-300);
272
+ --jp-info-color3: var(--md-cyan-100);
273
+
274
+ /* Cell specific styles */
275
+
276
+ --jp-cell-padding: 5px;
277
+ --jp-cell-collapser-width: 8px;
278
+ --jp-cell-collapser-min-height: 20px;
279
+ --jp-cell-collapser-not-active-hover-opacity: 0.6;
280
+ --jp-cell-editor-background: var(--jp-layout-color1);
281
+ --jp-cell-editor-border-color: var(--md-grey-700);
282
+ --jp-cell-editor-box-shadow: inset 0 0 2px var(--md-blue-300);
283
+ --jp-cell-editor-active-background: var(--jp-layout-color0);
284
+ --jp-cell-editor-active-border-color: var(--jp-brand-color1);
285
+ --jp-cell-prompt-width: 64px;
286
+ --jp-cell-prompt-font-family: var(--jp-code-font-family);
287
+ --jp-cell-prompt-letter-spacing: 0px;
288
+ --jp-cell-prompt-opacity: 1;
289
+ --jp-cell-prompt-not-active-opacity: 1;
290
+ --jp-cell-prompt-not-active-font-color: var(--md-grey-300);
291
+
292
+ /* A custom blend of MD grey and blue 600
293
+ * See https://meyerweb.com/eric/tools/color-blend/#546E7A:1E88E5:5:hex */
294
+ --jp-cell-inprompt-font-color: #307fc1;
295
+
296
+ /* A custom blend of MD grey and orange 600
297
+ * https://meyerweb.com/eric/tools/color-blend/#546E7A:F4511E:5:hex */
298
+ --jp-cell-outprompt-font-color: #bf5b3d;
299
+
300
+ /* Notebook specific styles */
301
+
302
+ --jp-notebook-padding: 10px;
303
+ --jp-notebook-select-background: var(--jp-layout-color1);
304
+ --jp-notebook-multiselected-color: rgba(33, 150, 243, 0.24);
305
+
306
+ /* The scroll padding is calculated to fill enough space at the bottom of the
307
+ notebook to show one single-line cell (with appropriate padding) at the top
308
+ when the notebook is scrolled all the way to the bottom. We also subtract one
309
+ pixel so that no scrollbar appears if we have just one single-line cell in the
310
+ notebook. This padding is to enable a 'scroll past end' feature in a notebook.
311
+ */
312
+ --jp-notebook-scroll-padding: calc(
313
+ 100% - var(--jp-code-font-size) * var(--jp-code-line-height) -
314
+ var(--jp-code-padding) - var(--jp-cell-padding) - 1px
315
+ );
316
+
317
+ /* Rendermime styles */
318
+
319
+ --jp-rendermime-error-background: rgba(244, 67, 54, 0.28);
320
+ --jp-rendermime-table-row-background: var(--md-grey-900);
321
+ --jp-rendermime-table-row-hover-background: rgba(3, 169, 244, 0.2);
322
+
323
+ /* Dialog specific styles */
324
+
325
+ --jp-dialog-background: rgba(0, 0, 0, 0.6);
326
+
327
+ /* Console specific styles */
328
+
329
+ --jp-console-padding: 10px;
330
+
331
+ /* Toolbar specific styles */
332
+
333
+ --jp-toolbar-border-color: var(--jp-border-color2);
334
+ --jp-toolbar-micro-height: 8px;
335
+ --jp-toolbar-background: var(--jp-layout-color1);
336
+ --jp-toolbar-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.8);
337
+ --jp-toolbar-header-margin: 4px 4px 0px 4px;
338
+ --jp-toolbar-active-background: var(--jp-layout-color0);
339
+ --jp-accept-color-hover: var(
340
+ --jp-brand-color0
341
+ ); /* added as of JL4.3, hover color for + button */
342
+
343
+ /* Statusbar specific styles */
344
+
345
+ --jp-statusbar-height: 24px;
346
+
347
+ /* Input field styles */
348
+
349
+ --jp-input-box-shadow: inset 0 0 2px var(--md-blue-300);
350
+ --jp-input-active-background: var(--jp-layout-color0);
351
+ --jp-input-hover-background: var(--jp-layout-color2);
352
+ --jp-input-background: var(--md-grey-800);
353
+ --jp-input-border-color: var(--jp-border-color1);
354
+ --jp-input-active-border-color: var(--jp-brand-color1);
355
+ --jp-input-active-box-shadow-color: rgba(19, 124, 189, 0.3);
356
+
357
+ /* General editor styles */
358
+
359
+ --jp-editor-selected-background: var(--jp-layout-color2);
360
+ --jp-editor-selected-focused-background: #214283;
361
+ --jp-editor-cursor-color: #a9b7c6; /* { border-left: 1px solid var(--jp-ui-font-color0) }; */
362
+
363
+ /*
364
+ .cm-s-darcula .CodeMirror-cursor { border-left: 1px solid #A9B7C6; }
365
+ .cm-s-darcula .CodeMirror-activeline-background { background: #323232; }
366
+ .cm-s-darcula .CodeMirror-gutters { background: #313335; border-right: 1px solid #313335; }
367
+ .cm-s-darcula .CodeMirror-guttermarker { color: #FFEE80; }
368
+ .cm-s-darcula .CodeMirror-guttermarker-subtle { color: #D0D0D0; }
369
+ .cm-s-darcula .CodeMirrir-linenumber { color: #606366; }
370
+ .cm-s-darcula .CodeMirror-matchingbracket { background-color: #3B514D; color: #FFEF28 !important; font-weight: bold; }
371
+
372
+ .cm-s-darcula div.CodeMirror-selected { background: #214283; }
373
+
374
+ .CodeMirror-hints.darcula {
375
+ font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
376
+ color: #9C9E9E;
377
+ background-color: #3B3E3F !important;
378
+ }
379
+
380
+ .CodeMirror-hints.darcula .CodeMirror-hint-active {
381
+ background-color: #494D4E !important;
382
+ color: #9C9E9E !important;
383
+ }
384
+
385
+ .cm-s-darcula { font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;}
386
+ .cm-s-darcula.CodeMirror { background: #2B2B2B; color: #A9B7C6; }
387
+
388
+ .cm-s-darcula span.cm-keyword { color: #CC7832; line-height: 1em; font-weight: bold; }
389
+ .cm-s-darcula span.cm-atom { color: #CC7832; }
390
+ .cm-s-darcula span.cm-number { color: #6897BB; }
391
+ .cm-s-darcula span.cm-def { color: #A9B7C6; font-style: italic; }
392
+ .cm-s-darcula span.cm-variable { color: #A9B7C6; }
393
+ .cm-s-darcula span.cm-variable-2 { color: #A9B7C6; }
394
+ .cm-s-darcula span.cm-variable-3 { color: #9876AA; }
395
+ .cm-s-darcula span.cm-special { color: #FF9E59; }
396
+ .cm-s-darcula span.cm-property { color: #FFC66D; }
397
+ .cm-s-darcula span.cm-operator { color: #A9B7C6; }
398
+ .cm-s-darcula span.cm-comment { color: #61A151; font-style: italic; }
399
+ .cm-s-darcula span.cm-string { color: #6A8759; }
400
+ .cm-s-darcula span.cm-string-2 { color: #6A8759; }
401
+ .cm-s-darcula span.cm-meta { color: #BBB529; }
402
+ .cm-s-darcula span.cm-qualifier { color: #6A8759; }
403
+ .cm-s-darcula span.cm-builtin { color: #FF9E59; }
404
+ .cm-s-darcula span.cm-bracket { color: #A9B7C6; }
405
+ .cm-s-darcula span.cm-tag { color: #629755; font-weight: bold; font-style: italic; text-decoration: underline; }
406
+ .cm-s-darcula span.cm-attribute { color: #6897bb; }
407
+
408
+ .cm-s-darcula span.cm-link { color: #CC7832; }
409
+ .cm-s-darcula span.cm-error { color: #BC3F3C; }
410
+
411
+ .cm-s-darcula span.cm-type { color: #AABBCC; font-weight: bold; }
412
+ */
413
+
414
+ /* Code mirror specific styles */
415
+ --jp-mirror-editor-keyword-color: #cc7832;
416
+ --jp-mirror-editor-atom-color: #cc7832;
417
+ --jp-mirror-editor-number-color: #d65950; /* changed from #6897bb */
418
+ --jp-mirror-editor-def-color: #ffc66d;
419
+ --jp-mirror-editor-variable-color: #a9b7c6;
420
+ --jp-mirror-editor-variable-2-color: #94558d;
421
+ --jp-mirror-editor-variable-3-color: #9876aa;
422
+ --jp-mirror-editor-punctuation-color: #ff9e59;
423
+ --jp-mirror-editor-property-color: #96bde6; /* changed from #a9b7c6 */
424
+ --jp-mirror-editor-operator-color: #96bde6; /* changed from #a9b7c6 */
425
+ --jp-mirror-editor-comment-color: #808080;
426
+ --jp-mirror-editor-string-color: #6a8759;
427
+ --jp-mirror-editor-string-2-color: #6a8759;
428
+ --jp-mirror-editor-meta-color: #bbb529;
429
+ --jp-mirror-editor-qualifier-color: #6a8759;
430
+ --jp-mirror-editor-builtin-color: #ff9e59;
431
+ --jp-mirror-editor-bracket-color: #a9b7c6;
432
+ --jp-mirror-editor-tag-color: #629755;
433
+ --jp-mirror-editor-attribute-color: #6897bb;
434
+ --jp-mirror-editor-header-color: var(--md-blue-500);
435
+ --jp-mirror-editor-quote-color: var(--md-green-300);
436
+ --jp-mirror-editor-link-color: #cc7832;
437
+ --jp-mirror-editor-error-color: #bc3f3c;
438
+ --jp-mirror-editor-hr-color: #999;
439
+
440
+ /* Vega extension styles */
441
+
442
+ --jp-vega-background: var(--md-grey-400);
443
+
444
+ /* Sidebar-related styles */
445
+
446
+ --jp-sidebar-min-width: 250px;
447
+
448
+ /* Search-related styles */
449
+
450
+ --jp-search-toggle-off-opacity: 0.6;
451
+ --jp-search-toggle-hover-opacity: 0.8;
452
+ --jp-search-toggle-on-opacity: 1;
453
+ --jp-search-selected-match-background-color: rgb(255, 225, 0);
454
+ --jp-search-selected-match-color: black;
455
+ --jp-search-unselected-match-background-color: var(
456
+ --jp-inverse-layout-color0
457
+ );
458
+ --jp-search-unselected-match-color: var(--jp-ui-inverse-font-color0);
459
+
460
+ /* scrollbar related styles. Supports every browser except Edge. */
461
+
462
+ --jp-scrollbar-background-color: #3f4244;
463
+ --jp-scrollbar-thumb-color:
464
+ 88, 96, 97; /* need to specify thumb color as an RGB triplet */
465
+
466
+ --jp-scrollbar-endpad: 3px; /* the minimum gap between the thumb and the ends of a scrollbar */
467
+
468
+ /* hacks for setting the thumb shape. These do nothing in Firefox */
469
+
470
+ --jp-scrollbar-thumb-margin: 3.5px; /* the space in between the sides of the thumb and the track */
471
+ --jp-scrollbar-thumb-radius: 9px; /* set to a large-ish value for rounded endcaps on the thumb */
472
+
473
+ /* Icon colors that work well with light or dark backgrounds */
474
+ --jp-icon-contrast-color0: var(--md-purple-600);
475
+ --jp-icon-contrast-color1: var(--md-green-600);
476
+ --jp-icon-contrast-color2: var(--md-pink-600);
477
+ --jp-icon-contrast-color3: var(--md-blue-600);
478
+ }