{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "palette-lab",
  "title": "Palette lab",
  "description": "Compare spot inks across five tints and copy the CSS for your pick.",
  "registryDependencies": [
    "https://www.cyberspec.dev/r/recipe-layout.json",
    "https://www.cyberspec.dev/r/code-block.json",
    "https://www.cyberspec.dev/r/segmented-control.json"
  ],
  "files": [
    {
      "path": "registry/cyber/recipes/palette-lab.tsx",
      "content": "\"use client\"\n\nimport \"./recipe-layout.css\"\nimport { useState } from \"react\"\nimport { CodeBlock } from \"@/registry/cyber/ui/code-block\"\nimport { SegmentedControl } from \"@/registry/cyber/ui/segmented-control\"\n\nconst inks = { Flare: \"#FF594A\", Ion: \"#5EF6FF\", Iris: \"#BB9CFF\" }\nconst tints = [100, 80, 60, 40, 20]\ntype Ink = keyof typeof inks\n\nexport default function PaletteLab() {\n  const [ink, setInk] = useState<Ink>(\"Flare\")\n  const color = inks[ink]\n\n  return (\n    <div className=\"sink-stack\">\n      <div role=\"img\" aria-label={`${ink} ink mixed with the panel color, from full strength to twenty percent`} style={{ display: \"flex\", minHeight: 84 }}>\n        {tints.map((tint) => (\n          <span key={tint} style={{ flex: tint === 100 ? 2 : 1, backgroundColor: `color-mix(in srgb, ${color} ${tint}%, var(--cy-panel))` }} />\n        ))}\n      </div>\n      <SegmentedControl<Ink> label=\"Spot ink\" options={[\"Flare\", \"Ion\", \"Iris\"]} value={ink} onValueChange={(next) => next && setInk(next)} fill />\n      <CodeBlock filename=\"ink.css\" language=\"css\" numbers={false} code={`:root { --spot-ink: ${color}; }`} />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "@components/recipes/palette-lab.tsx"
    }
  ],
  "categories": [
    "recipe",
    "studio"
  ],
  "type": "registry:component"
}
