@rathkit/rte-themes 0.0.0 → 0.1.0-alpha.3
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/README.md +33 -3
- package/css/auto.css +86 -0
- package/css/dark.css +40 -0
- package/css/density.css +18 -0
- package/css/high-contrast.css +40 -0
- package/css/light.css +40 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/tokens.d.ts +5 -0
- package/dist/tokens.js +38 -0
- package/package.json +47 -3
package/README.md
CHANGED
|
@@ -1,11 +1,41 @@
|
|
|
1
1
|
# @rathkit/rte-themes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> **Alpha** (0.1.0-alpha.0). Not for production: the APIs will change between releases. Published to the `next` tag only.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Preset themes (light, dark, auto, high contrast) and a density setting, as CSS files of `--rk-*` custom properties, with tests that every pair of colors meets its contrast ratio.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
6
8
|
|
|
7
9
|
```sh
|
|
8
10
|
npm install @rathkit/rte-themes@next
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
No dependencies, and nothing runs when it is installed.
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import { createEditor } from "@rathkit/rte-core/standard";
|
|
19
|
+
import { createStandardUi } from "@rathkit/rte-ui/standard";
|
|
20
|
+
import "@rathkit/rte-ui/base.css";
|
|
21
|
+
import "@rathkit/rte-themes/dark.css";
|
|
22
|
+
|
|
23
|
+
const root = document.createElement("div");
|
|
24
|
+
document.body.append(root);
|
|
25
|
+
const surface = document.createElement("div");
|
|
26
|
+
surface.setAttribute("aria-label", "Body");
|
|
27
|
+
|
|
28
|
+
const editor = createEditor({ element: surface, html: "<p>Hello</p>" });
|
|
29
|
+
editor.subscribe(() => console.log(editor.getHtml()));
|
|
30
|
+
createStandardUi(editor, { root, style: { theme: "dark" } });
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The other presets are `light.css`, `auto.css` (follows the system's dark setting) and `high-contrast.css`, with `density.css` for compact and comfortable spacing; the token names are also exported from the package entry point (`TOKENS`).
|
|
34
|
+
|
|
35
|
+
## More
|
|
36
|
+
|
|
37
|
+
Documentation: <https://rathkit.com>. Source and issues: <https://github.com/rathkit/rte>. What is checked: [SUPPORT.md](https://github.com/rathkit/rte/blob/main/docs/SUPPORT.md). Changes: [CHANGELOG.md](https://github.com/rathkit/rte/blob/main/CHANGELOG.md). How a release is verified: [VERIFY.md](https://github.com/rathkit/rte/blob/main/docs/VERIFY.md).
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
[Apache-2.0](LICENSE)
|
package/css/auto.css
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* Rathkit RTE theme: auto. Token values only: no rules for any part. Load it after the base styles of @rathkit/rte-ui.
|
|
2
|
+
Scope: any element with data-rk-theme="auto" (normally the .rk-root of an editor), never :root. */
|
|
3
|
+
:where([data-rk-theme="auto"]) {
|
|
4
|
+
--rk-space-1: 4px;
|
|
5
|
+
--rk-space-2: 8px;
|
|
6
|
+
--rk-space-3: 12px;
|
|
7
|
+
--rk-space-4: 16px;
|
|
8
|
+
--rk-control-size: 32px;
|
|
9
|
+
--rk-radius-s: 4px;
|
|
10
|
+
--rk-radius-m: 8px;
|
|
11
|
+
--rk-border-width: 1px;
|
|
12
|
+
--rk-focus-width: 2px;
|
|
13
|
+
--rk-focus-offset: 2px;
|
|
14
|
+
--rk-font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
15
|
+
--rk-font-content: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
16
|
+
--rk-font-heading: "Archivo", "Instrument Sans", system-ui, sans-serif;
|
|
17
|
+
--rk-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
18
|
+
--rk-font-size: 16px;
|
|
19
|
+
--rk-line-height: 1.55;
|
|
20
|
+
--rk-motion-duration: 120ms;
|
|
21
|
+
--rk-shadow-popover: 0 6px 24px rgb(20 24 31 / 0.18), 0 1px 3px rgb(20 24 31 / 0.12);
|
|
22
|
+
--rk-bg: #ffffff;
|
|
23
|
+
--rk-surface: #f4f6f9;
|
|
24
|
+
--rk-surface-raised: #ffffff;
|
|
25
|
+
--rk-fg: #14181f;
|
|
26
|
+
--rk-fg-muted: #505b6b;
|
|
27
|
+
--rk-border: #78849a;
|
|
28
|
+
--rk-border-subtle: #d4dae3;
|
|
29
|
+
--rk-accent: #17408b;
|
|
30
|
+
--rk-accent-fg: #ffffff;
|
|
31
|
+
--rk-accent-subtle: #e3ecfa;
|
|
32
|
+
--rk-danger: #b3261e;
|
|
33
|
+
--rk-selection-bg: #cddffa;
|
|
34
|
+
--rk-control-hover: #e6ebf3;
|
|
35
|
+
--rk-control-active: #d3dcec;
|
|
36
|
+
--rk-brand: #b9812a;
|
|
37
|
+
--rk-brand-text: #86590f;
|
|
38
|
+
--rk-focus-color: #17408b;
|
|
39
|
+
color-scheme: light dark;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (prefers-color-scheme: dark) {
|
|
43
|
+
:where([data-rk-theme="auto"]:not([data-rk-scheme="light"])) {
|
|
44
|
+
--rk-bg: #10151d;
|
|
45
|
+
--rk-surface: #171e29;
|
|
46
|
+
--rk-surface-raised: #1d2633;
|
|
47
|
+
--rk-fg: #eaeef4;
|
|
48
|
+
--rk-fg-muted: #a9b4c3;
|
|
49
|
+
--rk-border: #6b7789;
|
|
50
|
+
--rk-border-subtle: #2b3646;
|
|
51
|
+
--rk-accent: #6fa0e8;
|
|
52
|
+
--rk-accent-fg: #0b1a33;
|
|
53
|
+
--rk-accent-subtle: #1d3257;
|
|
54
|
+
--rk-danger: #ff8f86;
|
|
55
|
+
--rk-selection-bg: #294a80;
|
|
56
|
+
--rk-control-hover: #243044;
|
|
57
|
+
--rk-control-active: #2f3e57;
|
|
58
|
+
--rk-brand: #e0a850;
|
|
59
|
+
--rk-brand-text: #e0a850;
|
|
60
|
+
--rk-focus-color: #9bc0f5;
|
|
61
|
+
--rk-shadow-popover: 0 6px 24px rgb(0 0 0 / 0.5), 0 1px 3px rgb(0 0 0 / 0.4);
|
|
62
|
+
color-scheme: dark;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where([data-rk-theme="auto"][data-rk-scheme="dark"]) {
|
|
67
|
+
--rk-bg: #10151d;
|
|
68
|
+
--rk-surface: #171e29;
|
|
69
|
+
--rk-surface-raised: #1d2633;
|
|
70
|
+
--rk-fg: #eaeef4;
|
|
71
|
+
--rk-fg-muted: #a9b4c3;
|
|
72
|
+
--rk-border: #6b7789;
|
|
73
|
+
--rk-border-subtle: #2b3646;
|
|
74
|
+
--rk-accent: #6fa0e8;
|
|
75
|
+
--rk-accent-fg: #0b1a33;
|
|
76
|
+
--rk-accent-subtle: #1d3257;
|
|
77
|
+
--rk-danger: #ff8f86;
|
|
78
|
+
--rk-selection-bg: #294a80;
|
|
79
|
+
--rk-control-hover: #243044;
|
|
80
|
+
--rk-control-active: #2f3e57;
|
|
81
|
+
--rk-brand: #e0a850;
|
|
82
|
+
--rk-brand-text: #e0a850;
|
|
83
|
+
--rk-focus-color: #9bc0f5;
|
|
84
|
+
--rk-shadow-popover: 0 6px 24px rgb(0 0 0 / 0.5), 0 1px 3px rgb(0 0 0 / 0.4);
|
|
85
|
+
color-scheme: dark;
|
|
86
|
+
}
|
package/css/dark.css
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Rathkit RTE theme: dark. Token values only: no rules for any part. Load it after the base styles of @rathkit/rte-ui.
|
|
2
|
+
Scope: any element with data-rk-theme="dark" (normally the .rk-root of an editor), never :root. */
|
|
3
|
+
:where([data-rk-theme="dark"]) {
|
|
4
|
+
--rk-space-1: 4px;
|
|
5
|
+
--rk-space-2: 8px;
|
|
6
|
+
--rk-space-3: 12px;
|
|
7
|
+
--rk-space-4: 16px;
|
|
8
|
+
--rk-control-size: 32px;
|
|
9
|
+
--rk-radius-s: 4px;
|
|
10
|
+
--rk-radius-m: 8px;
|
|
11
|
+
--rk-border-width: 1px;
|
|
12
|
+
--rk-focus-width: 2px;
|
|
13
|
+
--rk-focus-offset: 2px;
|
|
14
|
+
--rk-font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
15
|
+
--rk-font-content: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
16
|
+
--rk-font-heading: "Archivo", "Instrument Sans", system-ui, sans-serif;
|
|
17
|
+
--rk-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
18
|
+
--rk-font-size: 16px;
|
|
19
|
+
--rk-line-height: 1.55;
|
|
20
|
+
--rk-motion-duration: 120ms;
|
|
21
|
+
--rk-shadow-popover: 0 6px 24px rgb(0 0 0 / 0.5), 0 1px 3px rgb(0 0 0 / 0.4);
|
|
22
|
+
--rk-bg: #10151d;
|
|
23
|
+
--rk-surface: #171e29;
|
|
24
|
+
--rk-surface-raised: #1d2633;
|
|
25
|
+
--rk-fg: #eaeef4;
|
|
26
|
+
--rk-fg-muted: #a9b4c3;
|
|
27
|
+
--rk-border: #6b7789;
|
|
28
|
+
--rk-border-subtle: #2b3646;
|
|
29
|
+
--rk-accent: #6fa0e8;
|
|
30
|
+
--rk-accent-fg: #0b1a33;
|
|
31
|
+
--rk-accent-subtle: #1d3257;
|
|
32
|
+
--rk-danger: #ff8f86;
|
|
33
|
+
--rk-selection-bg: #294a80;
|
|
34
|
+
--rk-control-hover: #243044;
|
|
35
|
+
--rk-control-active: #2f3e57;
|
|
36
|
+
--rk-brand: #e0a850;
|
|
37
|
+
--rk-brand-text: #e0a850;
|
|
38
|
+
--rk-focus-color: #9bc0f5;
|
|
39
|
+
color-scheme: dark;
|
|
40
|
+
}
|
package/css/density.css
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* Density: set data-rk-density="compact" or "comfortable" on the root. It changes space and control size only, whatever the theme. */
|
|
2
|
+
:where([data-rk-density="compact"]) {
|
|
3
|
+
--rk-space-1: 2px;
|
|
4
|
+
--rk-space-2: 4px;
|
|
5
|
+
--rk-space-3: 8px;
|
|
6
|
+
--rk-space-4: 12px;
|
|
7
|
+
--rk-control-size: 28px;
|
|
8
|
+
--rk-font-size: 15px;
|
|
9
|
+
--rk-line-height: 1.5;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where([data-rk-density="comfortable"]) {
|
|
13
|
+
--rk-space-1: 6px;
|
|
14
|
+
--rk-space-2: 10px;
|
|
15
|
+
--rk-space-3: 14px;
|
|
16
|
+
--rk-space-4: 20px;
|
|
17
|
+
--rk-control-size: 40px;
|
|
18
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Rathkit RTE theme: high-contrast. Token values only: no rules for any part. Load it after the base styles of @rathkit/rte-ui.
|
|
2
|
+
Scope: any element with data-rk-theme="high-contrast" (normally the .rk-root of an editor), never :root. */
|
|
3
|
+
:where([data-rk-theme="high-contrast"]) {
|
|
4
|
+
--rk-space-1: 4px;
|
|
5
|
+
--rk-space-2: 8px;
|
|
6
|
+
--rk-space-3: 12px;
|
|
7
|
+
--rk-space-4: 16px;
|
|
8
|
+
--rk-control-size: 32px;
|
|
9
|
+
--rk-radius-s: 4px;
|
|
10
|
+
--rk-radius-m: 8px;
|
|
11
|
+
--rk-border-width: 2px;
|
|
12
|
+
--rk-focus-width: 3px;
|
|
13
|
+
--rk-focus-offset: 2px;
|
|
14
|
+
--rk-font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
15
|
+
--rk-font-content: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
16
|
+
--rk-font-heading: "Archivo", "Instrument Sans", system-ui, sans-serif;
|
|
17
|
+
--rk-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
18
|
+
--rk-font-size: 16px;
|
|
19
|
+
--rk-line-height: 1.55;
|
|
20
|
+
--rk-motion-duration: 0ms;
|
|
21
|
+
--rk-shadow-popover: none;
|
|
22
|
+
--rk-bg: #000000;
|
|
23
|
+
--rk-surface: #000000;
|
|
24
|
+
--rk-surface-raised: #000000;
|
|
25
|
+
--rk-fg: #ffffff;
|
|
26
|
+
--rk-fg-muted: #e6e6e6;
|
|
27
|
+
--rk-border: #ffffff;
|
|
28
|
+
--rk-border-subtle: #ffffff;
|
|
29
|
+
--rk-accent: #ffd54a;
|
|
30
|
+
--rk-accent-fg: #000000;
|
|
31
|
+
--rk-accent-subtle: #2a2a00;
|
|
32
|
+
--rk-danger: #ff9a9a;
|
|
33
|
+
--rk-selection-bg: #0a3cff;
|
|
34
|
+
--rk-control-hover: #1f1f1f;
|
|
35
|
+
--rk-control-active: #3a3a3a;
|
|
36
|
+
--rk-brand: #ffd54a;
|
|
37
|
+
--rk-brand-text: #ffd54a;
|
|
38
|
+
--rk-focus-color: #ffd54a;
|
|
39
|
+
color-scheme: dark;
|
|
40
|
+
}
|
package/css/light.css
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Rathkit RTE theme: light. Token values only: no rules for any part. Load it after the base styles of @rathkit/rte-ui.
|
|
2
|
+
Scope: any element with data-rk-theme="light" (normally the .rk-root of an editor), never :root. */
|
|
3
|
+
:where([data-rk-theme="light"]) {
|
|
4
|
+
--rk-space-1: 4px;
|
|
5
|
+
--rk-space-2: 8px;
|
|
6
|
+
--rk-space-3: 12px;
|
|
7
|
+
--rk-space-4: 16px;
|
|
8
|
+
--rk-control-size: 32px;
|
|
9
|
+
--rk-radius-s: 4px;
|
|
10
|
+
--rk-radius-m: 8px;
|
|
11
|
+
--rk-border-width: 1px;
|
|
12
|
+
--rk-focus-width: 2px;
|
|
13
|
+
--rk-focus-offset: 2px;
|
|
14
|
+
--rk-font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
15
|
+
--rk-font-content: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
16
|
+
--rk-font-heading: "Archivo", "Instrument Sans", system-ui, sans-serif;
|
|
17
|
+
--rk-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
18
|
+
--rk-font-size: 16px;
|
|
19
|
+
--rk-line-height: 1.55;
|
|
20
|
+
--rk-motion-duration: 120ms;
|
|
21
|
+
--rk-shadow-popover: 0 6px 24px rgb(20 24 31 / 0.18), 0 1px 3px rgb(20 24 31 / 0.12);
|
|
22
|
+
--rk-bg: #ffffff;
|
|
23
|
+
--rk-surface: #f4f6f9;
|
|
24
|
+
--rk-surface-raised: #ffffff;
|
|
25
|
+
--rk-fg: #14181f;
|
|
26
|
+
--rk-fg-muted: #505b6b;
|
|
27
|
+
--rk-border: #78849a;
|
|
28
|
+
--rk-border-subtle: #d4dae3;
|
|
29
|
+
--rk-accent: #17408b;
|
|
30
|
+
--rk-accent-fg: #ffffff;
|
|
31
|
+
--rk-accent-subtle: #e3ecfa;
|
|
32
|
+
--rk-danger: #b3261e;
|
|
33
|
+
--rk-selection-bg: #cddffa;
|
|
34
|
+
--rk-control-hover: #e6ebf3;
|
|
35
|
+
--rk-control-active: #d3dcec;
|
|
36
|
+
--rk-brand: #b9812a;
|
|
37
|
+
--rk-brand-text: #86590f;
|
|
38
|
+
--rk-focus-color: #17408b;
|
|
39
|
+
color-scheme: light;
|
|
40
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { THEMES, TOKENS, type ThemeName, type TokenName } from "./tokens.ts";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { THEMES, TOKENS } from "./tokens.js";
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const TOKENS: readonly ["--rk-accent", "--rk-accent-fg", "--rk-accent-subtle", "--rk-bg", "--rk-border", "--rk-border-subtle", "--rk-border-width", "--rk-brand", "--rk-brand-text", "--rk-control-active", "--rk-control-hover", "--rk-control-size", "--rk-danger", "--rk-fg", "--rk-fg-muted", "--rk-focus-color", "--rk-focus-offset", "--rk-focus-width", "--rk-font-content", "--rk-font-heading", "--rk-font-mono", "--rk-font-size", "--rk-font-ui", "--rk-line-height", "--rk-motion-duration", "--rk-radius-m", "--rk-radius-s", "--rk-selection-bg", "--rk-shadow-popover", "--rk-space-1", "--rk-space-2", "--rk-space-3", "--rk-space-4", "--rk-surface", "--rk-surface-raised"];
|
|
2
|
+
export type TokenName = (typeof TOKENS)[number];
|
|
3
|
+
/** Themes that ship as CSS files in this package. */
|
|
4
|
+
export declare const THEMES: readonly ["light", "dark", "auto", "high-contrast"];
|
|
5
|
+
export type ThemeName = (typeof THEMES)[number];
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const TOKENS = [
|
|
2
|
+
"--rk-accent",
|
|
3
|
+
"--rk-accent-fg",
|
|
4
|
+
"--rk-accent-subtle",
|
|
5
|
+
"--rk-bg",
|
|
6
|
+
"--rk-border",
|
|
7
|
+
"--rk-border-subtle",
|
|
8
|
+
"--rk-border-width",
|
|
9
|
+
"--rk-brand",
|
|
10
|
+
"--rk-brand-text",
|
|
11
|
+
"--rk-control-active",
|
|
12
|
+
"--rk-control-hover",
|
|
13
|
+
"--rk-control-size",
|
|
14
|
+
"--rk-danger",
|
|
15
|
+
"--rk-fg",
|
|
16
|
+
"--rk-fg-muted",
|
|
17
|
+
"--rk-focus-color",
|
|
18
|
+
"--rk-focus-offset",
|
|
19
|
+
"--rk-focus-width",
|
|
20
|
+
"--rk-font-content",
|
|
21
|
+
"--rk-font-heading",
|
|
22
|
+
"--rk-font-mono",
|
|
23
|
+
"--rk-font-size",
|
|
24
|
+
"--rk-font-ui",
|
|
25
|
+
"--rk-line-height",
|
|
26
|
+
"--rk-motion-duration",
|
|
27
|
+
"--rk-radius-m",
|
|
28
|
+
"--rk-radius-s",
|
|
29
|
+
"--rk-selection-bg",
|
|
30
|
+
"--rk-shadow-popover",
|
|
31
|
+
"--rk-space-1",
|
|
32
|
+
"--rk-space-2",
|
|
33
|
+
"--rk-space-3",
|
|
34
|
+
"--rk-space-4",
|
|
35
|
+
"--rk-surface",
|
|
36
|
+
"--rk-surface-raised",
|
|
37
|
+
];
|
|
38
|
+
export const THEMES = ["light", "dark", "auto", "high-contrast"];
|
package/package.json
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rathkit/rte-themes",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0-alpha.3",
|
|
4
|
+
"description": "Preset themes for the Rathkit RTE interface: design token values, as plain CSS.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rich-text",
|
|
7
|
+
"editor",
|
|
8
|
+
"wysiwyg",
|
|
9
|
+
"contenteditable",
|
|
10
|
+
"zero-dependencies",
|
|
11
|
+
"typescript",
|
|
12
|
+
"themes",
|
|
13
|
+
"css-variables"
|
|
14
|
+
],
|
|
5
15
|
"license": "Apache-2.0",
|
|
6
16
|
"homepage": "https://rathkit.com",
|
|
7
17
|
"repository": {
|
|
@@ -12,7 +22,41 @@
|
|
|
12
22
|
"bugs": {
|
|
13
23
|
"url": "https://github.com/rathkit/rte/issues"
|
|
14
24
|
},
|
|
25
|
+
"type": "module",
|
|
26
|
+
"sideEffects": [
|
|
27
|
+
"*.css"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=22.14.0"
|
|
31
|
+
},
|
|
15
32
|
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
33
|
+
"access": "public",
|
|
34
|
+
"provenance": true,
|
|
35
|
+
"tag": "next"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"NOTICE",
|
|
40
|
+
"css",
|
|
41
|
+
"!dist/**/*.map"
|
|
42
|
+
],
|
|
43
|
+
"exports": {
|
|
44
|
+
".": {
|
|
45
|
+
"types": "./dist/index.d.ts",
|
|
46
|
+
"default": "./dist/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./light.css": "./css/light.css",
|
|
49
|
+
"./dark.css": "./css/dark.css",
|
|
50
|
+
"./auto.css": "./css/auto.css",
|
|
51
|
+
"./high-contrast.css": "./css/high-contrast.css",
|
|
52
|
+
"./density.css": "./css/density.css"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json && tsc -p tsconfig.build.js.json",
|
|
56
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
57
|
+
"test": "node --test \"src/**/*.test.ts\""
|
|
58
|
+
},
|
|
59
|
+
"rathkit": {
|
|
60
|
+
"budgets": []
|
|
17
61
|
}
|
|
18
62
|
}
|