@richhtmleditor/themes 1.0.0 → 1.1.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/README.md +90 -83
- package/package.json +1 -1
- package/src/richhtmleditor.css +1364 -95
package/README.md
CHANGED
|
@@ -1,83 +1,90 @@
|
|
|
1
|
-
# @richhtmleditor/themes
|
|
2
|
-
|
|
3
|
-
Shared CSS for Rich HTML Editor — toolbar, content area, outline panel, selection mini-toolbar, tables, and dark mode tokens. Pair with [`@richhtmleditor/core`](https://www.npmjs.com/package/@richhtmleditor/core) or any framework wrapper.
|
|
4
|
-
|
|
5
|
-
**Current release: 1.
|
|
6
|
-
|
|
7
|
-
**Repository:** [github.com/rajkishorsahu89/richhtmleditor](https://github.com/rajkishorsahu89/richhtmleditor)
|
|
8
|
-
|
|
9
|
-
**Demo:** [richhtmleditor.vercel.app](https://richhtmleditor.vercel.app/) — [demo](https://richhtmleditor.vercel.app/demo) · [guide](https://richhtmleditor.vercel.app/guide) · [API](https://richhtmleditor.vercel.app/api). Doc Preview joint demo: [doc-preview-app.vercel.app/demo/enterprise](https://doc-preview-app.vercel.app/demo/enterprise)
|
|
10
|
-
|
|
11
|
-
### What's in 1.
|
|
12
|
-
|
|
13
|
-
- **`richhtmleditor.css`** — complete editor chrome (toolbar rows, buttons, dropdowns, content area)
|
|
14
|
-
- **Dark mode** — `.de-root--dark` class toggled when `dark: true` is passed to `createEditor`
|
|
15
|
-
- **CSS variables** — `--de-primary`, `--de-toolbar-bg`, `--de-content-bg`, `--de-border`, and more for theming
|
|
16
|
-
- **Component styles** — outline panel, TOC nav, selection mini-toolbar, tables, collapsible sections, workflow bar slots
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
| `@richhtmleditor/themes
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
| `--de-
|
|
70
|
-
| `--de-
|
|
71
|
-
| `--de-
|
|
72
|
-
| `--de-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
- [`@richhtmleditor/
|
|
78
|
-
- [`@richhtmleditor/
|
|
79
|
-
- [`@richhtmleditor/
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
[
|
|
1
|
+
# @richhtmleditor/themes
|
|
2
|
+
|
|
3
|
+
Shared CSS for Rich HTML Editor — toolbar, content area, outline panel, selection mini-toolbar, tables, and dark mode tokens. Pair with [`@richhtmleditor/core`](https://www.npmjs.com/package/@richhtmleditor/core) or any framework wrapper.
|
|
4
|
+
|
|
5
|
+
**Current release: 1.1.0**
|
|
6
|
+
|
|
7
|
+
**Repository:** [github.com/rajkishorsahu89/richhtmleditor](https://github.com/rajkishorsahu89/richhtmleditor)
|
|
8
|
+
|
|
9
|
+
**Demo:** [richhtmleditor.vercel.app](https://richhtmleditor.vercel.app/) — [demo](https://richhtmleditor.vercel.app/demo) · [guide](https://richhtmleditor.vercel.app/guide) · [API](https://richhtmleditor.vercel.app/api). Doc Preview joint demo: [doc-preview-app.vercel.app/demo/enterprise](https://doc-preview-app.vercel.app/demo/enterprise)
|
|
10
|
+
|
|
11
|
+
### What's in 1.1.0
|
|
12
|
+
|
|
13
|
+
- **`richhtmleditor.css`** — complete editor chrome (toolbar rows, buttons, dropdowns, content area)
|
|
14
|
+
- **Dark mode** — `.de-root--dark` class toggled when `dark: true` is passed to `createEditor`
|
|
15
|
+
- **CSS variables** — `--de-primary`, `--de-toolbar-bg`, `--de-content-bg`, `--de-border`, and more for theming
|
|
16
|
+
- **Component styles** — outline panel, TOC nav, selection mini-toolbar, tables, collapsible sections, workflow bar slots
|
|
17
|
+
- **New in 1.1.0** — slash command menu, block drag handles, drop indicator, paste special modal, track changes panel styles
|
|
18
|
+
|
|
19
|
+
> Side-effect CSS package — import once globally or in your bundler entry. No JavaScript runtime.
|
|
20
|
+
|
|
21
|
+
**Keywords:** `richhtmleditor` `css` `theme` `dark-mode` `wysiwyg`
|
|
22
|
+
|
|
23
|
+
## Install
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install @richhtmleditor/themes
|
|
27
|
+
# Typically installed alongside @richhtmleditor/core or a framework wrapper.
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage — bundler import
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import "@richhtmleditor/themes/richhtmleditor.css";
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Usage — Angular `angular.json`
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
"styles": ["node_modules/@richhtmleditor/themes/richhtmleditor.css"]
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage — dark mode
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
createEditor({
|
|
46
|
+
element: el,
|
|
47
|
+
dark: true,
|
|
48
|
+
theme: {
|
|
49
|
+
primary: "#7c3aed",
|
|
50
|
+
toolbarBg: "#1e293b",
|
|
51
|
+
contentBg: "#0f172a"
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The editor root receives `de-root--dark` and your `theme` tokens map to CSS variables on `#richhtmleditor-root.de-root`.
|
|
57
|
+
|
|
58
|
+
## API
|
|
59
|
+
|
|
60
|
+
| Export | Description |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| `@richhtmleditor/themes` | Alias for `richhtmleditor.css`. |
|
|
63
|
+
| `@richhtmleditor/themes/richhtmleditor.css` | Main stylesheet path. |
|
|
64
|
+
|
|
65
|
+
### Key CSS variables
|
|
66
|
+
|
|
67
|
+
| Variable | Default (light) | Used for |
|
|
68
|
+
| --- | --- | --- |
|
|
69
|
+
| `--de-primary` | `#2563eb` | Buttons, links, accents |
|
|
70
|
+
| `--de-toolbar-bg` | `#ffffff` | Toolbar background |
|
|
71
|
+
| `--de-content-bg` | `#ffffff` | Editable content area |
|
|
72
|
+
| `--de-text-primary` | `#0f172a` | Body text |
|
|
73
|
+
| `--de-border` | `#e2e8f0` | Dividers and borders |
|
|
74
|
+
|
|
75
|
+
## Related packages
|
|
76
|
+
|
|
77
|
+
- [`@richhtmleditor/core`](https://www.npmjs.com/package/@richhtmleditor/core) — editor engine (auto-required by wrappers).
|
|
78
|
+
- [`@richhtmleditor/angular`](https://www.npmjs.com/package/@richhtmleditor/angular) — Angular component.
|
|
79
|
+
- [`@richhtmleditor/react`](https://www.npmjs.com/package/@richhtmleditor/react) — React component.
|
|
80
|
+
- [`@richhtmleditor/vue`](https://www.npmjs.com/package/@richhtmleditor/vue) — Vue 3 component.
|
|
81
|
+
- [`@richhtmleditor/diagrams`](https://www.npmjs.com/package/@richhtmleditor/diagrams) — Mermaid diagrams plugin.
|
|
82
|
+
- [`@richhtmleditor/math`](https://www.npmjs.com/package/@richhtmleditor/math) — LaTeX/MathML equation plugin.
|
|
83
|
+
- [`@richhtmleditor/export`](https://www.npmjs.com/package/@richhtmleditor/export) — DOCX/PDF/HTML export plugin.
|
|
84
|
+
- [`@richhtmleditor/spellcheck`](https://www.npmjs.com/package/@richhtmleditor/spellcheck) — real-time spell check plugin.
|
|
85
|
+
- [`@richhtmleditor/templates`](https://www.npmjs.com/package/@richhtmleditor/templates) — document templates plugin.
|
|
86
|
+
- [`@richhtmleditor/mentions`](https://www.npmjs.com/package/@richhtmleditor/mentions) — @ mentions plugin.
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
|
|
90
|
+
[MIT](./LICENSE)
|