{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-20",
  "type": "registry:block",
  "description": "Interactive theme playground with accent, font size and spacing controls driving a live preview.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "slider",
    "switch"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/features/features-20.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Moon,\n  Palette,\n  SlidersHorizontal,\n  Type,\n} from \"@designali/icons\"\n\nimport { Slider } from \"@workspace/ui/components/slider\"\nimport { Switch } from \"@workspace/ui/components/switch\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst swatches = [\n  { name: \"Ink\", className: \"bg-foreground dark:bg-foreground\" },\n  { name: \"Ocean\", className: \"bg-chart-2\" },\n  { name: \"Moss\", className: \"bg-chart-2\" },\n  { name: \"Ember\", className: \"bg-primary\" },\n]\nconst accents: Record<string, string> = {\n  Ink: \"bg-foreground text-white dark:bg-foreground dark:text-background\",\n  Ocean: \"bg-chart-2 text-white\",\n  Moss: \"bg-chart-2 text-white\",\n  Ember: \"bg-primary text-white\",\n}\n\nexport default function Features20() {\n  const [accent, setAccent] = useState(\"Ocean\")\n  const [size, setSize] = useState(16)\n  const [compact, setCompact] = useState(false)\n\n  return (\n    <section className=\"w-full bg-background px-6 py-20 md:py-28\">\n      <div className=\"mx-auto max-w-6xl\">\n        <h2 className=\"max-w-2xl text-3xl font-medium tracking-tight md:text-5xl\">\n          Make it yours without writing CSS.\n        </h2>\n        <p className=\"mt-4 max-w-xl text-sm leading-7 text-muted-foreground\">\n          Every Designali template exposes the same handful of controls. Try\n          them below; the preview updates the way your live site would.\n        </p>\n        <div className=\"mt-12 grid gap-px border border-border bg-border lg:grid-cols-[1fr_1.3fr]\">\n          <div className=\"space-y-8 bg-background p-6 md:p-8\">\n            <div>\n              <div className=\"flex items-center gap-2 text-sm font-medium\">\n                <Palette className=\"size-4\" /> Accent colour\n              </div>\n              <div className=\"mt-4 flex gap-2\">\n                {swatches.map((s) => (\n                  <button\n                    key={s.name}\n                    type=\"button\"\n                    aria-label={s.name}\n                    onClick={() => setAccent(s.name)}\n                    className={cn(\n                      \"size-9 ring-offset-2 ring-offset-background transition\",\n                      s.className,\n                      accent === s.name && \"ring-2 ring-foreground\"\n                    )}\n                  />\n                ))}\n              </div>\n            </div>\n            <div>\n              <div className=\"flex items-center justify-between text-sm font-medium\">\n                <span className=\"flex items-center gap-2\">\n                  <Type className=\"size-4\" /> Base font size\n                </span>\n                <span className=\"font-sans text-xs text-muted-foreground\">{size}px</span>\n              </div>\n              <Slider\n                className=\"mt-4\"\n                min={14}\n                max={20}\n                step={1}\n                value={size}\n                onValueChange={(v) => setSize(Array.isArray(v) ? v[0]! : v)}\n              />\n            </div>\n            <label className=\"flex items-center justify-between text-sm font-medium\">\n              <span className=\"flex items-center gap-2\">\n                <SlidersHorizontal className=\"size-4\" /> Compact spacing\n              </span>\n              <Switch checked={compact} onCheckedChange={setCompact} />\n            </label>\n            <div className=\"flex items-center gap-2 text-xs text-muted-foreground\">\n              <Moon className=\"size-3.5\" /> Dark mode follows the visitor&apos;s system setting.\n            </div>\n          </div>\n          <div className=\"bg-muted/40 p-6 md:p-10\">\n            <div\n              className={cn(\"border border-border bg-background\", compact ? \"p-4\" : \"p-8\")}\n              style={{ fontSize: size }}\n            >\n              <span className={cn(\"inline-block px-2 py-0.5 text-[0.7em]\", accents[accent])}>\n                New blog\n              </span>\n              <h3 className={cn(\"font-medium tracking-tight\", compact ? \"mt-2\" : \"mt-4\")} style={{ fontSize: \"1.6em\", lineHeight: 1.2 }}>\n                Design se code tak\n              </h3>\n              <p className={cn(\"leading-relaxed text-muted-foreground\", compact ? \"mt-2\" : \"mt-4\")}>\n                How I design and build digital experiences at Designali, from\n                Figma to production-ready code.\n              </p>\n              <button type=\"button\" className={cn(\"px-4 py-2 text-[0.85em]\", compact ? \"mt-3\" : \"mt-6\", accents[accent])}>\n                Read on Designali\n              </button>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "700px"
  },
  "categories": [
    "features"
  ]
}