{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "vignette",
  "type": "registry:component",
  "title": "Vignette",
  "description": "A static cinematic vignette: a radial darkening at the canvas edges that frames the center. Atmospheric overlay with no motion — like GrainOverlay, it is set dressing, not a performer. Deterministic, self-contained, pointer-transparent.",
  "dependencies": [
    "remotion",
    "zod",
    "react"
  ],
  "files": [
    {
      "path": "registry/components/vignette/Vignette.tsx",
      "type": "registry:component",
      "target": "components/onda/vignette/Vignette.tsx",
      "content": "import React from 'react';\nimport { AbsoluteFill } from 'remotion';\nimport { vignetteSchema, type VignetteProps } from './schema';\n\nexport { vignetteSchema, type VignetteProps };\n\n/**\n * A static cinematic vignette — a radial darkening at the canvas edges that\n * pulls the eye toward the center. Atmospheric layer, no motion: deliberately\n * still, like {@link GrainOverlay}. Output is identical on every frame, so the\n * component is deterministic by construction without reading `useCurrentFrame`.\n *\n * `pointerEvents: 'none'` keeps it from intercepting interaction in the Studio\n * / Player when layered above other content.\n *\n * @example\n * <Vignette intensity={0.5} innerRadius={40} color=\"#000000\" />\n */\nexport const Vignette: React.FC<VignetteProps> = ({\n  intensity, innerRadius, color,\n}) => {\n  return (\n    <AbsoluteFill\n      style={{\n        pointerEvents: 'none',\n        background: `radial-gradient(ellipse at center, transparent ${innerRadius}%, ${color} 100%)`,\n        opacity: intensity,\n      }}\n    />\n  );\n};\n"
    },
    {
      "path": "registry/components/vignette/schema.ts",
      "type": "registry:component",
      "target": "components/onda/vignette/schema.ts",
      "content": "import { z } from 'zod';\n\n/** Zod schema for {@link Vignette} props. */\nexport const vignetteSchema = z.object({\n  /** Discriminator literal — matches this entry's registry slug. Auto-populated when omitted (`schema.parse({})` works as before). Lets consumers build `z.discriminatedUnion('kind', [...])` directly over onda schemas. */\n  kind: z.literal('vignette').default('vignette'),\n  /** Edge darkness. `0` = no vignette, `1` = fully dark edges. */\n  intensity: z.number().min(0).max(1).default(0.5),\n  /** Percent from center where the darkening begins. Larger = bigger clean middle. */\n  innerRadius: z.number().min(0).max(100).default(40),\n  /** Edge color. Defaults to pure black for the classic cinematic frame. */\n  color: z.string().default('#000000'),\n});\n\n/** Inferred props for {@link Vignette}. */\nexport type VignetteProps = z.infer<typeof vignetteSchema>;\n"
    },
    {
      "path": "registry/components/vignette/vignette.meta.json",
      "type": "registry:file",
      "target": "components/onda/vignette/vignette.meta.json",
      "content": "{\n  \"name\": \"vignette\",\n  \"title\": \"Vignette\",\n  \"description\": \"A static cinematic vignette: a radial darkening at the canvas edges that frames the center. Atmospheric overlay with no motion — like GrainOverlay, it is set dressing, not a performer. Deterministic, self-contained, pointer-transparent.\",\n  \"pickWhen\": \"the eye should drift toward center of frame — film hero, focused interview. Pair with `grain-overlay` for full filmic dressing.\",\n  \"category\": \"cinematic\",\n  \"tags\": [\n    \"overlay\",\n    \"vignette\",\n    \"cinematic\",\n    \"atmospheric\",\n    \"primitive\"\n  ],\n  \"dependencies\": [\n    \"remotion\",\n    \"zod\",\n    \"react\"\n  ]\n}\n"
    },
    {
      "path": "registry/components/vignette/README.md",
      "type": "registry:file",
      "target": "components/onda/vignette/README.md",
      "content": "# Vignette\n\nA static cinematic vignette — a radial darkening at the canvas edges that pulls the eye toward the center. Pure CSS `radial-gradient` rendered through an `AbsoluteFill`, no motion, no JavaScript per-frame work. The cinematic counterpart to `GrainOverlay`: another atmospheric Onda primitive whose job is to sit quietly behind the action and make the frame feel composed.\n\n## Props\n\n| Name | Type | Default | Notes |\n| --- | --- | --- | --- |\n| `intensity` | `number` in `[0, 1]` | `0.5` | Layer opacity. `0` removes the vignette entirely; `1` lets the edge color reach its full strength. The Onda house range is `0.3`–`0.6`. Anything above `~0.75` reads as a heavy filter rather than a frame. |\n| `innerRadius` | `number` in `[0, 100]` | `40` | Percent from canvas center where the darkening begins. Larger values give a bigger clean middle and a tighter dark ring at the edges. |\n| `color` | `string` | `\"#000000\"` | Edge color. Pure black is the cinematic default; deep neutrals from the Onda palette (e.g. `--onda-bg` `#08080A`) also work without breaking the dark theme. |\n\n## Usage\n\nOverlaid on top of another component inside a `<Composition>` — the vignette sits above all content but ignores pointer events:\n\n```tsx\nimport { AbsoluteFill, Composition } from 'remotion';\nimport { BlurReveal } from './components/onda/blur-reveal/BlurReveal';\nimport { Vignette, vignetteSchema } from './components/onda/vignette/Vignette';\n\nconst Scene: React.FC = () => (\n  <AbsoluteFill style={{ backgroundColor: '#08080A', alignItems: 'center', justifyContent: 'center' }}>\n    <BlurReveal text=\"Onda\" delay={0} duration={18} color=\"#F2F2F4\" fontSize={96} fontFamily='\"Clash Display\", sans-serif' />\n    <Vignette intensity={0.5} innerRadius={40} color=\"#000000\" />\n  </AbsoluteFill>\n);\n\nexport const Root: React.FC = () => (\n  <Composition\n    id=\"FramedReveal\"\n    component={Scene}\n    durationInFrames={90}\n    fps={30}\n    width={1080}\n    height={1920}\n  />\n);\n```\n\n## Motion notes\n\n- **Deliberate no-motion.** Vignette is a static atmospheric overlay. A pulsing or breathing vignette draws attention to itself and undoes the work of framing the content — Onda's vignette is set dressing, not a performer. The component never reads `useCurrentFrame`, so every frame produces identical pixels: deterministic by construction.\n- **Restraint at 0.3–0.6 intensity.** Defaults to `intensity={0.5}`. Beyond ~0.75 it stops reading as a frame and starts reading as a filter; treat that as a smell. If you can clearly *see* the vignette as a ring rather than feel it as a frame, dial it back.\n- **`innerRadius` controls the clean middle.** At `40` (default) roughly the middle 40% of the canvas is untouched and the darkening ramps out to the corners. Lower it for a tighter spotlight feel; raise it for a barely-there cinematic edge.\n- **`pointerEvents: 'none'`.** The overlay never intercepts clicks — it composes safely above interactive content in the Studio / Player.\n- **Self-contained.** Pure CSS `radial-gradient` — no SVG, no assets, no other Onda components.\n"
    }
  ],
  "registryDependencies": []
}
