@jupyterlab/theme-dark-extension 4.0.0-alpha.9 → 4.0.0-beta.0
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/package.json +8 -7
- package/src/index.ts +40 -0
- package/style/theme.css +7 -0
- package/style/variables.css +14 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/theme-dark-extension",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-beta.0",
|
|
4
4
|
"description": "JupyterLab - Default Dark Theme",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"lib/*.js.map",
|
|
24
24
|
"lib/*.js",
|
|
25
25
|
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
|
|
26
|
-
"style/index.js"
|
|
26
|
+
"style/index.js",
|
|
27
|
+
"src/**/*.{ts,tsx}"
|
|
27
28
|
],
|
|
28
29
|
"scripts": {
|
|
29
30
|
"build": "tsc -b",
|
|
@@ -31,14 +32,14 @@
|
|
|
31
32
|
"watch": "tsc -b --watch"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@jupyterlab/application": "^4.0.0-
|
|
35
|
-
"@jupyterlab/apputils": "^4.0.0-
|
|
36
|
-
"@jupyterlab/translation": "^4.0.0-
|
|
35
|
+
"@jupyterlab/application": "^4.0.0-beta.0",
|
|
36
|
+
"@jupyterlab/apputils": "^4.0.0-beta.0",
|
|
37
|
+
"@jupyterlab/translation": "^4.0.0-beta.0"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"rimraf": "~3.0.0",
|
|
40
|
-
"typedoc": "~0.
|
|
41
|
-
"typescript": "~
|
|
41
|
+
"typedoc": "~0.23.25",
|
|
42
|
+
"typescript": "~5.0.2"
|
|
42
43
|
},
|
|
43
44
|
"publishConfig": {
|
|
44
45
|
"access": "public"
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Copyright (c) Jupyter Development Team.
|
|
2
|
+
// Distributed under the terms of the Modified BSD License.
|
|
3
|
+
/**
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
* @module theme-dark-extension
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
JupyterFrontEnd,
|
|
10
|
+
JupyterFrontEndPlugin
|
|
11
|
+
} from '@jupyterlab/application';
|
|
12
|
+
import { IThemeManager } from '@jupyterlab/apputils';
|
|
13
|
+
import { ITranslator } from '@jupyterlab/translation';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A plugin for the Jupyter Dark Theme.
|
|
17
|
+
*/
|
|
18
|
+
const plugin: JupyterFrontEndPlugin<void> = {
|
|
19
|
+
id: '@jupyterlab/theme-dark-extension:plugin',
|
|
20
|
+
requires: [IThemeManager, ITranslator],
|
|
21
|
+
activate: (
|
|
22
|
+
app: JupyterFrontEnd,
|
|
23
|
+
manager: IThemeManager,
|
|
24
|
+
translator: ITranslator
|
|
25
|
+
) => {
|
|
26
|
+
const trans = translator.load('jupyterlab');
|
|
27
|
+
const style = '@jupyterlab/theme-dark-extension/index.css';
|
|
28
|
+
manager.register({
|
|
29
|
+
name: 'JupyterLab Dark',
|
|
30
|
+
displayName: trans.__('JupyterLab Dark'),
|
|
31
|
+
isLight: false,
|
|
32
|
+
themeScrollbars: true,
|
|
33
|
+
load: () => manager.loadCSS(style),
|
|
34
|
+
unload: () => Promise.resolve(undefined)
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
autoStart: true
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default plugin;
|
package/style/theme.css
CHANGED
|
@@ -15,3 +15,10 @@ pre {
|
|
|
15
15
|
font-size: var(--jp-code-font-size);
|
|
16
16
|
line-height: var(--jp-code-line-height);
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
/* fix illegible yellow backround in exception stacktrace */
|
|
20
|
+
:where(.jp-RenderedText[data-mime-type='application/vnd.jupyter.stderr']
|
|
21
|
+
pre
|
|
22
|
+
.ansi-yellow-bg) {
|
|
23
|
+
color: black;
|
|
24
|
+
}
|
package/style/variables.css
CHANGED
|
@@ -339,7 +339,7 @@ all of MD as it is not optimized for dense, information rich UIs.
|
|
|
339
339
|
--jp-mirror-editor-number-color: var(--md-green-400);
|
|
340
340
|
--jp-mirror-editor-def-color: var(--md-blue-600);
|
|
341
341
|
--jp-mirror-editor-variable-color: var(--md-grey-300);
|
|
342
|
-
--jp-mirror-editor-variable-2-color: var(--md-blue-
|
|
342
|
+
--jp-mirror-editor-variable-2-color: var(--md-blue-500);
|
|
343
343
|
--jp-mirror-editor-variable-3-color: var(--md-green-600);
|
|
344
344
|
--jp-mirror-editor-punctuation-color: var(--md-blue-400);
|
|
345
345
|
--jp-mirror-editor-property-color: var(--md-blue-400);
|
|
@@ -422,4 +422,17 @@ all of MD as it is not optimized for dense, information rich UIs.
|
|
|
422
422
|
--jp-reject-color-normal: var(--md-grey-600);
|
|
423
423
|
--jp-reject-color-hover: var(--md-grey-700);
|
|
424
424
|
--jp-reject-color-active: var(--md-grey-800);
|
|
425
|
+
|
|
426
|
+
/* File or activity icons and switch semantic variables */
|
|
427
|
+
--jp-jupyter-icon-color: #f37626;
|
|
428
|
+
--jp-notebook-icon-color: #f37626;
|
|
429
|
+
--jp-json-icon-color: var(--md-orange-500);
|
|
430
|
+
--jp-console-icon-background-color: var(--md-blue-500);
|
|
431
|
+
--jp-console-icon-color: white;
|
|
432
|
+
--jp-terminal-icon-background-color: var(--md-grey-200);
|
|
433
|
+
--jp-terminal-icon-color: var(--md-grey-800);
|
|
434
|
+
--jp-text-editor-icon-color: var(--md-grey-200);
|
|
435
|
+
--jp-inspector-icon-color: var(--md-grey-200);
|
|
436
|
+
--jp-switch-color: var(--md-grey-400);
|
|
437
|
+
--jp-switch-true-position-color: var(--md-orange-700);
|
|
425
438
|
}
|