@ibodr/draw 0.1.11 → 0.1.12

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/dist/index.mjs CHANGED
@@ -37230,7 +37230,7 @@ async function extractAssets(editor, snapshot, msg, addToast) {
37230
37230
  // src/index.ts
37231
37231
  registerDrawLibraryVersion(
37232
37232
  "@ibodr/draw",
37233
- "0.1.11",
37233
+ "0.1.12",
37234
37234
  "esm"
37235
37235
  );
37236
37236
  /*!
package/draw.css CHANGED
@@ -163,8 +163,11 @@
163
163
  /* if you ever update --dr-color-background, update the hardcoded values in theme-init.js and globals.css
164
164
  they're there to make sure the background color matches the user's preference before the actual app loads*/
165
165
  --dr-color-grid: hsl(0, 0%, 43%);
166
- --dr-color-board-bg-line: hsl(210, 50%, 55%, 35%);
167
- --dr-color-board-bg-line-secondary: hsl(210, 50%, 55%, 18%);
166
+ /* Board background patterns (see `.dr-bg-*` in the Background section below).
167
+ Light theme: subtle blue-gray lines, like ruled/graph paper on white. */
168
+ --dr-color-board-bg-line: hsl(210, 40%, 55%, 38%);
169
+ --dr-color-board-bg-line-secondary: hsl(210, 40%, 55%, 19%);
170
+ --dr-color-board-bg-dot: var(--dr-color-grid);
168
171
  /* UI */
169
172
  --dr-color-low: hsl(204, 16%, 94%);
170
173
  --dr-color-low-border: hsl(204, 16%, 92%);
@@ -219,8 +222,12 @@
219
222
  /* if you ever update --dr-color-background, update the hardcoded values in theme-init.js and globals.css
220
223
  they're there to make sure the background color matches the user's preference before the actual app loads*/
221
224
  --dr-color-grid: hsl(0, 0%, 40%);
222
- --dr-color-board-bg-line: hsl(210, 70%, 70%, 25%);
223
- --dr-color-board-bg-line-secondary: hsl(210, 70%, 70%, 13%);
225
+ /* Board background patterns (see `.dr-bg-*` in the Background section below).
226
+ Dark theme: near-white lines at low opacity so they stay visible on the
227
+ near-black canvas without the blue cast used in the light theme. */
228
+ --dr-color-board-bg-line: hsl(0, 0%, 100%, 16%);
229
+ --dr-color-board-bg-line-secondary: hsl(0, 0%, 100%, 8%);
230
+ --dr-color-board-bg-dot: var(--dr-color-grid);
224
231
  /* UI */
225
232
  --dr-color-low: hsl(260, 4.5%, 10.5%);
226
233
  --dr-color-low-border: hsl(207, 10%, 10%);
@@ -375,7 +382,7 @@ input,
375
382
  }
376
383
 
377
384
  .dr-bg-dot {
378
- fill: var(--dr-color-board-bg-line);
385
+ fill: var(--dr-color-board-bg-dot);
379
386
  }
380
387
 
381
388
  /* --------------------- Grid Layer --------------------- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibodr/draw",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -31,9 +31,9 @@
31
31
  "classnames": "^2.5.1",
32
32
  "lz-string": "^1.5.0",
33
33
  "radix-ui": "^1.4.3",
34
- "@ibodr/driver": "0.1.11",
35
- "@ibodr/store": "0.1.11",
36
- "@ibodr/editor": "0.1.11"
34
+ "@ibodr/driver": "0.1.12",
35
+ "@ibodr/store": "0.1.12",
36
+ "@ibodr/editor": "0.1.12"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "^18.2.0 || ^19.2.1",