@richhtmleditor/themes 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rajkishor Sahu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,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.0.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.0.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
+
18
+ > Side-effect CSS package — import once globally or in your bundler entry. No JavaScript runtime.
19
+
20
+ **Keywords:** `richhtmleditor` `css` `theme` `dark-mode` `wysiwyg`
21
+
22
+ ## Install
23
+
24
+ ```bash
25
+ npm install @richhtmleditor/themes
26
+ # Typically installed alongside @richhtmleditor/core or a framework wrapper.
27
+ ```
28
+
29
+ ## Usage — bundler import
30
+
31
+ ```ts
32
+ import "@richhtmleditor/themes/richhtmleditor.css";
33
+ ```
34
+
35
+ ## Usage — Angular `angular.json`
36
+
37
+ ```json
38
+ "styles": ["node_modules/@richhtmleditor/themes/richhtmleditor.css"]
39
+ ```
40
+
41
+ ## Usage — dark mode
42
+
43
+ ```ts
44
+ createEditor({
45
+ element: el,
46
+ dark: true,
47
+ theme: {
48
+ primary: "#7c3aed",
49
+ toolbarBg: "#1e293b",
50
+ contentBg: "#0f172a"
51
+ }
52
+ });
53
+ ```
54
+
55
+ The editor root receives `de-root--dark` and your `theme` tokens map to CSS variables on `#richhtmleditor-root.de-root`.
56
+
57
+ ## API
58
+
59
+ | Export | Description |
60
+ | --- | --- |
61
+ | `@richhtmleditor/themes` | Alias for `richhtmleditor.css`. |
62
+ | `@richhtmleditor/themes/richhtmleditor.css` | Main stylesheet path. |
63
+
64
+ ### Key CSS variables
65
+
66
+ | Variable | Default (light) | Used for |
67
+ | --- | --- | --- |
68
+ | `--de-primary` | `#2563eb` | Buttons, links, accents |
69
+ | `--de-toolbar-bg` | `#ffffff` | Toolbar background |
70
+ | `--de-content-bg` | `#ffffff` | Editable content area |
71
+ | `--de-text-primary` | `#0f172a` | Body text |
72
+ | `--de-border` | `#e2e8f0` | Dividers and borders |
73
+
74
+ ## Related packages
75
+
76
+ - [`@richhtmleditor/core`](https://www.npmjs.com/package/@richhtmleditor/core) — editor engine (auto-required by wrappers).
77
+ - [`@richhtmleditor/angular`](https://www.npmjs.com/package/@richhtmleditor/angular) — Angular component.
78
+ - [`@richhtmleditor/react`](https://www.npmjs.com/package/@richhtmleditor/react) — React component.
79
+ - [`@richhtmleditor/vue`](https://www.npmjs.com/package/@richhtmleditor/vue) — Vue 3 component.
80
+
81
+ ## License
82
+
83
+ [MIT](./LICENSE)
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@richhtmleditor/themes",
3
+ "version": "1.0.0",
4
+ "description": "CSS themes for Rich HTML Editor.",
5
+ "type": "module",
6
+ "style": "./src/richhtmleditor.css",
7
+ "exports": {
8
+ ".": "./src/richhtmleditor.css",
9
+ "./richhtmleditor.css": "./src/richhtmleditor.css"
10
+ },
11
+ "files": [
12
+ "src",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "sideEffects": [
17
+ "**/*.css"
18
+ ],
19
+ "scripts": {
20
+ "build": "node -e \"console.log('themes: css ready')\"",
21
+ "prepack": "node ../../scripts/assert-pack-ready.mjs"
22
+ },
23
+ "keywords": [
24
+ "richhtmleditor",
25
+ "css",
26
+ "theme",
27
+ "rich-text-editor"
28
+ ],
29
+ "license": "MIT",
30
+ "publishConfig": {
31
+ "access": "public"
32
+ }
33
+ }