brandspec 0.2.2__tar.gz → 0.4.0__tar.gz

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 (187) hide show
  1. {brandspec-0.2.2 → brandspec-0.4.0}/.gitignore +2 -0
  2. {brandspec-0.2.2 → brandspec-0.4.0}/PKG-INFO +7 -24
  3. {brandspec-0.2.2 → brandspec-0.4.0}/README.md +6 -23
  4. brandspec-0.4.0/brandspec-thumb-2.jpg +0 -0
  5. brandspec-0.4.0/docs/studio.md +49 -0
  6. brandspec-0.4.0/frontend/index.html +13 -0
  7. brandspec-0.4.0/frontend/package.json +29 -0
  8. brandspec-0.4.0/frontend/pnpm-lock.yaml +1240 -0
  9. brandspec-0.4.0/frontend/pnpm-workspace.yaml +2 -0
  10. brandspec-0.4.0/frontend/src/App.tsx +1594 -0
  11. brandspec-0.4.0/frontend/src/components/BentoView.tsx +223 -0
  12. brandspec-0.4.0/frontend/src/components/ColorPickerPopover.tsx +435 -0
  13. brandspec-0.4.0/frontend/src/main.tsx +10 -0
  14. brandspec-0.4.0/frontend/src/studio.css +1571 -0
  15. brandspec-0.4.0/frontend/src/types.ts +148 -0
  16. brandspec-0.4.0/frontend/src/utils/color.ts +165 -0
  17. brandspec-0.4.0/frontend/src/utils/export.ts +229 -0
  18. brandspec-0.4.0/frontend/src/utils/svg.ts +149 -0
  19. brandspec-0.4.0/frontend/tsconfig.json +20 -0
  20. brandspec-0.4.0/frontend/vite.config.ts +30 -0
  21. {brandspec-0.2.2 → brandspec-0.4.0}/pyproject.toml +1 -1
  22. brandspec-0.4.0/skills/brandspec/SKILL.md +115 -0
  23. brandspec-0.4.0/skills/brandspec/references/archetype-craft.md +79 -0
  24. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/__init__.py +1 -1
  25. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/cli.py +0 -104
  26. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/lockup/compiler.py +4 -9
  27. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/arch-a.json +82 -0
  28. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/bridge-span.json +89 -0
  29. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/bridge-weave.json +105 -0
  30. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/buttress-arch.json +98 -0
  31. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/cantilever-tower.json +87 -0
  32. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/canyon-arch.json +59 -0
  33. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/canyon-cube.json +147 -0
  34. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/archetypes/chevron-monogram.json +1 -1
  35. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/corner-lock.json +59 -0
  36. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/crescent-d.json +71 -0
  37. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/crescent-hook.json +63 -0
  38. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/crescent-pair.json +98 -0
  39. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/cross-chambers.json +100 -0
  40. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/diagonal-terrace.json +97 -0
  41. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/eclipse-overlap.json +71 -0
  42. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/faceted-crystal.json +141 -0
  43. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/falcon-prow.json +93 -0
  44. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/folded-monolith.json +121 -0
  45. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/folded-ribbon-arch.json +97 -0
  46. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/folded-shield.json +92 -0
  47. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/gallery-corridor.json +111 -0
  48. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/halftone-circle.json +40 -0
  49. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/halftone-diamond-cluster.json +40 -0
  50. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/hollow-monolith.json +117 -0
  51. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/horizon-disc.json +57 -0
  52. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/inverse-lock.json +51 -0
  53. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/isometric-stairwell.json +121 -0
  54. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/leaf-vein.json +64 -0
  55. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/lens-propeller.json +47 -0
  56. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/miter-triangle.json +51 -0
  57. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/monogram-u-vault.json +73 -0
  58. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/monogram-w-fold.json +76 -0
  59. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/orbital-slash.json +72 -0
  60. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/origami-crane.json +77 -0
  61. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/pavilion-roof.json +75 -0
  62. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/pleated-fold.json +97 -0
  63. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/portal-shadow.json +124 -0
  64. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/quad-vesica.json +47 -0
  65. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/quarter-arch.json +59 -0
  66. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/skewed-portal.json +79 -0
  67. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/sliced-disc-3.json +69 -0
  68. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/sliding-discs.json +61 -0
  69. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/solaris-aperture.json +48 -0
  70. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/spiral-aperture-4.json +56 -0
  71. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/spiral-aperture.json +56 -0
  72. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/split-monolith.json +68 -0
  73. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/split-orbit.json +49 -0
  74. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/staggered-rings.json +55 -0
  75. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/stepped-canopy.json +81 -0
  76. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/stepped-monolith.json +83 -0
  77. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/stepped-ziggurat.json +70 -0
  78. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/sunlit-threshold.json +65 -0
  79. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/tangent-s-bridge.json +95 -0
  80. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/tri-link.json +71 -0
  81. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/turbo-fan-4.json +40 -0
  82. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/turbo-fan-5.json +40 -0
  83. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/twin-loops.json +82 -0
  84. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/wave-crest.json +91 -0
  85. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/woven-aperture.json +53 -0
  86. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/xor-meet.json +49 -0
  87. brandspec-0.4.0/src/brandspec/engines/mark/archetypes/xor-triangle-disc.json +50 -0
  88. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/fields.py +10 -2
  89. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/schema.py +1 -0
  90. brandspec-0.4.0/src/brandspec/studio/assets/favicon.ico +0 -0
  91. brandspec-0.4.0/src/brandspec/studio/assets/index.html +14 -0
  92. brandspec-0.4.0/src/brandspec/studio/assets/logo.svg +55 -0
  93. brandspec-0.4.0/src/brandspec/studio/assets/studio.css +1 -0
  94. brandspec-0.4.0/src/brandspec/studio/assets/studio.js +170 -0
  95. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/studio/server.py +46 -97
  96. {brandspec-0.2.2 → brandspec-0.4.0}/tests/test_studio.py +36 -13
  97. {brandspec-0.2.2 → brandspec-0.4.0}/uv.lock +1 -1
  98. brandspec-0.2.2/brandspec-thumb-2.jpg +0 -0
  99. brandspec-0.2.2/docs/mockup-prompts.md +0 -95
  100. brandspec-0.2.2/skills/brandspec/SKILL.md +0 -84
  101. brandspec-0.2.2/src/brandspec/engines/mark/archetypes/solaris-aperture.json +0 -68
  102. brandspec-0.2.2/src/brandspec/engines/mockup/__init__.py +0 -15
  103. brandspec-0.2.2/src/brandspec/engines/mockup/composer.py +0 -426
  104. brandspec-0.2.2/src/brandspec/engines/mockup/renderer.py +0 -171
  105. brandspec-0.2.2/src/brandspec/engines/mockup/schema.py +0 -42
  106. brandspec-0.2.2/src/brandspec/engines/mockup/templates/concourse-lightbox/background.jpg +0 -0
  107. brandspec-0.2.2/src/brandspec/engines/mockup/templates/concourse-lightbox/manifest.json +0 -17
  108. brandspec-0.2.2/src/brandspec/engines/mockup/templates/concrete-card/background.jpg +0 -0
  109. brandspec-0.2.2/src/brandspec/engines/mockup/templates/concrete-card/manifest.json +0 -17
  110. brandspec-0.2.2/src/brandspec/engines/mockup/templates/fence-billboard/background.jpg +0 -0
  111. brandspec-0.2.2/src/brandspec/engines/mockup/templates/fence-billboard/manifest.json +0 -17
  112. brandspec-0.2.2/src/brandspec/engines/mockup/templates/highway-billboard/background.jpg +0 -0
  113. brandspec-0.2.2/src/brandspec/engines/mockup/templates/highway-billboard/manifest.json +0 -17
  114. brandspec-0.2.2/src/brandspec/engines/mockup/templates/mailer-box/background.jpg +0 -0
  115. brandspec-0.2.2/src/brandspec/engines/mockup/templates/mailer-box/manifest.json +0 -17
  116. brandspec-0.2.2/src/brandspec/engines/mockup/templates/matte-phone/background.jpg +0 -0
  117. brandspec-0.2.2/src/brandspec/engines/mockup/templates/matte-phone/manifest.json +0 -18
  118. brandspec-0.2.2/src/brandspec/engines/mockup/templates/pole-banner/background.jpg +0 -0
  119. brandspec-0.2.2/src/brandspec/engines/mockup/templates/pole-banner/manifest.json +0 -17
  120. brandspec-0.2.2/src/brandspec/engines/mockup/templates/stacked-cards/background.jpg +0 -0
  121. brandspec-0.2.2/src/brandspec/engines/mockup/templates/stacked-cards/manifest.json +0 -17
  122. brandspec-0.2.2/src/brandspec/engines/mockup/templates/street-hoarding/background.jpg +0 -0
  123. brandspec-0.2.2/src/brandspec/engines/mockup/templates/street-hoarding/manifest.json +0 -33
  124. brandspec-0.2.2/src/brandspec/studio/assets/index.html +0 -216
  125. brandspec-0.2.2/src/brandspec/studio/assets/studio.css +0 -1245
  126. brandspec-0.2.2/src/brandspec/studio/assets/studio.js +0 -984
  127. brandspec-0.2.2/tests/test_mockup.py +0 -138
  128. {brandspec-0.2.2 → brandspec-0.4.0}/.github/workflows/ci.yml +0 -0
  129. {brandspec-0.2.2 → brandspec-0.4.0}/.github/workflows/publish.yml +0 -0
  130. {brandspec-0.2.2 → brandspec-0.4.0}/.python-version +0 -0
  131. {brandspec-0.2.2 → brandspec-0.4.0}/LICENSE +0 -0
  132. {brandspec-0.2.2 → brandspec-0.4.0}/brandspec-thumb-1.jpg +0 -0
  133. {brandspec-0.2.2 → brandspec-0.4.0}/docs/PRD.md +0 -0
  134. {brandspec-0.2.2 → brandspec-0.4.0}/docs/decisions.md +0 -0
  135. {brandspec-0.2.2 → brandspec-0.4.0}/docs/specs/01-halo-join.md +0 -0
  136. {brandspec-0.2.2 → brandspec-0.4.0}/docs/specs/02-skill-distribution.md +0 -0
  137. {brandspec-0.2.2 → brandspec-0.4.0}/docs/specs/03-studio-review.md +0 -0
  138. {brandspec-0.2.2 → brandspec-0.4.0}/docs/specs/04-parameter-sweep.md +0 -0
  139. {brandspec-0.2.2 → brandspec-0.4.0}/docs/specs/05-tokens-and-kit.md +0 -0
  140. {brandspec-0.2.2 → brandspec-0.4.0}/docs/specs/06-wordmark-and-lockup.md +0 -0
  141. {brandspec-0.2.2 → brandspec-0.4.0}/docs/specs/07-icons-and-pattern.md +0 -0
  142. {brandspec-0.2.2/src/brandspec/studio/assets → brandspec-0.4.0/frontend/public}/favicon.ico +0 -0
  143. {brandspec-0.2.2/src/brandspec/studio/assets → brandspec-0.4.0/frontend/public}/logo.svg +0 -0
  144. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/core/__init__.py +0 -0
  145. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/core/grid.py +0 -0
  146. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/core/paths.py +0 -0
  147. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/core/rounds.py +0 -0
  148. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/__init__.py +0 -0
  149. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/icons/__init__.py +0 -0
  150. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/icons/compiler.py +0 -0
  151. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/icons/schema.py +0 -0
  152. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/kit/__init__.py +0 -0
  153. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/kit/exporter.py +0 -0
  154. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/kit/schema.py +0 -0
  155. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/lockup/__init__.py +0 -0
  156. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/lockup/schema.py +0 -0
  157. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/__init__.py +0 -0
  158. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/archetypes/halftone-matrix.json +0 -0
  159. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/archetypes/iso-impossible.json +0 -0
  160. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/archetypes/kronos-chambers.json +0 -0
  161. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/archetypes/line-screen-disc.json +0 -0
  162. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/archetypes/ribbon-weave.json +0 -0
  163. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/archetypes/stencil-monogram.json +0 -0
  164. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/archetypes/vela-sails.json +0 -0
  165. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/artifacts.py +0 -0
  166. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/compiler.py +0 -0
  167. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/geometry.py +0 -0
  168. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/mark/sweep.py +0 -0
  169. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/pattern/__init__.py +0 -0
  170. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/pattern/compiler.py +0 -0
  171. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/pattern/schema.py +0 -0
  172. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/tokens/__init__.py +0 -0
  173. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/tokens/contrast.py +0 -0
  174. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/tokens/extract.py +0 -0
  175. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/tokens/schema.py +0 -0
  176. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/wordmark/__init__.py +0 -0
  177. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/wordmark/compiler.py +0 -0
  178. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/engines/wordmark/schema.py +0 -0
  179. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/inspect/__init__.py +0 -0
  180. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/inspect/sheet.py +0 -0
  181. {brandspec-0.2.2 → brandspec-0.4.0}/src/brandspec/studio/__init__.py +0 -0
  182. {brandspec-0.2.2 → brandspec-0.4.0}/tests/test_cli_skill.py +0 -0
  183. {brandspec-0.2.2 → brandspec-0.4.0}/tests/test_compiler.py +0 -0
  184. {brandspec-0.2.2 → brandspec-0.4.0}/tests/test_icons_pattern.py +0 -0
  185. {brandspec-0.2.2 → brandspec-0.4.0}/tests/test_sweep.py +0 -0
  186. {brandspec-0.2.2 → brandspec-0.4.0}/tests/test_tokens_kit.py +0 -0
  187. {brandspec-0.2.2 → brandspec-0.4.0}/tests/test_wordmark_lockup.py +0 -0
@@ -6,3 +6,5 @@ out/
6
6
  dist/
7
7
  build/
8
8
  *.egg-info/
9
+ frontend/node_modules/
10
+ .pnpm-store/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: brandspec
3
- Version: 0.2.2
3
+ Version: 0.4.0
4
4
  Summary: Deterministic brand mark compiler and visual audit CLI
5
5
  Project-URL: Homepage, https://github.com/rafifmsn/brandspec
6
6
  Project-URL: Repository, https://github.com/rafifmsn/brandspec
@@ -58,8 +58,7 @@ Description-Content-Type: text/markdown
58
58
  <a href="#project-layout">Project Layout</a> &middot;
59
59
  <a href="#installation">Installation</a> &middot;
60
60
  <a href="#specification">Specification</a> &middot;
61
- <a href="#visual-audit">Visual Audit</a> &middot;
62
- <a href="#archetypes">Archetypes</a>
61
+ <a href="#visual-audit">Visual Audit</a>
63
62
  </p>
64
63
 
65
64
  ## Motivation
@@ -68,14 +67,14 @@ AI agents can reason about brand metaphors and iterative feedback, yet generatin
68
67
  Treating visual identity as unverified text output makes agent-driven brand design unreliable.
69
68
 
70
69
  `brandspec` solves this by separating design intent from vector math.
71
- Agents author a compact, grid-aligned `spec.json`, while a deterministic geometry compiler and automated inspection gate (`sheet.png` and `metrics.json`) handle exact path Booleans, scale legibility checks, and production exports across marks, wordmarks, lockups, tokens, icons, patterns, and mockups.
70
+ Agents author a compact, grid-aligned `spec.json`, while a deterministic geometry compiler and automated inspection gate (`sheet.png` and `metrics.json`) handle exact path Booleans, scale legibility checks, and production exports across marks, wordmarks, lockups, tokens, icons, and patterns.
72
71
 
73
72
  ## Architecture
74
73
 
75
74
  - **Agent Interface (`skills/brandspec/`, `cli.py`)**: Supplies agents with design construction rules, starter archetypes, deterministic build and sweep commands, skill installation, and machine-readable pass/warn feedback.
76
75
  - **Core Geometry (`core/`)**: Resolves centered `square`, `isometric` (30-degree axial), and `polar` grids, builds continuous `grid_path` polylines with exact cubic Bezier corner fillets, applies symmetry, and computes outward `halo` offsets (`round`, `miter`, `bevel` joins) via `skia-pathops`.
77
- - **Engines (`engines/`)**: Includes `mark` (constructive primitives and optical effects with `clip_to` masks, `halo`, and `halo_targets`), `wordmark` (outlined font glyphs with kerning, ink traps, and stencil cuts), `lockup` (horizontal, stacked, and badge compositions with optical alignment), `mockup` (deterministic perspective compositing onto photographic scenes), `icons` (matched `24x24` icon sets), `pattern` (3x3 seamless tiling SVG patterns), `tokens` (WCAG/APCA contrast audits and palette quantization), and `kit` (favicons, PWA icons, OG cards, and CSS tokens).
78
- - **Visual Inspection & Studio (`inspect/`, `studio/`)**: Rasterizes via `resvg-py` to render a 4-panel `sheet.png`, computes `metrics.json` checks via `numpy` and `pillow`, and serves an interactive localhost review and mockup console (`brandspec review` / `brandspec serve`).
76
+ - **Engines (`engines/`)**: Includes `mark` (constructive primitives and optical effects with `clip_to` masks, `halo`, and `halo_targets`), `wordmark` (outlined font glyphs with kerning, ink traps, and stencil cuts), `lockup` (horizontal, stacked, and badge compositions with optical alignment), `icons` (matched `24x24` icon sets), `pattern` (3x3 seamless tiling SVG patterns), `tokens` (WCAG/APCA contrast audits and palette quantization), and `kit` (favicons, PWA icons, OG cards, and CSS tokens).
77
+ - **Visual Inspection & Studio (`inspect/`, `studio/`)**: Rasterizes via `resvg-py` to render a 4-panel `sheet.png`, computes `metrics.json` checks via `numpy` and `pillow`, and serves an infinite-canvas localhost review and Bento presentation console (`brandspec review`).
79
78
 
80
79
  ## Project Layout
81
80
 
@@ -87,8 +86,9 @@ brandspec/
87
86
  ├── docs/
88
87
  │ ├── PRD.md # Master product requirements
89
88
  │ ├── decisions.md # Architecture decisions
90
- │ ├── mockup-prompts.md # Blank-surface mockup background prompts
89
+ │ ├── studio.md # Studio canvas shortcuts and workflow guide
91
90
  │ └── specs/ # Module specifications (01-07)
91
+ ├── frontend/ # React + Vite Studio UI source (dev-only)
92
92
  ├── LICENSE # GNU General Public License v3.0
93
93
  ├── pyproject.toml
94
94
  ├── skills/brandspec/SKILL.md # Agent workflow and DSL guide
@@ -100,7 +100,6 @@ brandspec/
100
100
  │ │ ├── kit/ # Favicon, PWA, OG card, and CSS token exporter
101
101
  │ │ ├── lockup/ # Mark and wordmark lockup composer
102
102
  │ │ ├── mark/ # Geometric and optical mark compiler, sweep, archetypes
103
- │ │ ├── mockup/ # Perspective mockup composer, renderer, and templates
104
103
  │ │ ├── pattern/ # Seamless 3x3 tiling SVG pattern compiler
105
104
  │ │ ├── tokens/ # WCAG/APCA contrast audit and palette extraction
106
105
  │ │ └── wordmark/ # Outlined font glyph wordmark compiler
@@ -160,8 +159,6 @@ npx skills add rafifmsn/brandspec
160
159
  | `brandspec wordmark fonts [--query <text>] [--json]` | Lists available `.ttf` and `.otf` system font paths for wordmarks. |
161
160
  | `brandspec wordmark build <wordmark.spec.json> [--out-dir <dir>]` | Outlines `.ttf`/`.otf` glyphs via `fontTools` with kerning, ink traps, stencil cuts, and `sheet.png`. |
162
161
  | `brandspec lockup build <lockup.spec.json> [--out-dir <dir>]` | Pairs mark and wordmark into horizontal, stacked, or badge lockups with optical alignment, clearspace guides, and `sheet.png`. |
163
- | `brandspec mockup list` | Lists all bundled photographic mockup scene templates. |
164
- | `brandspec mockup build <target> [--brand-name <name>] [--headline <text>]` | Composites a mark, wordmark, or lockup onto perspective mockup scenes. |
165
162
  | `brandspec icons build <icons.spec.json> [--out-dir <dir>]` | Compiles matched `24x24` icon sets inheriting mark geometry defaults. |
166
163
  | `brandspec pattern build <pattern.spec.json> [--out-dir <dir>]` | Compiles 3x3 periodic-wrapped seamless tiling SVG patterns. |
167
164
  | `brandspec install-skill [--target <preset-or-path>] [--force]` | Installs the bundled `SKILL.md` for AI agents (`agents`, `project`, `claude`, `cursor`, `codex`, `antigravity`, or a custom path). |
@@ -216,17 +213,3 @@ Every `brandspec build` outputs:
216
213
  <p align="center">
217
214
  <img src="./brandspec-thumb-2.jpg" alt="Brandspec Studio Review, Archetype Marks, and Perspective Mockups" width="100%" />
218
215
  </p>
219
-
220
- ## Archetypes
221
-
222
- | Recipe | Category | Grid | Focus |
223
- | :--- | :--- | :--- | :--- |
224
- | `ribbon-weave` | `geometric` | `square` | Interlocking stadium links using `halo` and `halo_targets` |
225
- | `iso-impossible` | `geometric` | `isometric` | Three-fold rotational folded hexagon |
226
- | `line-screen-disc` | `effect` | `square` | Linearly modulated stripes clipped to a sphere with diagonal cut |
227
- | `halftone-matrix` | `effect` | `square` | Symmetric five-by-five circular halftone field pulsing from the center |
228
- | `chevron-monogram` | `monogram` | `square` | Figure-ground architectural M formed by stacked chevron wedges |
229
- | `stencil-monogram` | `monogram` | `square` | Modular figure-ground letterform with rounded arches |
230
- | `vela-sails` | `effect` | `square` | Concave curved sails over a modulated stripe hull |
231
- | `solaris-aperture` | `effect` | `polar` | Eight-blade kinetic core inside a segmented corona ring |
232
- | `kronos-chambers` | `geometric` | `square` | Four-way interlocking acoustic chambers around a central core |
@@ -27,8 +27,7 @@
27
27
  <a href="#project-layout">Project Layout</a> &middot;
28
28
  <a href="#installation">Installation</a> &middot;
29
29
  <a href="#specification">Specification</a> &middot;
30
- <a href="#visual-audit">Visual Audit</a> &middot;
31
- <a href="#archetypes">Archetypes</a>
30
+ <a href="#visual-audit">Visual Audit</a>
32
31
  </p>
33
32
 
34
33
  ## Motivation
@@ -37,14 +36,14 @@ AI agents can reason about brand metaphors and iterative feedback, yet generatin
37
36
  Treating visual identity as unverified text output makes agent-driven brand design unreliable.
38
37
 
39
38
  `brandspec` solves this by separating design intent from vector math.
40
- Agents author a compact, grid-aligned `spec.json`, while a deterministic geometry compiler and automated inspection gate (`sheet.png` and `metrics.json`) handle exact path Booleans, scale legibility checks, and production exports across marks, wordmarks, lockups, tokens, icons, patterns, and mockups.
39
+ Agents author a compact, grid-aligned `spec.json`, while a deterministic geometry compiler and automated inspection gate (`sheet.png` and `metrics.json`) handle exact path Booleans, scale legibility checks, and production exports across marks, wordmarks, lockups, tokens, icons, and patterns.
41
40
 
42
41
  ## Architecture
43
42
 
44
43
  - **Agent Interface (`skills/brandspec/`, `cli.py`)**: Supplies agents with design construction rules, starter archetypes, deterministic build and sweep commands, skill installation, and machine-readable pass/warn feedback.
45
44
  - **Core Geometry (`core/`)**: Resolves centered `square`, `isometric` (30-degree axial), and `polar` grids, builds continuous `grid_path` polylines with exact cubic Bezier corner fillets, applies symmetry, and computes outward `halo` offsets (`round`, `miter`, `bevel` joins) via `skia-pathops`.
46
- - **Engines (`engines/`)**: Includes `mark` (constructive primitives and optical effects with `clip_to` masks, `halo`, and `halo_targets`), `wordmark` (outlined font glyphs with kerning, ink traps, and stencil cuts), `lockup` (horizontal, stacked, and badge compositions with optical alignment), `mockup` (deterministic perspective compositing onto photographic scenes), `icons` (matched `24x24` icon sets), `pattern` (3x3 seamless tiling SVG patterns), `tokens` (WCAG/APCA contrast audits and palette quantization), and `kit` (favicons, PWA icons, OG cards, and CSS tokens).
47
- - **Visual Inspection & Studio (`inspect/`, `studio/`)**: Rasterizes via `resvg-py` to render a 4-panel `sheet.png`, computes `metrics.json` checks via `numpy` and `pillow`, and serves an interactive localhost review and mockup console (`brandspec review` / `brandspec serve`).
45
+ - **Engines (`engines/`)**: Includes `mark` (constructive primitives and optical effects with `clip_to` masks, `halo`, and `halo_targets`), `wordmark` (outlined font glyphs with kerning, ink traps, and stencil cuts), `lockup` (horizontal, stacked, and badge compositions with optical alignment), `icons` (matched `24x24` icon sets), `pattern` (3x3 seamless tiling SVG patterns), `tokens` (WCAG/APCA contrast audits and palette quantization), and `kit` (favicons, PWA icons, OG cards, and CSS tokens).
46
+ - **Visual Inspection & Studio (`inspect/`, `studio/`)**: Rasterizes via `resvg-py` to render a 4-panel `sheet.png`, computes `metrics.json` checks via `numpy` and `pillow`, and serves an infinite-canvas localhost review and Bento presentation console (`brandspec review`).
48
47
 
49
48
  ## Project Layout
50
49
 
@@ -56,8 +55,9 @@ brandspec/
56
55
  ├── docs/
57
56
  │ ├── PRD.md # Master product requirements
58
57
  │ ├── decisions.md # Architecture decisions
59
- │ ├── mockup-prompts.md # Blank-surface mockup background prompts
58
+ │ ├── studio.md # Studio canvas shortcuts and workflow guide
60
59
  │ └── specs/ # Module specifications (01-07)
60
+ ├── frontend/ # React + Vite Studio UI source (dev-only)
61
61
  ├── LICENSE # GNU General Public License v3.0
62
62
  ├── pyproject.toml
63
63
  ├── skills/brandspec/SKILL.md # Agent workflow and DSL guide
@@ -69,7 +69,6 @@ brandspec/
69
69
  │ │ ├── kit/ # Favicon, PWA, OG card, and CSS token exporter
70
70
  │ │ ├── lockup/ # Mark and wordmark lockup composer
71
71
  │ │ ├── mark/ # Geometric and optical mark compiler, sweep, archetypes
72
- │ │ ├── mockup/ # Perspective mockup composer, renderer, and templates
73
72
  │ │ ├── pattern/ # Seamless 3x3 tiling SVG pattern compiler
74
73
  │ │ ├── tokens/ # WCAG/APCA contrast audit and palette extraction
75
74
  │ │ └── wordmark/ # Outlined font glyph wordmark compiler
@@ -129,8 +128,6 @@ npx skills add rafifmsn/brandspec
129
128
  | `brandspec wordmark fonts [--query <text>] [--json]` | Lists available `.ttf` and `.otf` system font paths for wordmarks. |
130
129
  | `brandspec wordmark build <wordmark.spec.json> [--out-dir <dir>]` | Outlines `.ttf`/`.otf` glyphs via `fontTools` with kerning, ink traps, stencil cuts, and `sheet.png`. |
131
130
  | `brandspec lockup build <lockup.spec.json> [--out-dir <dir>]` | Pairs mark and wordmark into horizontal, stacked, or badge lockups with optical alignment, clearspace guides, and `sheet.png`. |
132
- | `brandspec mockup list` | Lists all bundled photographic mockup scene templates. |
133
- | `brandspec mockup build <target> [--brand-name <name>] [--headline <text>]` | Composites a mark, wordmark, or lockup onto perspective mockup scenes. |
134
131
  | `brandspec icons build <icons.spec.json> [--out-dir <dir>]` | Compiles matched `24x24` icon sets inheriting mark geometry defaults. |
135
132
  | `brandspec pattern build <pattern.spec.json> [--out-dir <dir>]` | Compiles 3x3 periodic-wrapped seamless tiling SVG patterns. |
136
133
  | `brandspec install-skill [--target <preset-or-path>] [--force]` | Installs the bundled `SKILL.md` for AI agents (`agents`, `project`, `claude`, `cursor`, `codex`, `antigravity`, or a custom path). |
@@ -185,17 +182,3 @@ Every `brandspec build` outputs:
185
182
  <p align="center">
186
183
  <img src="./brandspec-thumb-2.jpg" alt="Brandspec Studio Review, Archetype Marks, and Perspective Mockups" width="100%" />
187
184
  </p>
188
-
189
- ## Archetypes
190
-
191
- | Recipe | Category | Grid | Focus |
192
- | :--- | :--- | :--- | :--- |
193
- | `ribbon-weave` | `geometric` | `square` | Interlocking stadium links using `halo` and `halo_targets` |
194
- | `iso-impossible` | `geometric` | `isometric` | Three-fold rotational folded hexagon |
195
- | `line-screen-disc` | `effect` | `square` | Linearly modulated stripes clipped to a sphere with diagonal cut |
196
- | `halftone-matrix` | `effect` | `square` | Symmetric five-by-five circular halftone field pulsing from the center |
197
- | `chevron-monogram` | `monogram` | `square` | Figure-ground architectural M formed by stacked chevron wedges |
198
- | `stencil-monogram` | `monogram` | `square` | Modular figure-ground letterform with rounded arches |
199
- | `vela-sails` | `effect` | `square` | Concave curved sails over a modulated stripe hull |
200
- | `solaris-aperture` | `effect` | `polar` | Eight-blade kinetic core inside a segmented corona ring |
201
- | `kronos-chambers` | `geometric` | `square` | Four-way interlocking acoustic chambers around a central core |
Binary file
@@ -0,0 +1,49 @@
1
+ # BrandSpec Studio Guide
2
+
3
+ BrandSpec Studio is an infinite-canvas review and presentation workspace served directly by `brandspec review --dir <out_dir>`.
4
+
5
+ ## Tools and Keyboard Shortcuts
6
+
7
+ | Shortcut | Action |
8
+ | --- | --- |
9
+ | `V` | Select and move frames on the canvas |
10
+ | `H` | Hand tool for panning the canvas |
11
+ | `Space` (hold) | Temporarily switch to Hand pan |
12
+ | `C` | Comment Pin tool for dropping grid-calibrated pins inside frames |
13
+ | `F` | Duplicate the selected frame (or add a frame from the active candidate) |
14
+ | `F2` or `Ctrl/Cmd + R` | Inline rename the selected frame |
15
+ | `Delete` / `Backspace` | Delete selected duplicated frames (or selected gradient stop when picker is open) |
16
+ | `Shift` / `Ctrl` / `Cmd` + Click | Multi-select frames on the canvas or in the left sidebar |
17
+ | `Ctrl/Cmd + Z` | Undo last canvas change on the active round |
18
+ | `Ctrl/Cmd + Y` or `Ctrl/Cmd + Shift + Z` | Redo canvas change on the active round |
19
+ | `Scroll Wheel` | Pan canvas vertically |
20
+ | `Shift + Scroll Wheel` | Pan canvas horizontally |
21
+ | `Ctrl/Cmd + Scroll Wheel` | Zoom in and out around the pointer |
22
+ | `Ctrl/Cmd + 0` | Reset canvas zoom to 100% |
23
+ | `Esc` | Close active color picker or cancel inline rename |
24
+
25
+ ## Canvas and Frames
26
+
27
+ Each compiled candidate loads as an independent frame on the infinite dot-grid canvas.
28
+ Drag frames freely, resize from any corner handle, or double-click a frame title (on the canvas or in the left sidebar) to rename it inline.
29
+ Duplicate frames with `F` to compare multiple sizes, construction grid overlays, surface colors, or mark fills side by side.
30
+
31
+ ## Solid and Gradient Color Pickers
32
+
33
+ Select any frame and click **Surface Fill** or **Mark Fill** in the right inspector to open the color picker.
34
+ Switch between **Solid** and **Gradient** modes at the top of the popover.
35
+ In Gradient mode, click anywhere along the gradient bar to add a color stop, click a stop to edit its color and opacity, drag stops to reposition them, or click **Delete stop** (enabled when a stop is selected and more than two stops exist).
36
+
37
+ ## Pages (Rounds) and Review Handoff
38
+
39
+ Pages in the left sidebar map directly to review rounds (`Round 01`, `Round 02`, ...).
40
+ Switching pages displays archived round snapshots while keeping the top-bar round badge in sync.
41
+ Use the **Activity** tab to inspect past decisions and pending rebuild status.
42
+ Submitting a review writes `review.json` (`schemaVersion: 2`) with `status` (`revise` or `reject`), `message`, `selected_candidate`, `pins`, and `frame_overrides`, and snapshots `rounds/round-N/` on disk.
43
+ Canvas positions, sizes, fills, and Bento layouts persist automatically to `studio.json` inside the reviewed directory.
44
+
45
+ ## Bento Preview and Export
46
+
47
+ Switch the top-bar mode to **Bento** to compose a presentation grid from your canvas frames.
48
+ Use the **Frames (N/M)** dropdown to search and toggle included frames, drag cards to reorder them, click a card's span button to cycle sizes (`1x1`, `2x1`, `1x2`, `2x2`), and export the board as PNG.
49
+ From the Canvas right inspector footer, export a single selected frame as PNG or SVG, or export multiple selected frames (or the full round) as a ZIP archive.
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Brandspec</title>
7
+ <link rel="icon" type="image/x-icon" href="/favicon.ico" />
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "brandspec-studio",
3
+ "private": true,
4
+ "version": "0.1.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc --noEmit && vite build",
9
+ "typecheck": "tsc --noEmit"
10
+ },
11
+ "dependencies": {
12
+ "jszip": "^3.10.1",
13
+ "lucide-react": "^0.511.0",
14
+ "react": "^19.1.0",
15
+ "react-dom": "^19.1.0"
16
+ },
17
+ "devDependencies": {
18
+ "@types/react": "^19.1.2",
19
+ "@types/react-dom": "^19.1.2",
20
+ "@vitejs/plugin-react": "^4.4.1",
21
+ "typescript": "^5.8.3",
22
+ "vite": "^6.3.5"
23
+ },
24
+ "pnpm": {
25
+ "onlyBuiltDependencies": [
26
+ "esbuild"
27
+ ]
28
+ }
29
+ }