@editora/themes 1.0.2 → 1.0.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.
Files changed (3) hide show
  1. package/README.md +12 -4
  2. package/package.json +6 -4
  3. package/LICENSE +0 -21
package/README.md CHANGED
@@ -35,7 +35,9 @@ The themes package provides a comprehensive styling system using CSS variables,
35
35
  ### Basic Usage
36
36
 
37
37
  ```tsx
38
- import '@editora/themes/styles';
38
+ import "@editora/themes/theme.css";
39
+ OR
40
+ import "@editora/themes/themes/default.css";
39
41
  import { EditoraEditor } from '@editora/react';
40
42
 
41
43
  function App() {
@@ -46,7 +48,9 @@ function App() {
46
48
  ### With Theme Toggle
47
49
 
48
50
  ```tsx
49
- import '@editora/themes/styles';
51
+ import "@editora/themes/theme.css";
52
+ OR
53
+ import "@editora/themes/themes/default.css";
50
54
  import { EditoraEditor } from '@editora/react';
51
55
  import { useState } from 'react';
52
56
 
@@ -68,7 +72,9 @@ function App() {
68
72
  ### Auto Theme Detection
69
73
 
70
74
  ```tsx
71
- import '@editora/themes/styles';
75
+ import "@editora/themes/theme.css";
76
+ OR
77
+ import "@editora/themes/themes/default.css";
72
78
  import { EditoraEditor } from '@editora/react';
73
79
 
74
80
  function App() {
@@ -219,7 +225,9 @@ All theme colors and sizes use CSS variables for easy customization.
219
225
 
220
226
  ```css
221
227
  /* custom-theme.css */
222
- @import '@editora/themes/styles';
228
+ import "@editora/themes/theme.css";
229
+ OR
230
+ import "@editora/themes/themes/default.css";
223
231
 
224
232
  :root {
225
233
  /* Brand colors */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editora/themes",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Themes and styling system for Editora Rich Text Editor with light/dark mode support",
5
5
  "author": "Ajay Kumar <ajaykr089@gmail.com>",
6
6
  "license": "MIT",
@@ -32,7 +32,9 @@
32
32
  "import": "./dist/index.esm.js",
33
33
  "require": "./dist/index.cjs.js"
34
34
  },
35
- "./styles": "./src/index.css"
35
+ "./theme.css": "./src/index.css",
36
+ "./themes/*": "./src/themes/*.css",
37
+ "./themes/default.css": "./src/themes/default.css"
36
38
  },
37
39
  "files": [
38
40
  "dist",
@@ -54,5 +56,5 @@
54
56
  "publishConfig": {
55
57
  "access": "public"
56
58
  },
57
- "gitHead": "b4a92679b7a31308632c48abd5e536476d58b0c7"
58
- }
59
+ "gitHead": "694494db58b809f0dcf24501696284faa1ab68a5"
60
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Ajay Kumar
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.