@drawo-app/drawo 2.0.14 → 2.0.16

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
@@ -35,8 +35,8 @@ Everything runs client-side with local browser storage.
35
35
  - **Grouping**, multi-selection, smart guides, snap to grid
36
36
  - **Undo/Redo** with full history
37
37
  - **Export**: png, jpg, svg, pdf with quality controls
38
- - **Project files**: save/open `.drawo` files
39
- - **22 themes**: Drawo, Catppuccin, Nord, Solarized, Gruvbox, Tokyo Night, Rose Pine, Everforest, Kanagawa, Dracula, One, Ayu
38
+ - **Project files**: save/open `.drawo` files (TIP: Share a .drawo with ChatGPT/Claude/...)
39
+ - **22 themes**: Drawo, Catppuccin, Nord, Solarized, Gruvbox, Tokyo Night, Rose Pine, Everforest, Kanagawa, Dracula, One, Ayu...
40
40
  - **Internationalization**: English & Spanish
41
41
  - **Special modes**: Zen Mode, Presentation Mode
42
42
  - **Optional**: Timer, MusicBar, Search & Library sidebar
@@ -56,6 +56,7 @@ npm install react@^19 react-dom@^19
56
56
  ## 🚀 Quick Start
57
57
 
58
58
  ```tsx
59
+ import "drawo/styles.css";
59
60
  import { Drawo } from "drawo";
60
61
 
61
62
  function App() {
@@ -63,7 +64,8 @@ function App() {
63
64
  }
64
65
  ```
65
66
 
66
- That's it. Full whiteboard, zero config.
67
+ That single CSS import is required and includes themes, cursors, and editor typography.
68
+ `<Drawo />` also injects the required Google Fonts (`Inter`, `Rubik`, `Shantell Sans`, `Imbue`, `Cascadia Code`) automatically.
67
69
 
68
70
  ## 🎨 Customization
69
71
 
@@ -105,8 +107,12 @@ function ElementCounter() {
105
107
  return (
106
108
  <div>
107
109
  <p>{scene.elements.length} elements</p>
108
- <button onClick={undo} disabled={!canUndo}>Undo</button>
109
- <button onClick={redo} disabled={!canRedo}>Redo</button>
110
+ <button onClick={undo} disabled={!canUndo}>
111
+ Undo
112
+ </button>
113
+ <button onClick={redo} disabled={!canRedo}>
114
+ Redo
115
+ </button>
110
116
  </div>
111
117
  );
112
118
  }
@@ -125,25 +131,25 @@ See the [docs](./docs/README.md) for:
125
131
 
126
132
  ## ⌨️ Keyboard Shortcuts
127
133
 
128
- | Shortcut | Action |
129
- |----------|--------|
130
- | `V` | Selection tool |
131
- | `H` | Hand (pan) tool |
132
- | `1` | Text tool |
133
- | `2` | Rectangle tool |
134
- | `3` | Circle tool |
135
- | `4` | Draw tool |
136
- | `K` | Laser tool |
137
- | `Ctrl/Cmd + Z` | Undo |
138
- | `Ctrl/Cmd + Shift + Z` / `Ctrl/Cmd + Y` | Redo |
139
- | `Ctrl/Cmd + A` | Select all |
140
- | `Ctrl/Cmd + D` | Duplicate |
141
- | `Ctrl/Cmd + G` | Group |
142
- | `Ctrl/Cmd + Shift + G` | Ungroup |
143
- | `Ctrl/Cmd + +/-/0` | Zoom in/out/reset |
144
- | `Alt + Z` | Toggle Zen Mode |
145
- | `Alt + R` | Toggle Presentation Mode |
146
- | `Delete/Backspace` | Delete selection |
134
+ | Shortcut | Action |
135
+ | --------------------------------------- | ------------------------ |
136
+ | `V` | Selection tool |
137
+ | `H` | Hand (pan) tool |
138
+ | `1` | Text tool |
139
+ | `2` | Rectangle tool |
140
+ | `3` | Circle tool |
141
+ | `4` | Draw tool |
142
+ | `K` | Laser tool |
143
+ | `Ctrl/Cmd + Z` | Undo |
144
+ | `Ctrl/Cmd + Shift + Z` / `Ctrl/Cmd + Y` | Redo |
145
+ | `Ctrl/Cmd + A` | Select all |
146
+ | `Ctrl/Cmd + D` | Duplicate |
147
+ | `Ctrl/Cmd + G` | Group |
148
+ | `Ctrl/Cmd + Shift + G` | Ungroup |
149
+ | `Ctrl/Cmd + +/-/0` | Zoom in/out/reset |
150
+ | `Alt + Z` | Toggle Zen Mode |
151
+ | `Alt + R` | Toggle Presentation Mode |
152
+ | `Delete/Backspace` | Delete selection |
147
153
 
148
154
  ## 🛠️ Development
149
155
 
@@ -163,14 +169,14 @@ pnpm build
163
169
 
164
170
  ## 📦 Package Info
165
171
 
166
- | | |
167
- |---|---|
168
- | **Name** | `drawo` |
169
- | **Version** | 2.0.0 |
170
- | **License** | MIT |
171
- | **Bundle** | ~2.6MB (637KB gzipped) |
172
- | **Peer Deps** | React 19+, React DOM 19+ |
173
- | **TypeScript** | Full type definitions |
172
+ | | |
173
+ | -------------- | ------------------------ |
174
+ | **Name** | `drawo` |
175
+ | **Version** | 2.0.0 |
176
+ | **License** | MIT |
177
+ | **Bundle** | ~2.6MB (637KB gzipped) |
178
+ | **Peer Deps** | React 19+, React DOM 19+ |
179
+ | **TypeScript** | Full type definitions |
174
180
 
175
181
  ## 📄 Changelog
176
182