@gnawbit/tabretake 0.4.1 → 0.5.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.
@@ -1,15 +1,15 @@
1
1
  :root {
2
- --bg: #070a12;
3
- --panel: #0d121b;
4
- --panel-2: #111725;
5
- --line: #1d2534;
6
- --text: #e9edf5;
7
- --muted: #8a93a6;
8
- --muted-2: #5d6678;
9
- --accent: #6c5ce7;
10
- --accent-2: #8b7cff;
11
- --green: #3ddc97;
12
- --amber: #f5b84b;
2
+ --bg: #f6f8fb;
3
+ --panel: #ffffff;
4
+ --panel-2: #f8fafc;
5
+ --line: #e2e8f0;
6
+ --text: #0f172a;
7
+ --muted: #475569;
8
+ --muted-2: #64748b;
9
+ --accent: #2563eb;
10
+ --accent-2: #1d4ed8;
11
+ --green: #059669;
12
+ --amber: #d97706;
13
13
  --radius: 18px;
14
14
  }
15
15
 
@@ -25,8 +25,8 @@ body {
25
25
 
26
26
  body {
27
27
  background:
28
- radial-gradient(900px 500px at 18% -10%, rgba(108, 92, 231, 0.18), transparent 60%),
29
- radial-gradient(700px 420px at 95% 0%, rgba(61, 220, 151, 0.08), transparent 55%),
28
+ radial-gradient(900px 460px at 15% -10%, rgba(37, 99, 235, 0.06), transparent 60%),
29
+ radial-gradient(700px 400px at 95% 0%, rgba(5, 150, 105, 0.05), transparent 55%),
30
30
  var(--bg);
31
31
  color: var(--text);
32
32
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
@@ -53,8 +53,8 @@ input {
53
53
  padding: 18px;
54
54
  border: 1px solid var(--line);
55
55
  border-radius: 20px;
56
- background: linear-gradient(180deg, rgba(17, 23, 37, 0.92), rgba(10, 14, 22, 0.96));
57
- box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
56
+ background: var(--panel);
57
+ box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
58
58
  }
59
59
 
60
60
  .brand {
@@ -71,8 +71,9 @@ input {
71
71
  display: grid;
72
72
  place-items: center;
73
73
  font-weight: 800;
74
- background: linear-gradient(135deg, var(--accent), #a78bfa);
75
- box-shadow: 0 8px 22px rgba(108, 92, 231, 0.35);
74
+ color: #ffffff;
75
+ background: linear-gradient(135deg, var(--accent), #3b82f6);
76
+ box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24);
76
77
  }
77
78
 
78
79
  .brand-name {
@@ -105,14 +106,15 @@ input {
105
106
  }
106
107
 
107
108
  .nav-item:hover {
108
- background: rgba(255, 255, 255, 0.04);
109
+ background: #f1f5f9;
109
110
  color: var(--text);
110
111
  }
111
112
 
112
113
  .nav-item.active {
113
- background: rgba(108, 92, 231, 0.14);
114
- color: #cfc8ff;
115
- box-shadow: inset 0 0 0 1px rgba(108, 92, 231, 0.25);
114
+ background: #eff6ff;
115
+ color: var(--accent-2);
116
+ font-weight: 600;
117
+ box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
116
118
  }
117
119
 
118
120
  .nav-icon {
@@ -125,8 +127,8 @@ input {
125
127
  margin-top: auto;
126
128
  padding: 13px;
127
129
  border-radius: 14px;
128
- background: linear-gradient(160deg, rgba(108, 92, 231, 0.16), rgba(108, 92, 231, 0.04));
129
- border: 1px solid rgba(108, 92, 231, 0.22);
130
+ background: #f8fafc;
131
+ border: 1px solid var(--line);
130
132
  }
131
133
 
132
134
  .sidebar-card-title {
@@ -146,9 +148,10 @@ input {
146
148
  padding: 8px;
147
149
  border-radius: 9px;
148
150
  border: 1px solid var(--line);
149
- background: rgba(255, 255, 255, 0.03);
151
+ background: #ffffff;
150
152
  color: var(--text);
151
153
  font-size: 11px;
154
+ font-weight: 500;
152
155
  cursor: pointer;
153
156
  }
154
157
 
@@ -169,8 +172,9 @@ input {
169
172
  place-items: center;
170
173
  font-size: 11px;
171
174
  font-weight: 700;
172
- background: linear-gradient(135deg, #2b3448, #1a2130);
173
- border: 1px solid #2e3950;
175
+ color: #1e293b;
176
+ background: #e2e8f0;
177
+ border: 1px solid #cbd5e1;
174
178
  }
175
179
 
176
180
  .user-name {
@@ -214,7 +218,7 @@ input {
214
218
  padding: 0 62px 0 38px;
215
219
  border-radius: 12px;
216
220
  border: 1px solid var(--line);
217
- background: rgba(13, 18, 27, 0.82);
221
+ background: #ffffff;
218
222
  color: var(--text);
219
223
  outline: none;
220
224
  font-size: 12.5px;
@@ -225,8 +229,8 @@ input {
225
229
  }
226
230
 
227
231
  .search input:focus {
228
- border-color: rgba(108, 92, 231, 0.55);
229
- box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
232
+ border-color: rgba(37, 99, 235, 0.55);
233
+ box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
230
234
  }
231
235
 
232
236
  .search-icon {
@@ -242,6 +246,7 @@ input {
242
246
  padding: 3px 7px;
243
247
  border-radius: 6px;
244
248
  border: 1px solid var(--line);
249
+ background: #f8fafc;
245
250
  color: var(--muted-2);
246
251
  font-size: 10px;
247
252
  }
@@ -257,7 +262,7 @@ input {
257
262
  height: 38px;
258
263
  border-radius: 11px;
259
264
  border: 1px solid var(--line);
260
- background: rgba(13, 18, 27, 0.8);
265
+ background: #ffffff;
261
266
  color: var(--muted);
262
267
  cursor: pointer;
263
268
  font-size: 16px;
@@ -265,7 +270,7 @@ input {
265
270
 
266
271
  .icon-button:hover {
267
272
  color: var(--text);
268
- border-color: #2c3850;
273
+ border-color: #cbd5e1;
269
274
  }
270
275
 
271
276
  .primary-button {
@@ -277,18 +282,18 @@ input {
277
282
  padding: 0 16px;
278
283
  border: none;
279
284
  border-radius: 11px;
280
- background: linear-gradient(135deg, var(--accent), #7c6cf5);
281
- color: #fff;
285
+ background: linear-gradient(135deg, var(--accent), #3b82f6);
286
+ color: #ffffff;
282
287
  font-size: 12.5px;
283
288
  font-weight: 650;
284
289
  cursor: pointer;
285
- box-shadow: 0 10px 26px rgba(108, 92, 231, 0.32);
290
+ box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
286
291
  transition: transform 0.15s ease, box-shadow 0.15s ease;
287
292
  }
288
293
 
289
294
  .primary-button:hover {
290
295
  transform: translateY(-1px);
291
- box-shadow: 0 14px 32px rgba(108, 92, 231, 0.4);
296
+ box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
292
297
  }
293
298
 
294
299
  .plus {
@@ -331,7 +336,7 @@ input {
331
336
  height: 7px;
332
337
  border-radius: 50%;
333
338
  background: var(--green);
334
- box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.14);
339
+ box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14);
335
340
  }
336
341
 
337
342
  .stats {
@@ -344,8 +349,8 @@ input {
344
349
  padding: 14px 16px;
345
350
  border-radius: 16px;
346
351
  border: 1px solid var(--line);
347
- background: linear-gradient(160deg, rgba(17, 23, 37, 0.92), rgba(11, 15, 24, 0.96));
348
- box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
352
+ background: var(--panel);
353
+ box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
349
354
  }
350
355
 
351
356
  .stat-label {
@@ -375,13 +380,14 @@ input {
375
380
 
376
381
  .stat-delta.up {
377
382
  color: var(--green);
383
+ font-weight: 600;
378
384
  }
379
385
 
380
386
  .panel {
381
387
  border: 1px solid var(--line);
382
388
  border-radius: 18px;
383
- background: linear-gradient(170deg, rgba(17, 23, 37, 0.9), rgba(10, 14, 22, 0.96));
384
- box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
389
+ background: var(--panel);
390
+ box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
385
391
  }
386
392
 
387
393
  .panel-head {
@@ -414,7 +420,7 @@ input {
414
420
  width: 7px;
415
421
  height: 7px;
416
422
  border-radius: 50%;
417
- background: var(--accent-2);
423
+ background: var(--accent);
418
424
  }
419
425
 
420
426
  .chart-panel {
@@ -440,13 +446,13 @@ input {
440
446
  flex: 1;
441
447
  min-width: 0;
442
448
  border-radius: 6px 6px 3px 3px;
443
- background: linear-gradient(180deg, var(--accent-2), rgba(108, 92, 231, 0.28));
444
- opacity: 0.9;
449
+ background: linear-gradient(180deg, #3b82f6, rgba(59, 130, 246, 0.25));
450
+ opacity: 0.92;
445
451
  animation: grow 0.7s ease both;
446
452
  }
447
453
 
448
454
  .bar:nth-child(3n) {
449
- background: linear-gradient(180deg, #3ddc97, rgba(61, 220, 151, 0.22));
455
+ background: linear-gradient(180deg, #10b981, rgba(16, 185, 129, 0.24));
450
456
  }
451
457
 
452
458
  .chart-baseline {
@@ -465,7 +471,7 @@ input {
465
471
  }
466
472
  to {
467
473
  transform: scaleY(1);
468
- opacity: 0.9;
474
+ opacity: 0.92;
469
475
  }
470
476
  }
471
477
 
@@ -479,8 +485,9 @@ input {
479
485
  .text-button {
480
486
  border: none;
481
487
  background: none;
482
- color: var(--accent-2);
488
+ color: var(--accent);
483
489
  font-size: 11px;
490
+ font-weight: 600;
484
491
  cursor: pointer;
485
492
  padding: 0;
486
493
  }
@@ -497,7 +504,7 @@ input {
497
504
  padding: 13px;
498
505
  border-radius: 14px;
499
506
  border: 1px solid var(--line);
500
- background: rgba(10, 14, 22, 0.72);
507
+ background: var(--panel-2);
501
508
  animation: cardIn 0.45s ease both;
502
509
  }
503
510
 
@@ -523,18 +530,18 @@ input {
523
530
  }
524
531
 
525
532
  .project-icon.violet {
526
- background: rgba(108, 92, 231, 0.18);
527
- color: #b9afff;
533
+ background: #eff6ff;
534
+ color: #2563eb;
528
535
  }
529
536
 
530
537
  .project-icon.green {
531
- background: rgba(61, 220, 151, 0.14);
532
- color: #7ff0c0;
538
+ background: #ecfdf5;
539
+ color: #059669;
533
540
  }
534
541
 
535
542
  .project-icon.amber {
536
- background: rgba(245, 184, 75, 0.14);
537
- color: #ffd48a;
543
+ background: #fffbeb;
544
+ color: #d97706;
538
545
  }
539
546
 
540
547
  .project-name {
@@ -555,7 +562,7 @@ input {
555
562
  margin-top: 11px;
556
563
  height: 5px;
557
564
  border-radius: 999px;
558
- background: #161d2a;
565
+ background: #e2e8f0;
559
566
  overflow: hidden;
560
567
  }
561
568
 
@@ -563,7 +570,7 @@ input {
563
570
  display: block;
564
571
  height: 100%;
565
572
  border-radius: inherit;
566
- background: linear-gradient(90deg, var(--accent), var(--accent-2));
573
+ background: linear-gradient(90deg, var(--accent), #3b82f6);
567
574
  }
568
575
 
569
576
  .modal-backdrop {
@@ -571,7 +578,7 @@ input {
571
578
  inset: 0;
572
579
  display: grid;
573
580
  place-items: center;
574
- background: rgba(4, 6, 10, 0.58);
581
+ background: rgba(15, 23, 42, 0.35);
575
582
  backdrop-filter: blur(2px);
576
583
  opacity: 0;
577
584
  pointer-events: none;
@@ -588,9 +595,9 @@ input {
588
595
  width: 430px;
589
596
  padding: 20px;
590
597
  border-radius: 20px;
591
- border: 1px solid #283246;
592
- background: linear-gradient(170deg, #121927, #0b1018);
593
- box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
598
+ border: 1px solid var(--line);
599
+ background: #ffffff;
600
+ box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
594
601
  transform: translateY(10px) scale(0.98);
595
602
  transition: transform 0.22s ease;
596
603
  }
@@ -609,7 +616,7 @@ input {
609
616
  font-size: 10px;
610
617
  letter-spacing: 1.4px;
611
618
  text-transform: uppercase;
612
- color: var(--accent-2);
619
+ color: var(--accent);
613
620
  font-weight: 700;
614
621
  }
615
622
 
@@ -637,15 +644,16 @@ input {
637
644
  padding: 0 12px;
638
645
  border-radius: 11px;
639
646
  border: 1px solid var(--line);
640
- background: #090d15;
647
+ background: #f8fafc;
641
648
  color: var(--text);
642
649
  outline: none;
643
650
  font-size: 12.5px;
644
651
  }
645
652
 
646
653
  .field input:focus {
647
- border-color: rgba(108, 92, 231, 0.6);
648
- box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
654
+ background: #ffffff;
655
+ border-color: rgba(37, 99, 235, 0.6);
656
+ box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
649
657
  }
650
658
 
651
659
  .template-row {
@@ -658,16 +666,17 @@ input {
658
666
  height: 36px;
659
667
  border-radius: 10px;
660
668
  border: 1px solid var(--line);
661
- background: #0a0e16;
669
+ background: #f8fafc;
662
670
  color: var(--muted);
663
671
  font-size: 11px;
664
672
  cursor: pointer;
665
673
  }
666
674
 
667
675
  .template.active {
668
- border-color: rgba(108, 92, 231, 0.5);
669
- background: rgba(108, 92, 231, 0.13);
670
- color: #cfc8ff;
676
+ border-color: rgba(37, 99, 235, 0.45);
677
+ background: #eff6ff;
678
+ color: var(--accent-2);
679
+ font-weight: 600;
671
680
  }
672
681
 
673
682
  .modal-foot {
@@ -688,11 +697,12 @@ input {
688
697
  bottom: 26px;
689
698
  padding: 11px 15px;
690
699
  border-radius: 11px;
691
- border: 1px solid rgba(61, 220, 151, 0.32);
692
- background: rgba(13, 22, 20, 0.96);
693
- color: #a8f3d5;
700
+ border: 1px solid rgba(5, 150, 105, 0.3);
701
+ background: #ecfdf5;
702
+ color: #065f46;
694
703
  font-size: 12px;
695
- box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
704
+ font-weight: 500;
705
+ box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
696
706
  opacity: 0;
697
707
  transform: translateY(10px);
698
708
  transition: opacity 0.2s ease, transform 0.2s ease;
@@ -6,8 +6,7 @@
6
6
  "initialWait": 900,
7
7
  "tail": 1200,
8
8
  "brand": {
9
- "background": "#070a12",
10
- "accent": "#6c5ce7"
9
+ "preset": "daylight"
11
10
  },
12
11
  "steps": [
13
12
  { "action": "wait", "ms": 600 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnawbit/tabretake",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Create repeatable web app demos, README GIFs and 9:16 videos from editable JSON steps or existing screen recordings. Local CLI and Agent Skill for Claude Code, Codex and Cursor.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -28,10 +28,18 @@
28
28
  },
29
29
  "keywords": [
30
30
  "demo",
31
+ "product-demo",
32
+ "readme-gif",
33
+ "screen-recording",
34
+ "walkthrough",
35
+ "9-16",
36
+ "vertical-video",
31
37
  "video",
32
38
  "gif",
33
39
  "playwright",
34
40
  "ffmpeg",
41
+ "headless",
42
+ "cursor",
35
43
  "agent-skill",
36
44
  "claude-code",
37
45
  "codex",
@@ -20,10 +20,13 @@ checks still apply, and missing fonts need visual inspection of captions.
20
20
  ```
21
21
 
22
22
  ```bash
23
+ tabretake mark --video recording.mp4 --out story-video.json
23
24
  tabretake validate --config story-video.json --json
24
25
  tabretake render --config story-video.json --video recording.mp4 --vertical --json
25
26
  ```
26
27
 
28
+ Use `tabretake mark` to click directly on the video frame in a local browser UI instead of estimating normalized `x`, `y` and `t` manually.
29
+
27
30
  `video` in the config is relative to the config file; `--video` is relative to
28
31
  the current working directory. Marks use **seconds**. Prefer normalized `x`, `y`
29
32
  coordinates from 0 to 1; larger values are source pixels. `duration` delays the
@@ -60,7 +63,7 @@ Branding belongs at the top of a story/marks config, or inside a timeline's `con
60
63
 
61
64
  ```json
62
65
  {
63
- "brand": { "background": "#070a12", "accent": "#6c5ce7" },
66
+ "brand": { "preset": "daylight", "background": "#f4f6fb", "accent": "#2563eb" },
64
67
  "vertical": {
65
68
  "badge": "Your product",
66
69
  "titleLines": ["Ship faster", "with less busywork"],
@@ -71,6 +74,8 @@ Branding belongs at the top of a story/marks config, or inside a timeline's `con
71
74
  }
72
75
  ```
73
76
 
77
+ Built-in `brand.preset` (or `--preset`) themes: `midnight` (dark studio, default), `daylight` (light minimal), `paper` (warm cream), and `slate` (dark slate-emerald). Cursor click ripples automatically adopt `accent`; `brand.frame` supports `"auto"` (default), `"browser"`, `"phone"` (lightweight vertical device bezel), or `"none"`. Explicit `background` and `accent` override preset colors unless `--preset` is passed to `render`. Use `"scale": 2` (or `--scale 2` on `record`/`run`) for HiDPI 2x recording.
78
+
74
79
  Use at most two title lines. Captions wrap and fit within the frame; excessively
75
80
  long captions produce an error. Chinese text needs a CJK font such as Microsoft
76
81
  YaHei, PingFang or Noto Sans CJK. Font warnings do not stop rendering, so inspect
@@ -36,6 +36,7 @@ An editable story:
36
36
  | `click`, `hover` | locator, `pause`, `caption`, `zoom` |
37
37
  | `focus` | locator, `pause`, `caption`, `zoom`; measure the target after scrolling into view |
38
38
  | `type` | locator, `value`, `pause`, `caption`, `zoom` |
39
+ | `select` | locator, `value` or `text`, `pause`, `caption`, `zoom` |
39
40
  | `drag` | locator, `dx`, `dy`, `steps`, `pause`, `caption`, `zoom` |
40
41
  | `scroll` | `y`, `pause`, `caption`, `zoom` |
41
42
  | `press` | `key`, `pause`, `caption`, `zoom` |
@@ -74,7 +75,7 @@ new timing; saved timelines keep their original timestamps.
74
75
  Set `zoom: false` when the result is elsewhere on screen. Avoid
75
76
  recording a blank initial load or ending on an unfinished dialog.
76
77
 
77
- To improve blurry output, record at a larger viewport such as 1920x1080.
78
+ To improve blurry output when zooming, record with `"scale": 2` (or `--scale 2`) for HiDPI 2x capture, or use a larger viewport such as `1920x1080`. To capture an editable story by clicking through the app interactively, run `tabretake capture --url <url> --out story.json`.
78
79
  If text does not fit, shorten the caption or split it across meaningful steps.
79
80
  If a selector fails, inspect the reported step and refresh the page plan rather
80
81
  than guessing at selectors or increasing every timeout.