@pretextbook/web-editor 0.0.3 → 0.0.4

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 CHANGED
@@ -40,14 +40,20 @@ export default App;
40
40
 
41
41
  ### Styling
42
42
 
43
- The editor includes CSS styles that must be imported. You have two options:
43
+ **Important:** This package uses Tailwind CSS internally, but **all styles are pre-compiled and bundled** in the CSS file. You don't need to install or configure Tailwind CSS in your project.
44
+
45
+ Simply import the CSS file:
44
46
 
45
- **Option 1: Import the CSS file directly** (recommended)
46
47
  ```tsx
47
48
  import '@pretextbook/web-editor/dist/web-editor.css';
48
49
  ```
49
50
 
50
- **Option 2: Import in your CSS file**
51
+ Or in your CSS file:
52
+ ```css
53
+ @import '@pretextbook/web-editor/dist/web-editor.css';
54
+ ```
55
+
56
+ All button styles, layout, and MenuBar styling will work automatically without any additional setup.
51
57
  ```css
52
58
  @import '@pretextbook/web-editor/dist/web-editor.css';
53
59
  ```
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import './index.css';
1
2
  export { default as Editors } from './components/Editors';
2
3
  export type { editorProps } from './components/Editors';
3
4
  export { default as CodeEditor } from './components/CodeEditor';