@jupyterlab/theme-dark-extension 4.0.0-alpha.19 → 4.0.0-alpha.20
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/variables.css +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/theme-dark-extension",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.20",
|
|
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-alpha.
|
|
35
|
-
"@jupyterlab/apputils": "^4.0.0-alpha.
|
|
36
|
-
"@jupyterlab/translation": "^4.0.0-alpha.
|
|
35
|
+
"@jupyterlab/application": "^4.0.0-alpha.20",
|
|
36
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.20",
|
|
37
|
+
"@jupyterlab/translation": "^4.0.0-alpha.20"
|
|
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.0-beta"
|
|
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/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);
|