@unbox-plus/cli 0.20.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.
Files changed (358) hide show
  1. package/LICENSE.md +46 -0
  2. package/README.md +175 -0
  3. package/bin/cli.js +439 -0
  4. package/package.json +43 -0
  5. package/src/colors.js +100 -0
  6. package/src/presets.js +241 -0
  7. package/src/theme.js +253 -0
  8. package/template/.claude/agents/assets-marca.md +40 -0
  9. package/template/.claude/agents/avaliador-visual.md +48 -0
  10. package/template/.claude/agents/branding-briefing.md +401 -0
  11. package/template/.claude/agents/conteudo-secao.md +46 -0
  12. package/template/.claude/agents/paginas-legais.md +44 -0
  13. package/template/.claude/settings.json +3 -0
  14. package/template/.claude/skills/frontend-design/ATTRIBUTION.md +3 -0
  15. package/template/.claude/skills/frontend-design/LICENSE.txt +177 -0
  16. package/template/.claude/skills/frontend-design/SKILL.md +55 -0
  17. package/template/.claude/skills/web-design-guidelines/ATTRIBUTION.md +3 -0
  18. package/template/.claude/skills/web-design-guidelines/SKILL.md +50 -0
  19. package/template/.claude/skills/web-design-guidelines/guidelines-snapshot.md +180 -0
  20. package/template/.env.example +158 -0
  21. package/template/.mcp.json.example +14 -0
  22. package/template/.nvmrc +1 -0
  23. package/template/CLAUDE.md +333 -0
  24. package/template/COVERAGE.md +80 -0
  25. package/template/DEPLOY.md +179 -0
  26. package/template/QA.md +108 -0
  27. package/template/README.md +152 -0
  28. package/template/agents/CONSTRUCAO.md +207 -0
  29. package/template/agents/MANAGER.md +192 -0
  30. package/template/agents/PADROES.md +255 -0
  31. package/template/agents/definitions/00-scaffold.md +56 -0
  32. package/template/agents/definitions/01-layout.md +47 -0
  33. package/template/agents/definitions/02-homepage.md +70 -0
  34. package/template/agents/definitions/03-catalog.md +86 -0
  35. package/template/agents/definitions/04-pdp.md +97 -0
  36. package/template/agents/definitions/05-cart.md +116 -0
  37. package/template/agents/definitions/06-checkout.md +146 -0
  38. package/template/agents/definitions/07-auth.md +130 -0
  39. package/template/agents/definitions/08-customer.md +55 -0
  40. package/template/agents/definitions/09-promotions.md +62 -0
  41. package/template/agents/definitions/10-feedback.md +128 -0
  42. package/template/agents/definitions/11-seo-infra.md +159 -0
  43. package/template/agents/definitions/12-deploy.md +173 -0
  44. package/template/agents/definitions/13-cro.md +275 -0
  45. package/template/agents/definitions/14-seo.md +388 -0
  46. package/template/agents/definitions/15-branding.md +26 -0
  47. package/template/agents/definitions/16-qa-visual.md +138 -0
  48. package/template/agents/definitions/17-aeo.md +257 -0
  49. package/template/app/(loja)/busca/page.tsx +72 -0
  50. package/template/app/(loja)/carrinho/oferta/page.tsx +57 -0
  51. package/template/app/(loja)/carrinho/page.tsx +160 -0
  52. package/template/app/(loja)/categoria/[tagSlug]/layout.tsx +31 -0
  53. package/template/app/(loja)/categoria/[tagSlug]/loading.tsx +17 -0
  54. package/template/app/(loja)/categoria/[tagSlug]/page.tsx +49 -0
  55. package/template/app/(loja)/checkout/page.tsx +80 -0
  56. package/template/app/(loja)/checkout/pix/[ref]/page.tsx +133 -0
  57. package/template/app/(loja)/conta/assinaturas/[referenceId]/page.tsx +112 -0
  58. package/template/app/(loja)/conta/assinaturas/page.tsx +51 -0
  59. package/template/app/(loja)/conta/enderecos/page.tsx +20 -0
  60. package/template/app/(loja)/conta/entrar/page.tsx +119 -0
  61. package/template/app/(loja)/conta/page.tsx +45 -0
  62. package/template/app/(loja)/conta/pedidos/[referenceId]/page.tsx +49 -0
  63. package/template/app/(loja)/conta/pedidos/page.tsx +104 -0
  64. package/template/app/(loja)/conta/preferencias/page.tsx +24 -0
  65. package/template/app/(loja)/devolucoes/page.tsx +36 -0
  66. package/template/app/(loja)/layout.tsx +22 -0
  67. package/template/app/(loja)/oferta/page.tsx +57 -0
  68. package/template/app/(loja)/page.tsx +86 -0
  69. package/template/app/(loja)/pedido/[referenceId]/page.tsx +78 -0
  70. package/template/app/(loja)/privacidade/page.tsx +113 -0
  71. package/template/app/(loja)/produto/[productSlug]/layout.tsx +23 -0
  72. package/template/app/(loja)/produto/[productSlug]/loading.tsx +20 -0
  73. package/template/app/(loja)/produto/[productSlug]/page.tsx +372 -0
  74. package/template/app/(loja)/produtos/loading.tsx +16 -0
  75. package/template/app/(loja)/produtos/page.tsx +33 -0
  76. package/template/app/(loja)/termos/page.tsx +104 -0
  77. package/template/app/acesso/page.tsx +129 -0
  78. package/template/app/api/account/addresses/route.ts +39 -0
  79. package/template/app/api/account/exists/route.ts +21 -0
  80. package/template/app/api/account/me/route.ts +25 -0
  81. package/template/app/api/account/otp/route.ts +26 -0
  82. package/template/app/api/account/preferences/route.ts +19 -0
  83. package/template/app/api/account/signin/route.ts +27 -0
  84. package/template/app/api/account/signout/route.ts +9 -0
  85. package/template/app/api/acesso/route.ts +171 -0
  86. package/template/app/api/capi/route.ts +34 -0
  87. package/template/app/api/cart/coupon/route.ts +49 -0
  88. package/template/app/api/cart/items/route.ts +45 -0
  89. package/template/app/api/cart/link/route.ts +69 -0
  90. package/template/app/api/cart/route.ts +113 -0
  91. package/template/app/api/cart/share/route.ts +21 -0
  92. package/template/app/api/cep/[code]/route.ts +18 -0
  93. package/template/app/api/checkout/address/route.ts +24 -0
  94. package/template/app/api/checkout/email/route.ts +41 -0
  95. package/template/app/api/checkout/installments/route.ts +16 -0
  96. package/template/app/api/checkout/route.ts +110 -0
  97. package/template/app/api/checkout/shipping/route.ts +65 -0
  98. package/template/app/api/checkout-destination/route.ts +31 -0
  99. package/template/app/api/order/[ref]/route.ts +17 -0
  100. package/template/app/api/payment-link/route.ts +28 -0
  101. package/template/app/api/revalidate/route.ts +52 -0
  102. package/template/app/api/shipping/quote/route.ts +29 -0
  103. package/template/app/api/subscriptions/[id]/route.ts +52 -0
  104. package/template/app/api/track/route.ts +28 -0
  105. package/template/app/api/unbox/catalogo/route.ts +136 -0
  106. package/template/app/api/unbox/paginas/route.ts +167 -0
  107. package/template/app/api/unbox/vitrine/route.ts +84 -0
  108. package/template/app/api/webhooks/unbox/route.ts +97 -0
  109. package/template/app/apple-icon.svg +5 -0
  110. package/template/app/error.tsx +15 -0
  111. package/template/app/globals.css +457 -0
  112. package/template/app/icon.svg +4 -0
  113. package/template/app/layout.tsx +90 -0
  114. package/template/app/llms.txt/route.ts +43 -0
  115. package/template/app/manifest.ts +21 -0
  116. package/template/app/not-found.tsx +18 -0
  117. package/template/app/opengraph-image.tsx +35 -0
  118. package/template/app/robots.ts +31 -0
  119. package/template/app/sitemap.ts +42 -0
  120. package/template/bootstrap.sh +87 -0
  121. package/template/components/account/account-shell.tsx +47 -0
  122. package/template/components/account/address-book.tsx +147 -0
  123. package/template/components/account/preferences-form.tsx +77 -0
  124. package/template/components/account/reorder-button.tsx +47 -0
  125. package/template/components/account/signout-button.tsx +20 -0
  126. package/template/components/account/subscription-actions.tsx +204 -0
  127. package/template/components/account-nav.tsx +41 -0
  128. package/template/components/address-fields.tsx +102 -0
  129. package/template/components/analytics/data-layer-ready.tsx +16 -0
  130. package/template/components/analytics/purchase-tracker.tsx +32 -0
  131. package/template/components/brand-search.tsx +34 -0
  132. package/template/components/cart/cart-provider.tsx +340 -0
  133. package/template/components/cart/mini-cart.tsx +228 -0
  134. package/template/components/cart-button.tsx +35 -0
  135. package/template/components/catalog/catalog-client.tsx +523 -0
  136. package/template/components/catalog/grid-skeleton.tsx +19 -0
  137. package/template/components/catalog/pager.tsx +66 -0
  138. package/template/components/catalog/product-grid-card.tsx +52 -0
  139. package/template/components/catalog/product-grid.tsx +27 -0
  140. package/template/components/checkout/checkout-client.tsx +1333 -0
  141. package/template/components/chrome/announce-bar.tsx +57 -0
  142. package/template/components/chrome/chrome-recipe.ts +13 -0
  143. package/template/components/chrome/footers/captura-botao.tsx +28 -0
  144. package/template/components/chrome/footers/colunas.tsx +110 -0
  145. package/template/components/chrome/footers/conversao.tsx +90 -0
  146. package/template/components/chrome/footers/editorial.tsx +98 -0
  147. package/template/components/chrome/footers/minimal.tsx +55 -0
  148. package/template/components/chrome/header-bar-mobile.tsx +64 -0
  149. package/template/components/chrome/headers/centralizado.tsx +71 -0
  150. package/template/components/chrome/headers/classico.tsx +64 -0
  151. package/template/components/chrome/headers/compacto.tsx +66 -0
  152. package/template/components/chrome/headers/equilibrado.tsx +73 -0
  153. package/template/components/chrome/headers/imersivo.tsx +62 -0
  154. package/template/components/chrome/registry.ts +70 -0
  155. package/template/components/chrome/solid-on-scroll.tsx +39 -0
  156. package/template/components/empty-state.tsx +22 -0
  157. package/template/components/home/combo-card-compact.tsx +67 -0
  158. package/template/components/home/combos-home.tsx +64 -0
  159. package/template/components/home/combos-section.tsx +177 -0
  160. package/template/components/home/home-recipe.ts +41 -0
  161. package/template/components/home/sections/attributes-marquee.tsx +178 -0
  162. package/template/components/home/sections/benefits.tsx +80 -0
  163. package/template/components/home/sections/bloco-html.tsx +47 -0
  164. package/template/components/home/sections/catalogo.ts +165 -0
  165. package/template/components/home/sections/category-pills.tsx +32 -0
  166. package/template/components/home/sections/combos-carousel.tsx +141 -0
  167. package/template/components/home/sections/comparison.tsx +73 -0
  168. package/template/components/home/sections/founder-story.tsx +40 -0
  169. package/template/components/home/sections/hero.tsx +187 -0
  170. package/template/components/home/sections/kits.tsx +11 -0
  171. package/template/components/home/sections/media-cards.tsx +70 -0
  172. package/template/components/home/sections/newsletter.tsx +62 -0
  173. package/template/components/home/sections/product-showcase.tsx +175 -0
  174. package/template/components/home/sections/purchase-hero.tsx +187 -0
  175. package/template/components/home/sections/quote-banner.tsx +50 -0
  176. package/template/components/home/sections/registry.ts +186 -0
  177. package/template/components/home/sections/reviews-carousel.tsx +66 -0
  178. package/template/components/home/sections/reviews.tsx +68 -0
  179. package/template/components/home/sections/ritual.tsx +96 -0
  180. package/template/components/home/sections/savings.tsx +47 -0
  181. package/template/components/home/sections/social-row.tsx +65 -0
  182. package/template/components/home/sections/spec-table.tsx +117 -0
  183. package/template/components/home/sections/stars.tsx +12 -0
  184. package/template/components/home/sections/stats-grid.tsx +54 -0
  185. package/template/components/home/sections/trust-bar.tsx +56 -0
  186. package/template/components/home/sections/trust-strip.tsx +40 -0
  187. package/template/components/home/sections/video-wall.tsx +59 -0
  188. package/template/components/landing/landing-recipe.ts +20 -0
  189. package/template/components/landing/oferta-sections.tsx +40 -0
  190. package/template/components/landing/product-picker.tsx +257 -0
  191. package/template/components/mobile-nav.tsx +71 -0
  192. package/template/components/order-status.tsx +163 -0
  193. package/template/components/powered-by-unbox.tsx +27 -0
  194. package/template/components/product/pdp/buy-box.tsx +604 -0
  195. package/template/components/product/pdp/catalog-grid.tsx +113 -0
  196. package/template/components/product/pdp/faq-modelo.ts +86 -0
  197. package/template/components/product/pdp/gallery.tsx +87 -0
  198. package/template/components/product/pdp/interactive.tsx +200 -0
  199. package/template/components/product/pdp/newsletter.tsx +64 -0
  200. package/template/components/product/pdp/payment-chips.tsx +22 -0
  201. package/template/components/product/pdp/pdp-view.tsx +227 -0
  202. package/template/components/product/pdp/recommendations.tsx +144 -0
  203. package/template/components/product/pdp/sections.tsx +173 -0
  204. package/template/components/quantity-stepper.tsx +36 -0
  205. package/template/components/search-box.tsx +37 -0
  206. package/template/components/site-footer.tsx +59 -0
  207. package/template/components/site-header.tsx +64 -0
  208. package/template/components/ui/accordion.tsx +72 -0
  209. package/template/components/ui/alert-dialog.tsx +187 -0
  210. package/template/components/ui/alert.tsx +76 -0
  211. package/template/components/ui/aspect-ratio.tsx +22 -0
  212. package/template/components/ui/avatar.tsx +109 -0
  213. package/template/components/ui/badge.tsx +52 -0
  214. package/template/components/ui/breadcrumb.tsx +125 -0
  215. package/template/components/ui/button.tsx +58 -0
  216. package/template/components/ui/card.tsx +103 -0
  217. package/template/components/ui/carousel.tsx +242 -0
  218. package/template/components/ui/command.tsx +196 -0
  219. package/template/components/ui/dialog.tsx +160 -0
  220. package/template/components/ui/dropdown-menu.tsx +268 -0
  221. package/template/components/ui/foto.tsx +54 -0
  222. package/template/components/ui/input-group.tsx +158 -0
  223. package/template/components/ui/input-otp.tsx +87 -0
  224. package/template/components/ui/input.tsx +20 -0
  225. package/template/components/ui/label.tsx +20 -0
  226. package/template/components/ui/navigation-menu.tsx +168 -0
  227. package/template/components/ui/pagination.tsx +132 -0
  228. package/template/components/ui/popover.tsx +90 -0
  229. package/template/components/ui/progress.tsx +83 -0
  230. package/template/components/ui/radio-group.tsx +38 -0
  231. package/template/components/ui/scroll-area.tsx +55 -0
  232. package/template/components/ui/select.tsx +201 -0
  233. package/template/components/ui/separator.tsx +25 -0
  234. package/template/components/ui/sheet.tsx +138 -0
  235. package/template/components/ui/skeleton.tsx +13 -0
  236. package/template/components/ui/sonner.tsx +44 -0
  237. package/template/components/ui/switch.tsx +32 -0
  238. package/template/components/ui/table.tsx +116 -0
  239. package/template/components/ui/tabs.tsx +82 -0
  240. package/template/components/ui/textarea.tsx +18 -0
  241. package/template/components/ui/toggle-group.tsx +89 -0
  242. package/template/components/ui/toggle.tsx +45 -0
  243. package/template/components/ui/tooltip.tsx +66 -0
  244. package/template/components.json +25 -0
  245. package/template/eslint.config.mjs +36 -0
  246. package/template/gitignore +21 -0
  247. package/template/lib/analytics.ts +369 -0
  248. package/template/lib/api.ts +60 -0
  249. package/template/lib/capi.ts +87 -0
  250. package/template/lib/cart-link.ts +51 -0
  251. package/template/lib/cart-normalize.ts +142 -0
  252. package/template/lib/cart-recovery.ts +23 -0
  253. package/template/lib/cart-response.ts +48 -0
  254. package/template/lib/catalog-map.ts +54 -0
  255. package/template/lib/catalog.ts +3 -0
  256. package/template/lib/checkout-lock.ts +21 -0
  257. package/template/lib/checkout-nav.ts +22 -0
  258. package/template/lib/config.ts +51 -0
  259. package/template/lib/crm.ts +40 -0
  260. package/template/lib/customer-session.ts +21 -0
  261. package/template/lib/dataloader.ts +23 -0
  262. package/template/lib/editable/config.ts +11 -0
  263. package/template/lib/editable/document.ts +1762 -0
  264. package/template/lib/editable/index.ts +3 -0
  265. package/template/lib/editable/primitives.tsx +821 -0
  266. package/template/lib/editable/provider.tsx +861 -0
  267. package/template/lib/editable/rastreio-navegacao.tsx +65 -0
  268. package/template/lib/editable/rastreio.tsx +168 -0
  269. package/template/lib/editable/server.ts +189 -0
  270. package/template/lib/editable/tokens.ts +22 -0
  271. package/template/lib/editable/verify.ts +24 -0
  272. package/template/lib/enrichment/combos.ts +184 -0
  273. package/template/lib/enrichment/index.ts +188 -0
  274. package/template/lib/enrichment/products.json +1 -0
  275. package/template/lib/env-check.ts +47 -0
  276. package/template/lib/format.ts +130 -0
  277. package/template/lib/icons.ts +67 -0
  278. package/template/lib/json-ld.ts +9 -0
  279. package/template/lib/llms-txt.ts +75 -0
  280. package/template/lib/mockup.ts +24 -0
  281. package/template/lib/newsletter.ts +12 -0
  282. package/template/lib/orders.ts +160 -0
  283. package/template/lib/queries.ts +66 -0
  284. package/template/lib/ratelimit.ts +47 -0
  285. package/template/lib/rotas-editaveis.ts +192 -0
  286. package/template/lib/sanitize.ts +36 -0
  287. package/template/lib/schemas.ts +78 -0
  288. package/template/lib/session.ts +98 -0
  289. package/template/lib/store-config.ts +67 -0
  290. package/template/lib/unbox/client.ts +829 -0
  291. package/template/lib/unbox/customer.ts +224 -0
  292. package/template/lib/unbox/errors.ts +97 -0
  293. package/template/lib/unbox/index.ts +10 -0
  294. package/template/lib/unbox/store.ts +113 -0
  295. package/template/lib/unbox/types.ts +195 -0
  296. package/template/lib/unbox/webhooks.ts +66 -0
  297. package/template/lib/utils.ts +6 -0
  298. package/template/lib/vitrine.ts +242 -0
  299. package/template/lib/webhook-store.ts +22 -0
  300. package/template/middleware.ts +178 -0
  301. package/template/next.config.ts +63 -0
  302. package/template/package.json +62 -0
  303. package/template/postcss.config.mjs +5 -0
  304. package/template/public/brand/coll/default.png +0 -0
  305. package/template/public/brand/hero-desktop.svg +12 -0
  306. package/template/public/brand/hero-mobile.svg +12 -0
  307. package/template/public/brand/heros/boutique-desktop.svg +11 -0
  308. package/template/public/brand/heros/boutique-mobile.svg +11 -0
  309. package/template/public/brand/heros/editorial-desktop.svg +11 -0
  310. package/template/public/brand/heros/editorial-mobile.svg +11 -0
  311. package/template/public/brand/heros/essencial-desktop.svg +12 -0
  312. package/template/public/brand/heros/essencial-mobile.svg +12 -0
  313. package/template/public/brand/heros/promocional-desktop.svg +12 -0
  314. package/template/public/brand/heros/promocional-mobile.svg +12 -0
  315. package/template/public/brand/logo-chrome.svg +6 -0
  316. package/template/public/brand/logo-white.svg +6 -0
  317. package/template/public/brand/logo.svg +7 -0
  318. package/template/public/brand/pay-amex.webp +0 -0
  319. package/template/public/brand/pay-elo.webp +0 -0
  320. package/template/public/brand/pay-mastercard.webp +0 -0
  321. package/template/public/brand/pay-pix.webp +0 -0
  322. package/template/public/brand/pay-visa.webp +0 -0
  323. package/template/public/brand/ph/avatar-a.svg +5 -0
  324. package/template/public/brand/ph/avatar-b.svg +5 -0
  325. package/template/public/brand/ph/avatar-c.svg +5 -0
  326. package/template/public/brand/ph/avatar-d.svg +5 -0
  327. package/template/public/brand/ph/photo-a.svg +7 -0
  328. package/template/public/brand/ph/photo-b.svg +6 -0
  329. package/template/public/brand/ph/photo-c.svg +6 -0
  330. package/template/public/brand/ph/poster-a.svg +6 -0
  331. package/template/public/brand/ph/poster-b.svg +6 -0
  332. package/template/public/brand/ph/poster-c.svg +6 -0
  333. package/template/public/unbox/powered-by-fundo-preto.png +0 -0
  334. package/template/public/unbox/powered-by-transparente.png +0 -0
  335. package/template/public/unbox/powered-by.png +0 -0
  336. package/template/scripts/abandoned-cart.ts +82 -0
  337. package/template/scripts/check-editable.mjs +467 -0
  338. package/template/scripts/check-honestidade.mjs +111 -0
  339. package/template/scripts/check-placeholder.mjs +200 -0
  340. package/template/scripts/check-recipe.mjs +76 -0
  341. package/template/scripts/check-unbox-brand.mjs +298 -0
  342. package/template/scripts/contraste.js +177 -0
  343. package/template/scripts/dump-catalog.ts +95 -0
  344. package/template/scripts/load-env.ts +13 -0
  345. package/template/scripts/medir-sistema.mjs +56 -0
  346. package/template/scripts/place-order-pix.ts +61 -0
  347. package/template/scripts/qa-screenshots.mjs +150 -0
  348. package/template/scripts/sistema.py +231 -0
  349. package/template/scripts/subscribe-webhook.ts +36 -0
  350. package/template/scripts/test-live.ts +186 -0
  351. package/template/scripts/vocabulario.py +264 -0
  352. package/template/tsconfig.json +27 -0
  353. package/tools/LEIA-ME.md +39 -0
  354. package/tools/check-template-neutro.mjs +111 -0
  355. package/tools/notion-doc.mjs +191 -0
  356. package/tools/tokenize-neutrals.mjs +0 -0
  357. package/tools/tokenize-radius.mjs +52 -0
  358. package/tools/workflow-storefront.legado.js +1207 -0
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: frontend-design
3
+ description: Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
4
+ license: Complete terms in LICENSE.txt
5
+ ---
6
+
7
+ # Frontend Design
8
+
9
+ Approach this as the design lead at a small studio known for giving every client a visual identity that could not be mistaken for anyone else's. This client has already rejected proposals that felt templated, and is paying for a distinctive point of view: make deliberate, opinionated choices about palette, typography, and layout that are specific to this brief, and take one real aesthetic risk you can justify.
10
+
11
+ ## Ground it in the subject
12
+
13
+ If the brief does not pin down what the product or subject is, pin it yourself before designing: name one concrete subject, its audience, and the page's single job, and state your choice. If there's any information in your memory about the human's preferences, context about what they're building, or designs you've made before – use that as a hint. The subject's own world, its materials, instruments, artifacts, and vernacular, is where distinctive choices come from. Build with the brief's real content and subject matter throughout.
14
+
15
+ ## Design principles
16
+
17
+ For web designs, the hero is a thesis. Open with the most characteristic thing in the subject's world, in whatever form makes sense for it: a headline, an image, an animation, a live demo, an interactive moment. Be deliberate with your choice: a big number with a small label, supporting stats, and a gradient accent is the template answer, only use if that's truly the best option.
18
+
19
+ Typography carries the personality of the page. Pair the display and body faces deliberately, not the same families you would reach for on any other project, and set a clear type scale with intentional weights, widths, and spacing. Make the type treatment itself a memorable part of the design, not a neutral delivery vehicle for the content.
20
+
21
+ Structure is information. Structural devices, numbering, eyebrows, dividers, labels, should encode something true about the content, not decorate it. Many generic designs use numbered markers (01 / 02 / 03), but that's only appropriate if the content actually is a sequence - like a real process or a typed timeline where order carries information the reader needs. Question if choices like numbered markers actually make sense before incorporating them.
22
+
23
+ Leverage motion deliberately. Think about where and if animation can serve the subject: a page-load sequence, a scroll-triggered reveal, hover micro-interactions, ambient atmosphere. An orchestrated moment usually lands harder than scattered effects; choose what the direction calls for. However, sometimes less is more, and extra animation contributes to the feeling that the design is AI-generated.
24
+
25
+ Match complexity to the vision. Maximalist directions need elaborate execution; minimal directions need precision in spacing, type, and detail. Elegance is executing the chosen vision well.
26
+
27
+ Consider written content carefully. Often a design brief may not contain real content, and it's up to you to come up with copy. Copy can make a design feel as templated as the design itself. See the below section on writing for more guidance.
28
+
29
+ ## Process: brainstorm, explore, plan, critique, build, critique again
30
+
31
+ For calibration: AI-generated design right now clusters around three looks: (1) a warm cream background (near #F4F1EA) with a high-contrast serif display and a terracotta accent; (2) a near-black background with a single bright acid-green or vermilion accent; (3) a broadsheet-style layout with hairline rules, zero border-radius, and dense newspaper-like columns. All three are legitimate for some briefs, but they are defaults rather than choices, and they appear regardless of subject. Where the brief pins down a visual direction, follow it exactly — the brief's own words always win, including when it asks for one of these looks. Where it leaves an axis free, don't spend that freedom on one of these defaults. Just like a human designer who's hired, there's often a careful balance between doing what you're good at and taking each project as a chance to experiment and learn.
32
+
33
+ Work in two passes. First, brainstorm a short design plan based on the human's design brief: create a compact token system with color, type, layout, and signature. Color: describe the palette as 4–6 named hex values. Type: the typefaces for 2+ roles (a characterful display face that's used with restraint, a complementary body face, and a utility face for captions or data if needed). Layout: a layout concept, using one-sentence prose descriptions and ASCII wireframes to ideate and compare. Signature: the single unique element this page will be remembered by that embodies the brief in an appropriate way.
34
+
35
+ Then review that plan against the brief before building: if any part of it reads like the generic default you would produce for any similar page (work through a similar prompt to see if you arrive somewhere similar) rather than a choice made for this specific brief — revise that part, say what you changed and why. Only after you've confirmed the relative uniqueness of your design plan should you start to write the code, following the revised plan exactly and deriving every color and type decision from it.
36
+
37
+ When writing the code, be careful of structuring your CSS selector specificities. It's easy to generate CSS classes that cancel each other out (especially with a type-based selector like .section and a element-based selector like .cta). This can happen often with paddings/margins between sections.
38
+
39
+ Try to do a lot of this planning and iteration in your thinking, and only show ideas to the user when you have higher confidence it'll delight them.
40
+
41
+ ## Restraint and self-critique
42
+
43
+ Spend your boldness in one place. Let the signature element be the one memorable thing, keep everything around it quiet and disciplined, and cut any decoration that does not serve the brief. Not taking a risk can be a risk itself! Build to a quality floor without announcing it: responsive down to mobile, visible keyboard focus, reduced motion respected. Critique your own work as you build, taking screenshots if your environment supports it – a picture is worth 1000 tokens. Consider Chanel's advice: before leaving the house, take a look in the mirror and remove one accessory. Human creators have memory and always try to do something new, so if you have a space to quickly jot down notes about what you've tried, it can help you in future passes.
44
+
45
+ ## More on writing in design
46
+
47
+ Words appear in a design for one reason: to make it easier to understand, and therefore easier to use. They are design material, not decoration. Bring the same intentionality to copy that you would bring to spacing and color. Before writing anything, ask what the design needs to say, and how it can best be said to help the person navigate the experience.
48
+
49
+ Write from the end user's side of the screen. Name things by what people control and recognize, never by how the system is built. A person manages notifications, not webhook config. Describe what something does in plain terms rather than selling it. Being specific is always better than being clever.
50
+
51
+ Use active voice as default. A control should say exactly what happens when it's used: "Save changes," not "Submit." An action keeps the same name through the whole flow, so the button that says "Publish" produces a toast that says "Published." The vocabulary of an interface is the signposting for someone navigating the product. Cohesion and consistency are how people learn their way around.
52
+
53
+ Treat failure and emptiness as moments for direction, not mood. Explain what went wrong and how to fix it, in the interface's voice rather than a person's. Errors don't apologize, and they are never vague about what happened. An empty screen is an invitation to act.
54
+
55
+ Keep the register conversational and tuned: plain verbs, sentence case, no filler, with tone matched to the brand and the audience. Let each element do exactly one job. A label labels, an example demonstrates, and nothing quietly does double duty.
@@ -0,0 +1,3 @@
1
+ Skill "web-design-guidelines" vendorizado de vercel-labs/agent-skills
2
+ (https://github.com/vercel-labs/agent-skills), licença MIT (ver README do repo).
3
+ Copyright (c) Vercel Labs.
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: web-design-guidelines
3
+ description: Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
4
+ metadata:
5
+ author: vercel
6
+ version: "1.0.0"
7
+ argument-hint: <file-or-pattern>
8
+ ---
9
+
10
+ # Web Interface Guidelines
11
+
12
+ Review files for compliance with Web Interface Guidelines.
13
+
14
+ ## How It Works
15
+
16
+ 1. **Read `guidelines-snapshot.md` next to this file.** It ships with the project and contains
17
+ the full rule set. It is the default source — no network required.
18
+ 2. Read the specified files (or prompt user for files/pattern)
19
+ 3. Check against all rules in the snapshot
20
+ 4. Output findings in the terse `file:line` format
21
+
22
+ ## Guidelines Source
23
+
24
+ The bundled snapshot is authoritative for normal reviews. Rules of web interface quality do
25
+ not turn over between one QA round and the next, and a fetch costs a round trip plus the
26
+ whole document again on every single review — inside a QA loop that repeats, that adds up
27
+ fast for no change in findings.
28
+
29
+ Fetch the upstream version **only** when one of these is true:
30
+
31
+ - `guidelines-snapshot.md` is missing or unreadable;
32
+ - the user explicitly asks for the latest upstream rules;
33
+ - you are refreshing the snapshot itself on purpose.
34
+
35
+ ```
36
+ https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
37
+ ```
38
+
39
+ If you do fetch and the content differs meaningfully, write it back over
40
+ `guidelines-snapshot.md` so the next review starts from the newer copy.
41
+
42
+ ## Usage
43
+
44
+ When a user provides a file or pattern argument:
45
+ 1. Read the snapshot (see above)
46
+ 2. Read the specified files
47
+ 3. Apply all rules from the snapshot
48
+ 4. Output findings using the format specified in the guidelines
49
+
50
+ If no files specified, ask the user which files to review.
@@ -0,0 +1,180 @@
1
+ ---
2
+ description: Review UI code for Vercel Web Interface Guidelines compliance
3
+ argument-hint: <file-or-pattern>
4
+ ---
5
+
6
+ # Web Interface Guidelines
7
+
8
+ Review these files for compliance: $ARGUMENTS
9
+
10
+ Read files, check against rules below. Output concise but comprehensive—sacrifice grammar for brevity. High signal-to-noise.
11
+
12
+ ## Rules
13
+
14
+ ### Accessibility
15
+
16
+ - Icon-only buttons need `aria-label`
17
+ - Form controls need `<label>` or `aria-label`
18
+ - Interactive elements need keyboard handlers (`onKeyDown`/`onKeyUp`)
19
+ - `<button>` for actions, `<a>`/`<Link>` for navigation (not `<div onClick>`)
20
+ - Images need `alt` (or `alt=""` if decorative)
21
+ - Decorative icons need `aria-hidden="true"`
22
+ - Async updates (toasts, validation) need `aria-live="polite"`
23
+ - Use semantic HTML (`<button>`, `<a>`, `<label>`, `<table>`) before ARIA
24
+ - Headings hierarchical `<h1>`–`<h6>`; include skip link for main content
25
+ - `scroll-margin-top` on heading anchors
26
+
27
+ ### Focus States
28
+
29
+ - Interactive elements need visible focus: `focus-visible:ring-*` or equivalent
30
+ - Never `outline-none` / `outline: none` without focus replacement
31
+ - Use `:focus-visible` over `:focus` (avoid focus ring on click)
32
+ - Group focus with `:focus-within` for compound controls
33
+
34
+ ### Forms
35
+
36
+ - Inputs need `autocomplete` and meaningful `name`
37
+ - Use correct `type` (`email`, `tel`, `url`, `number`) and `inputmode`
38
+ - Never block paste (`onPaste` + `preventDefault`)
39
+ - Labels clickable (`htmlFor` or wrapping control)
40
+ - Disable spellcheck on emails, codes, usernames (`spellCheck={false}`)
41
+ - Checkboxes/radios: label + control share single hit target (no dead zones)
42
+ - Submit button stays enabled until request starts; spinner during request
43
+ - Errors inline next to fields; focus first error on submit
44
+ - Placeholders end with `…` and show example pattern
45
+ - `autocomplete="off"` on non-auth fields to avoid password manager triggers
46
+ - Warn before navigation with unsaved changes (`beforeunload` or router guard)
47
+
48
+ ### Animation
49
+
50
+ - Honor `prefers-reduced-motion` (provide reduced variant or disable)
51
+ - Animate `transform`/`opacity` only (compositor-friendly)
52
+ - Never `transition: all`—list properties explicitly
53
+ - Set correct `transform-origin`
54
+ - SVG: transforms on `<g>` wrapper with `transform-box: fill-box; transform-origin: center`
55
+ - Animations interruptible—respond to user input mid-animation
56
+
57
+ ### Typography
58
+
59
+ - `…` not `...`
60
+ - Curly quotes `"` `"` not straight `"`
61
+ - Non-breaking spaces: `10&nbsp;MB`, `⌘&nbsp;K`, brand names
62
+ - Loading states end with `…`: `"Loading…"`, `"Saving…"`
63
+ - `font-variant-numeric: tabular-nums` for number columns/comparisons
64
+ - Use `text-wrap: balance` or `text-pretty` on headings (prevents widows)
65
+
66
+ ### Content Handling
67
+
68
+ - Text containers handle long content: `truncate`, `line-clamp-*`, or `break-words`
69
+ - Flex children need `min-w-0` to allow text truncation
70
+ - Handle empty states—don't render broken UI for empty strings/arrays
71
+ - User-generated content: anticipate short, average, and very long inputs
72
+
73
+ ### Images
74
+
75
+ - `<img>` needs explicit `width` and `height` (prevents CLS)
76
+ - Below-fold images: `loading="lazy"`
77
+ - Above-fold critical images: `priority` or `fetchpriority="high"`
78
+
79
+ ### Performance
80
+
81
+ - Large lists (>50 items): virtualize (`virtua`, `content-visibility: auto`)
82
+ - No layout reads in render (`getBoundingClientRect`, `offsetHeight`, `offsetWidth`, `scrollTop`)
83
+ - Batch DOM reads/writes; avoid interleaving
84
+ - Prefer uncontrolled inputs; controlled inputs must be cheap per keystroke
85
+ - Add `<link rel="preconnect">` for CDN/asset domains
86
+ - Critical fonts: `<link rel="preload" as="font">` with `font-display: swap`
87
+
88
+ ### Navigation & State
89
+
90
+ - URL reflects state—filters, tabs, pagination, expanded panels in query params
91
+ - Links use `<a>`/`<Link>` (Cmd/Ctrl+click, middle-click support)
92
+ - Deep-link all stateful UI (if uses `useState`, consider URL sync via nuqs or similar)
93
+ - Destructive actions need confirmation modal or undo window—never immediate
94
+
95
+ ### Touch & Interaction
96
+
97
+ - `touch-action: manipulation` (prevents double-tap zoom delay)
98
+ - `-webkit-tap-highlight-color` set intentionally
99
+ - `overscroll-behavior: contain` in modals/drawers/sheets
100
+ - During drag: disable text selection, `inert` on dragged elements
101
+ - `autoFocus` sparingly—desktop only, single primary input; avoid on mobile
102
+
103
+ ### Safe Areas & Layout
104
+
105
+ - Full-bleed layouts need `env(safe-area-inset-*)` for notches
106
+ - Avoid unwanted scrollbars: `overflow-x-hidden` on containers, fix content overflow
107
+ - Flex/grid over JS measurement for layout
108
+
109
+ ### Dark Mode & Theming
110
+
111
+ - `color-scheme: dark` on `<html>` for dark themes (fixes scrollbar, inputs)
112
+ - `<meta name="theme-color">` matches page background
113
+ - Native `<select>`: explicit `background-color` and `color` (Windows dark mode)
114
+
115
+ ### Locale & i18n
116
+
117
+ - Dates/times: use `Intl.DateTimeFormat` not hardcoded formats
118
+ - Numbers/currency: use `Intl.NumberFormat` not hardcoded formats
119
+ - Detect language via `Accept-Language` / `navigator.languages`, not IP
120
+ - Brand names, code tokens, identifiers: wrap with `translate="no"` to prevent garbled auto-translation
121
+
122
+ ### Hydration Safety
123
+
124
+ - Inputs with `value` need `onChange` (or use `defaultValue` for uncontrolled)
125
+ - Date/time rendering: guard against hydration mismatch (server vs client)
126
+ - `suppressHydrationWarning` only where truly needed
127
+
128
+ ### Hover & Interactive States
129
+
130
+ - Buttons/links need `hover:` state (visual feedback)
131
+ - Interactive states increase contrast: hover/active/focus more prominent than rest
132
+
133
+ ### Content & Copy
134
+
135
+ - Active voice: "Install the CLI" not "The CLI will be installed"
136
+ - Title Case for headings/buttons (Chicago style)
137
+ - Numerals for counts: "8 deployments" not "eight"
138
+ - Specific button labels: "Save API Key" not "Continue"
139
+ - Error messages include fix/next step, not just problem
140
+ - Second person; avoid first person
141
+ - `&` over "and" where space-constrained
142
+
143
+ ### Anti-patterns (flag these)
144
+
145
+ - `user-scalable=no` or `maximum-scale=1` disabling zoom
146
+ - `onPaste` with `preventDefault`
147
+ - `transition: all`
148
+ - `outline-none` without focus-visible replacement
149
+ - Inline `onClick` navigation without `<a>`
150
+ - `<div>` or `<span>` with click handlers (should be `<button>`)
151
+ - Images without dimensions
152
+ - Large arrays `.map()` without virtualization
153
+ - Form inputs without labels
154
+ - Icon buttons without `aria-label`
155
+ - Hardcoded date/number formats (use `Intl.*`)
156
+ - `autoFocus` without clear justification
157
+
158
+ ## Output Format
159
+
160
+ Group by file. Use `file:line` format (VS Code clickable). Terse findings.
161
+
162
+ ```text
163
+ ## src/Button.tsx
164
+
165
+ src/Button.tsx:42 - icon button missing aria-label
166
+ src/Button.tsx:18 - input lacks label
167
+ src/Button.tsx:55 - animation missing prefers-reduced-motion
168
+ src/Button.tsx:67 - transition: all → list properties
169
+
170
+ ## src/Modal.tsx
171
+
172
+ src/Modal.tsx:12 - missing overscroll-behavior: contain
173
+ src/Modal.tsx:34 - "..." → "…"
174
+
175
+ ## src/Card.tsx
176
+
177
+ ✓ pass
178
+ ```
179
+
180
+ State issue + location. Skip explanation unless fix non-obvious. No preamble.
@@ -0,0 +1,158 @@
1
+ # ═══════════════════════════════════════════════════════════════════════════════════════
2
+ # REGRA DESTE ARQUIVO: comentário SEMPRE em linha própria, NUNCA depois do valor.
3
+ # `CHAVE= # texto` parece vazio, mas para muita ferramenta (import de env na Vercel, Docker,
4
+ # CI, `source`) o texto É o valor. Foi assim que uma loja em produção ficou com META_PIXEL_ID
5
+ # igual a uma frase em português: o guard "se tem valor" passou, a Meta rejeitou, e cada
6
+ # page view virou um 502. O lib/env-check.ts avisa no boot se algum valor parecer comentário.
7
+ # ═══════════════════════════════════════════════════════════════════════════════════════
8
+ # Copie para .env.local e preencha. SERVER-ONLY = nunca vai ao browser, sem prefixo NEXT_PUBLIC_.
9
+ #
10
+ # ⚠️ Valores com caracteres especiais (#, $, &, *, espaço, aspas) entre CRASES, com $ escapado:
11
+ # UNBOX_PASS=`#minhaSenha\$123`
12
+ # (aspas duplas não protegem uma aspa interna e aspas simples NÃO impedem a expansão de $1;
13
+ # o create-unbox-store já grava assim. No painel da Vercel, cole o valor cru, sem aspas.)
14
+ # Sem aspas, o # vira comentário e o valor chega truncado. Os scripts (unbox:test etc.)
15
+ # leem o .env.local com o MESMO parser do Next (scripts/load-env.ts), então o valor que
16
+ # funciona no `next dev` funciona igual nos scripts.
17
+
18
+ # --- Unbox (server-only) ---
19
+ # API de PARCEIROS (nova, recomendada): uma api key única por parceiro, para todas as lojas
20
+ # dele. Preenchida → signIn e as leituras compatíveis passam por partners.unbox.com.br;
21
+ # carrinho/checkout seguem no core até a Unbox publicar as escritas lá. A loja específica é
22
+ # autenticada pelo UNBOX_USER/UNBOX_PASS no signIn.
23
+ # api key do PARCEIRO (ex.: da2-...)
24
+ UNBOX_PARTNER_API_KEY=
25
+ UNBOX_PARTNER_GRAPHQL_URL=https://partners.unbox.com.br/graphql
26
+ # OBRIGATÓRIA com a key de parceiro: x-captcha-verification do signIn (pedir à Unbox)
27
+ UNBOX_CAPTCHA_BYPASS=
28
+
29
+ # Modelo antigo (key por loja) — ainda suportado; ignorado nas rotas cobertas pela API de
30
+ # parceiros quando UNBOX_PARTNER_API_KEY está preenchida. Segue usado no x-captcha-verification
31
+ # do core (placeOrder, OTP) enquanto o checkout não migra.
32
+ # chave da loja (x-api-key no signin REST E x-captcha-verification)
33
+ UNBOX_API_KEY=
34
+ # usuário de API da loja (ex.: api_minhaloja)
35
+ UNBOX_USER=
36
+ # senha do usuário de API
37
+ UNBOX_PASS=
38
+ # opcional: extraído do JWT (arn:unbox:shopId) se vazio
39
+ UNBOX_SHOP_ID=
40
+ # opcional: extraído do JWT (arn:unbox:shopSlug) se vazio
41
+ UNBOX_SHOP_SLUG=
42
+ UNBOX_AUTH_URL=https://api.unbox.com.br
43
+ UNBOX_GRAPHQL_URL=https://core.unbox.com.br/graphql
44
+ # secret(s) do subscribeToWebhook. Um por assinatura → LISTA separada por vírgula (ex.: secretA,secretB)
45
+ UNBOX_WEBHOOK_SECRET=
46
+
47
+ # --- App (server-only) ---
48
+ # string aleatória forte (cookies/rotas internas)
49
+ SESSION_SECRET=
50
+ # protege /api/revalidate
51
+ REVALIDATE_SECRET=
52
+ # Webhook do CRM (Revi/Klaviyo) p/ carrinho abandonado. Eventos que a loja envia (POST JSON):
53
+ # checkout_started — na hora em que o e-mail é digitado no checkout; SEMPRE traz recoveryUrl
54
+ # (link /checkout?id=&token=[&freq=]&step=1 que restaura o carrinho em
55
+ # qualquer aparelho). É ele que arma o fluxo de abandono no CRM.
56
+ # order_created — pedido fechado (mesmo cartId): o CRM cancela o fluxo armado.
57
+ # abandoned_cart — alternativa via cron (scripts/abandoned-cart.ts), mesmo formato de link.
58
+ CRM_WEBHOOK_URL=
59
+ # preenchida = usa o checkout PADRÃO hospedado pela Unbox em vez do /checkout customizado
60
+ # deste projeto. O CLI preenche sozinho; preenchendo à mão, duas coisas custaram um dia de
61
+ # tentativa e erro em produção:
62
+ # 1. CAMINHO COMPLETO, não o domínio. A raiz é a home da loja e ignora os parâmetros em
63
+ # silêncio: ✅ https://sualoja.com.br/carrinho/finalizar-pedido ❌ https://sualoja.com.br
64
+ # 2. MESMO DOMÍNIO da loja. Loja em um host e checkout em outro (ex.: loja.unbox.com.br +
65
+ # seguro.sualoja.com.br) manda o cliente para o /login; com os dois em sualoja.com.br, funciona.
66
+ # A URL leva ?id=&token=&freq=&step=1. O token faz parte do contrato, não é ruído.
67
+ UNBOX_HOSTED_CHECKOUT_URL=
68
+
69
+ # --- Meta Conversions API (server-only) — espelha o Pixel pelo servidor (dedupe por event_id) ---
70
+ # opcional: mesmo ID do NEXT_PUBLIC_META_PIXEL_ID (usado pela /api/capi)
71
+ META_PIXEL_ID=
72
+ # opcional: token de acesso da Conversions API (Eventos > Configurações)
73
+ # SEGREDO DE SERVIDOR: nunca vai ao documento do editor nem ao browser. O painel do editor só mostra
74
+ # se está configurado, nunca o valor.
75
+ META_CAPI_TOKEN=
76
+
77
+ # --- Público ---
78
+ # --- Porta de preview (/acesso): prévia privada com captura de lead ---
79
+ # A porta se escopa pelo DOMÍNIO sozinha: SÓ existe nos hosts de preview
80
+ # (*.vercel.app, *.myunbox.com.br + PREVIEW_HOSTS). Em domínio PRÓPRIO da marca e no
81
+ # localhost ela some sem mexer em nada. Nome/marca/WhatsApp/e-mail liberam por cookie
82
+ # de 30 dias. Time interno: qualquer URL com ?chave=<PREVIEW_PASSWORD> entra sem
83
+ # formulário (ex.: https://loja.vercel.app/?chave=unbox).
84
+ # chave do time + assinatura do cookie (padrão "unbox"); trocar derruba acessos
85
+ PREVIEW_PASSWORD=
86
+ # opcional: cria Pessoa + Negócio no Pipedrive a cada lead da prévia
87
+ PIPEDRIVE_API_TOKEN=
88
+ # opcional: webhook (Slack/Zapier) avisado a cada lead
89
+ PREVIEW_WEBHOOK_URL=
90
+ # opcional: sufixos EXTRAS de host onde a porta liga (vírgula)
91
+ PREVIEW_HOSTS=
92
+ # opcional: "1" desliga a porta em qualquer host (kill switch)
93
+ PREVIEW_DISABLED=
94
+ # opcional: "1" liga a porta em qualquer host (testar no localhost)
95
+ PREVIEW_FORCE=
96
+
97
+ NEXT_PUBLIC_SITE_URL=http://localhost:3000
98
+ # nome de exibição da loja (manifest/PWA; o CLI preenche no scaffold)
99
+ NEXT_PUBLIC_SITE_NAME=
100
+ # opcional: e-mail usado pelos scripts de teste (unbox:test, unbox:order:pix)
101
+ UNBOX_TEST_EMAIL=
102
+ # opcional: URL do endpoint ao rodar unbox:webhook:subscribe
103
+ WEBHOOK_ENDPOINT=
104
+ # opcional (GA4 via gtag.js)
105
+ # Container GTM da PRÓPRIA loja (a marca que tem agência costuma ter um). Com ele preenchido,
106
+ # o Pixel do código é DESLIGADO: Pixel no container e no código conta PageView duas vezes, e a
107
+ # inflação é silenciosa. Quem configura o container precisa saber de uma coisa: numa SPA, o
108
+ # gatilho "All Pages" só pega o carregamento inicial. Para contar troca de rota, a tag de
109
+ # pageview tem que escutar o evento personalizado `dataLayerReady` (a loja o emite em toda rota).
110
+ # Para onde vai o e-mail capturado nos blocos de newsletter (rodapé, catálogo e a seção da home).
111
+ # É a URL que recebe o POST do formulário: endpoint do CRM/ESP (Klaviyo, Revi, Mailchimp) ou uma
112
+ # rota própria. SEM ISSO OS BLOCOS NÃO RENDERIZAM, de propósito: formulário que engole o e-mail em
113
+ # silêncio é pior que não ter formulário, porque a pessoa acha que se cadastrou.
114
+ NEXT_PUBLIC_NEWSLETTER_ACTION=
115
+
116
+ NEXT_PUBLIC_GTM_ID=
117
+
118
+ # Frase que descreve a loja (meta description e cartão de compartilhamento). Sem ela, a loja vai
119
+ # ao ar sem description: o build avisa. Escreva o que a loja vende e para quem.
120
+ NEXT_PUBLIC_SITE_DESCRIPTION=
121
+
122
+ NEXT_PUBLIC_GA_ID=
123
+ # opcional (Meta Pixel no browser)
124
+ NEXT_PUBLIC_META_PIXEL_ID=
125
+ # ⚠ Se o Pixel também estiver num container GTM da loja, DEIXE ESTA VARIÁVEL VAZIA. O mesmo
126
+ # pixel carregado duas vezes ("Duplicate Pixel ID" no console) conta cada conversão em dobro
127
+ # e distorce a otimização das campanhas. Um lugar só: aqui OU no GTM, nunca os dois.
128
+ # Os IDs acima (GTM próprio, GA4, Meta Pixel) e os abaixo o lojista também pode definir na aba Apps
129
+ # do painel do editor. O que ele PUBLICA lá vence o valor daqui, provedor a provedor, e um provedor
130
+ # nunca dispara duas vezes. Aqui é o cadastro da loja: vale enquanto o painel não define. O formato
131
+ # é conferido na leitura (lib/editable, recusaDeRastreio): valor fora do formato ou placeholder
132
+ # ("GTM-XXXXXXX", "todo") é ignorado, não carrega script quebrado.
133
+ # opcional: TikTok Pixel (começa com C, cerca de 20 letras e números)
134
+ NEXT_PUBLIC_TIKTOK_PIXEL_ID=
135
+ # opcional: Pinterest Tag (13 dígitos)
136
+ NEXT_PUBLIC_PINTEREST_TAG_ID=
137
+ # opcional: botão flutuante de WhatsApp; só dígitos com DDI (ex.: 5511999998888)
138
+ NEXT_PUBLIC_WHATSAPP_NUMERO=
139
+ # opcional: mensagem inicial do botão de WhatsApp (até 300 caracteres)
140
+ NEXT_PUBLIC_WHATSAPP_MENSAGEM=
141
+
142
+ # --- Editor de loja do cliente (o lojista edita textos, fotos, cores e vitrines sem mexer no código) ---
143
+ # Sem EDITOR_URL a camada editável fica DESLIGADA e a loja renderiza só o que está no código.
144
+ # Com ela, a loja lê o conteúdo publicado em <EDITOR_URL>/api/content/<slug>/published (ISR de 300 s)
145
+ # e aplica por cima do código; sem documento publicado, nada muda.
146
+ # URL do editor (servidor): de onde a loja lê o publicado e o JWKS que valida os tokens do editor
147
+ EDITOR_URL=https://editor.myunbox.com.br
148
+ # origem do editor vista pelo navegador: entra no frame-ancestors (next.config.ts) e no postMessage
149
+ # da prévia. Sem ela o modo edição nunca liga, e o gate (npm run unbox:editavel) para em NÃO RODOU.
150
+ NEXT_PUBLIC_EDITOR_ORIGIN=https://editor.myunbox.com.br
151
+ # slug desta loja NO EDITOR. O create-unbox-store carimba o mesmo slug em lib/editable/config.ts, e
152
+ # esta variável só sobrepõe aquele literal: preencha se o `slug` da entrada da loja no shops.json do
153
+ # editor for outro. É variável PRÓPRIA: não é o UNBOX_SHOP_SLUG da plataforma (os dois costumam
154
+ # coincidir, e no dia em que divergirem o editor deixa de achar a loja sem dizer por quê).
155
+ UNBOX_EDITOR_SHOP=
156
+ # opcional: lista JSON de rotas editáveis (ex.: ["/","/produtos"]). SÓ é lida se a varredura de
157
+ # app/(loja)/ não encontrar a pasta em produção (ver lib/rotas-editaveis.ts); normalmente fica vazia.
158
+ UNBOX_ROTAS_EDITAVEIS=
@@ -0,0 +1,14 @@
1
+ {
2
+ "mcpServers": {
3
+ "unbox": {
4
+ "url": "https://mcp.unbox.com.br/mcp",
5
+ "headers": {
6
+ "x-unbox-mcp-token": "SEU_UNBOX_MCP_TOKEN",
7
+ "x-unbox-api-key": "SUA_UNBOX_PARTNER_API_KEY",
8
+ "x-unbox-username": "SEU_UNBOX_USER",
9
+ "x-unbox-password": "SUA_UNBOX_PASS",
10
+ "x-unbox-integration-mode": "headless"
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1 @@
1
+ 22