{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "shadow-story",
  "title": "Shadow Story",
  "author": "Lloyd Richards <lloyd.d.richards@gmail.com>",
  "description": "Design system documentation and examples for shadow tokens",
  "registryDependencies": [
    "table"
  ],
  "files": [
    {
      "path": "registry/tokens/shadow-story/shadow-radix.stories.tsx",
      "content": "import preview from \"@/.storybook/preview\";\nimport {\n  Table,\n  TableBody,\n  TableCell,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from \"@/components/ui/table\";\n\ntype Shadow = {\n  name: string;\n  value: string;\n};\n\nconst ShadowTile = ({ value }: Pick<Shadow, \"value\">) => {\n  const style = window.getComputedStyle(document.body);\n  const shadow = style.getPropertyValue(value);\n\n  return (\n    <div className=\"flex flex-col items-center gap-2\">\n      <div\n        className=\"size-20 rounded-md bg-card\"\n        style={{ boxShadow: shadow }}\n      />\n      <p className=\"text-center text-xs opacity-70\">{value}</p>\n      <p className=\"text-center text-xs\">{shadow}</p>\n    </div>\n  );\n};\n\n/**\n * Shadow tokens for the design system\n */\nconst meta = preview\n  .type<{\n    args: {\n      shadow: Shadow[];\n    };\n  }>()\n  .meta({\n    id: \"design-radix-shadow\",\n    title: \"design/Shadow\",\n    argTypes: {},\n    render: (args) => (\n      <Table>\n        <TableHeader>\n          <TableRow>\n            <TableHead>Name</TableHead>\n            <TableHead>\n              <span className=\"sr-only shadow-2xl\">Preview</span>\n            </TableHead>\n          </TableRow>\n        </TableHeader>\n        <TableBody>\n          {args.shadow.map(({ name, value }) => (\n            <TableRow key={name}>\n              <TableCell>{name}</TableCell>\n              <TableCell>\n                <ShadowTile value={value} />\n              </TableCell>\n            </TableRow>\n          ))}\n        </TableBody>\n      </Table>\n    ),\n  });\n\nexport default meta;\n\n/**\n * Box shadow tokens used for UI elements like cards, modals, and overlays.\n */\nexport const Core = meta.story({\n  args: {\n    shadow: [\n      { name: \"xxs\", value: \"--shadow-2xs\" },\n      { name: \"xs\", value: \"--shadow-xs\" },\n      { name: \"sm\", value: \"--shadow-sm\" },\n      { name: \"md\", value: \"--shadow-md\" },\n      { name: \"lg\", value: \"--shadow-lg\" },\n      { name: \"xl\", value: \"--shadow-xl\" },\n      { name: \"2xl\", value: \"--shadow-2xl\" },\n    ],\n  },\n});\n",
      "type": "registry:component",
      "target": "@ui/shadow.stories.tsx"
    }
  ],
  "categories": [
    "design",
    "tokens",
    "storybook",
    "shadow"
  ],
  "type": "registry:component"
}