{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "skyline-stats",
  "type": "registry:block",
  "title": "Skyline Stats",
  "description": "Stats Section built with Skyline (animated city skyline): each number is a tower in a printed city. A take on the chart (graph) and animated background (backdrop). A stats section where the chart is a city: each team is a tower as tall as its count of release trains, with the number on a sign on its roof. Hover or focus a tower and it lights up floor by floor while the others dim. Beside it, a serif headline and three figures in a ruled list.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "stats-sections",
    "stats",
    "chart",
    "animated-background"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/stats-sections/skyline-stats",
  "registryDependencies": [
    "https://keyframeui.com/r/skyline.json"
  ],
  "files": [
    {
      "path": "components/skyline-stats.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { Skyline, type SkylineTower } from \"@/components/ui/skyline\";\n\n/* ── Content ─────────────────────────────────────────────────\n * Everything you'd change to make the section yours: the\n * palette, the copy, the figures beside the chart and the teams.\n * Each team is a tower as tall as its count, with the number on\n * a sign on its roof; hover or focus one to light it up.\n * ─────────────────────────────────────────────────────────── */\n\n/** Paper and ink, an electric blue for the headline's italic, a quiet blue far print and a hot signal color for the sun and a lit tower. */\nconst PALETTE = {\n  light: { paper: \"#fafaf9\", ink: \"#0b0b0d\", accent: \"#2747ff\", signal: \"#ff5a1f\", tint: \"#bcc7ff\" },\n  dark: { paper: \"#07080c\", ink: \"#f4f4f6\", accent: \"#8292ff\", signal: \"#ff6a2b\", tint: \"#202c78\" },\n};\n\nconst HEADLINE = { before: \"Every team on the\", accent: \"same\", after: \"timetable\" };\nconst BODY =\n  \"Each tower is one team's releases this year. The tall ones aren't working harder: they ship smaller trains more often, which is the whole idea.\";\n\nconst FIGURES = [\n  { value: \"4,812\", label: \"changes shipped since January\" },\n  { value: \"11 min\", label: \"median time to roll a train back\" },\n  { value: \"0\", label: \"deploys after 4pm on a Friday\" },\n];\n\nconst CHART_LABEL = \"Release trains shipped per team in 2026\";\nconst TEAMS: SkylineTower[] = [\n  { label: \"Payments\", value: 212 },\n  { label: \"Search\", value: 148 },\n  { label: \"Mobile\", value: 96 },\n  { label: \"Growth\", value: 174 },\n  { label: \"Platform\", value: 260 },\n  { label: \"Data\", value: 121 },\n];\n\n/* ── Section ─────────────────────────────────────────────── */\n\nexport function SkylineStats() {\n  return (\n    <section\n      style={\n        {\n          \"--paper-light\": PALETTE.light.paper,\n          \"--ink-light\": PALETTE.light.ink,\n          \"--accent-light\": PALETTE.light.accent,\n          \"--tint-light\": PALETTE.light.tint,\n          \"--signal-light\": PALETTE.light.signal,\n          \"--signal-dark\": PALETTE.dark.signal,\n          \"--paper-dark\": PALETTE.dark.paper,\n          \"--ink-dark\": PALETTE.dark.ink,\n          \"--accent-dark\": PALETTE.dark.accent,\n          \"--tint-dark\": PALETTE.dark.tint,\n        } as React.CSSProperties\n      }\n      className=\"bg-(--paper) text-(--ink) [--accent:var(--accent-light)] [--ink:var(--ink-light)] [--paper:var(--paper-light)] [--signal:var(--signal-light)] [--skyline-sun:var(--signal)] [--skyline-tint:var(--tint)] [--tint:var(--tint-light)] dark:[--accent:var(--accent-dark)] dark:[--signal:var(--signal-dark)] dark:[--ink:var(--ink-dark)] dark:[--paper:var(--paper-dark)] dark:[--tint:var(--tint-dark)]\"\n    >\n      <div className=\"mx-auto grid max-w-6xl gap-12 px-6 py-24 sm:py-28 lg:grid-cols-[minmax(0,22rem)_minmax(0,1fr)] lg:items-end lg:gap-16\">\n        <div>\n          <h2 className=\"font-serif text-4xl leading-[1.05] font-normal tracking-[-0.02em] text-balance sm:text-5xl\">\n            {HEADLINE.before} <em className=\"text-(--accent)\">{HEADLINE.accent}</em> {HEADLINE.after}\n          </h2>\n          <p className=\"mt-5 text-base leading-relaxed text-pretty opacity-70\">{BODY}</p>\n          <dl className=\"mt-10 divide-y divide-current/15 border-y border-current/15\">\n            {FIGURES.map((figure) => (\n              <div key={figure.label} className=\"flex items-baseline justify-between gap-6 py-3.5\">\n                <dt className=\"text-sm opacity-65\">{figure.label}</dt>\n                <dd className=\"font-mono text-lg tabular-nums\">{figure.value}</dd>\n              </div>\n            ))}\n          </dl>\n        </div>\n        <Skyline\n          towers={TEAMS.map((team) => ({ ...team, display: `${team.value} trains` }))}\n          signs=\"always\"\n          seed={9}\n          sun={0.12}\n          trees={false}\n          label={CHART_LABEL}\n          className=\"h-[22rem] sm:h-[26rem]\"\n        />\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}