{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tooltip-07",
  "title": "Light via dark class",
  "description": "A light-colored tooltip that appears in light mode, inverted from the default dark style.",
  "dependencies": [],
  "registryDependencies": [
    "tooltip",
    "button"
  ],
  "files": [
    {
      "path": "registry/patterns/tooltip/tooltip-07.tsx",
      "content": "import { Button } from '@/components/ui/button'\nimport {\n  Tooltip,\n  TooltipContent,\n  TooltipTrigger,\n} from '@/components/ui/tooltip'\n\n// Trick: applying the `dark` class to TooltipContent flips its local CSS\n// variables to the dark-scheme values, so `bg-foreground` (default tooltip\n// background) resolves to a light color — and the arrow follows automatically\n// because it also reads `--foreground`. In dark mode this is a no-op.\nexport function Tooltip07() {\n  return (\n    <Tooltip>\n      <TooltipTrigger render={<Button variant=\"outline\">Hover me</Button>} />\n      <TooltipContent className=\"dark\">\n        Light tooltip via dark class\n      </TooltipContent>\n    </Tooltip>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/flx/patterns/tooltip/tooltip-07.tsx"
    }
  ],
  "type": "registry:block"
}