{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"logo-marquee","type":"registry:block","title":"Logo marquee","description":"A quiet, continuously moving row of brand marks with a pause control.","categories":["blocks"],"dependencies":["lucide-react"],"registryDependencies":["https://uiarc.dev/r/button.json"],"files":[{"path":"registry/blocks/logo-marquee/logo-marquee.tsx","type":"registry:component","target":"@components/arc/blocks/logo-marquee/logo-marquee.tsx","content":"\"use client\";\n\nimport { useId, useState } from \"react\";\nimport { Pause, Play } from \"lucide-react\";\nimport { Button } from \"../../button/button\";\nimport styles from \"./logo-marquee.module.css\";\n\nexport interface LogoMarqueeBrand {\n  name: string;\n  /** Monochrome SVG, drawn as a mask in the text color. */\n  icon: string;\n  /** Single brand color for the mark in color tone. Leave out for brands whose mark is black or white. */\n  color?: string;\n  /** Full color SVG for multicolor marks, used in color tone instead of `icon`. */\n  colorIcon?: string;\n}\n\nexport type LogoMarqueeTone = \"color\" | \"mono\";\n\nexport interface LogoMarqueeProps {\n  title?: string;\n  description?: string;\n  brands?: LogoMarqueeBrand[];\n  /** `color` shows each mark in its official colors; `mono` draws every mark in the text color. */\n  tone?: LogoMarqueeTone;\n}\n\nconst exampleBrands: LogoMarqueeBrand[] = [\n  { name: \"Figma\", icon: \"/block-logos/figma.svg\", colorIcon: \"/block-logos/figma-color.svg\" },\n  { name: \"Linear\", icon: \"/block-logos/linear.svg\", color: \"#5E6AD2\" },\n  { name: \"Notion\", icon: \"/block-logos/notion.svg\" },\n  { name: \"Slack\", icon: \"/block-logos/slack.svg\", colorIcon: \"/block-logos/slack-color.svg\" },\n  { name: \"GitHub\", icon: \"/block-logos/github.svg\" },\n  { name: \"Stripe\", icon: \"/block-logos/stripe.svg\", color: \"#635BFF\" },\n  { name: \"Vercel\", icon: \"/block-logos/vercel.svg\" },\n];\n\nfunction BrandMark({ brand, tone }: { brand: LogoMarqueeBrand; tone: LogoMarqueeTone }) {\n  if (tone === \"color\" && brand.colorIcon) {\n    // eslint-disable-next-line @next/next/no-img-element\n    return <img className={styles.brandMark} src={brand.colorIcon} alt=\"\" width={22} height={22} draggable={false} />;\n  }\n  return (\n    <span\n      className={styles.brandMark}\n      style={{ maskImage: `url(\"${brand.icon}\")`, WebkitMaskImage: `url(\"${brand.icon}\")`, color: tone === \"color\" ? brand.color : undefined }}\n      aria-hidden=\"true\"\n    />\n  );\n}\n\nfunction BrandList({ brands, tone, duplicate = false }: { brands: LogoMarqueeBrand[]; tone: LogoMarqueeTone; duplicate?: boolean }) {\n  return (\n    <ul className={styles.brandList} aria-label={duplicate ? undefined : \"Illustrative tool logos\"} aria-hidden={duplicate || undefined}>\n      {brands.map((brand, index) => (\n        <li className={styles.brand} key={`${brand.name}-${index}`}>\n          <BrandMark brand={brand} tone={tone} />\n          <span className={styles.brandName}>{brand.name}</span>\n        </li>\n      ))}\n    </ul>\n  );\n}\n\nexport function LogoMarquee({\n  title = \"Good work moves between tools\",\n  description = \"From the first idea to the final handoff, a familiar set of tools stays close to the work.\",\n  brands = exampleBrands,\n  tone = \"color\",\n}: LogoMarqueeProps) {\n  const titleId = useId();\n  const [paused, setPaused] = useState(false);\n\n  return (\n    <section className={styles.section} data-tone={tone} aria-labelledby={titleId}>\n      <div className={styles.intro}>\n        <h2 id={titleId}>{title}</h2>\n        <p>{description}</p>\n      </div>\n\n      <div className={styles.marquee} role=\"region\" aria-label=\"Illustrative tool logos\">\n        <div className={`${styles.track}${paused ? ` ${styles.paused}` : \"\"}`}>\n          <BrandList brands={brands} tone={tone} />\n          <BrandList brands={brands} tone={tone} duplicate />\n        </div>\n      </div>\n\n      <div className={styles.footer}>\n        <Button\n          variant=\"ghost\"\n          size=\"sm\"\n          className={styles.motionButton}\n          aria-label={paused ? \"Play logo motion\" : \"Pause logo motion\"}\n          onClick={() => setPaused((value) => !value)}\n        >\n          {paused ? <><Play size={16} strokeWidth={1.75} aria-hidden=\"true\" />Play</> : <><Pause size={16} strokeWidth={1.75} aria-hidden=\"true\" />Pause</>}\n        </Button>\n        <span className={styles.motionStatus} aria-live=\"polite\">\n          {paused ? \"Motion paused\" : \"\"}\n        </span>\n      </div>\n    </section>\n  );\n}\n\nexport default LogoMarquee;\n"},{"path":"registry/blocks/logo-marquee/logo-marquee.module.css","type":"registry:component","target":"@components/arc/blocks/logo-marquee/logo-marquee.module.css","content":".section {\n  container: logos / inline-size;\n  width: 100%;\n  min-width: 0;\n  overflow: hidden;\n  border: 1px solid var(--border);\n  border-radius: var(--radius-surface);\n  background: var(--surface);\n  color: var(--foreground);\n  font-family: var(--font-body);\n  font-size: var(--text-sm);\n  letter-spacing: var(--tracking-body);\n  line-height: var(--leading-body);\n}\n\n.intro {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);\n  align-items: end;\n  gap: 48px;\n  padding: 40px 40px 36px;\n}\n\n.intro h2 {\n  max-width: 540px;\n  margin: 0;\n  font-family: var(--font-display);\n  font-size: var(--text-3xl);\n  font-weight: 400;\n  line-height: var(--leading-display);\n  text-wrap: balance;\n  letter-spacing: var(--tracking-display);\n}\n\n.intro p {\n  max-width: 36ch;\n  margin: 0 0 3px;\n  color: var(--text-secondary);\n  font-size: var(--text-base);\n  line-height: var(--leading-body);\n  text-wrap: pretty;\n}\n\n.marquee {\n  position: relative;\n  overflow: hidden;\n  border-top: 1px solid var(--border-subtle);\n  border-bottom: 1px solid var(--border-subtle);\n  padding-block: 32px;\n  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);\n  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);\n}\n\n.track {\n  display: flex;\n  width: max-content;\n  animation: travel 39s linear infinite;\n  will-change: transform;\n}\n\n.track.paused {\n  animation-play-state: paused;\n}\n\n/* Hovering the row holds it still, so a logo can be read. */\n@media (hover: hover) and (pointer: fine) {\n  .marquee:hover .track { animation-play-state: paused; }\n}\n\n.brandList {\n  display: flex;\n  flex: none;\n  align-items: center;\n  gap: 56px;\n  margin: 0;\n  padding: 0 56px 0 0;\n  list-style: none;\n}\n\n.brand {\n  display: inline-flex;\n  flex: none;\n  align-items: center;\n  gap: 10px;\n  color: var(--text-secondary);\n  white-space: nowrap;\n}\n\n.brandMark {\n  display: block;\n  width: 22px;\n  height: 22px;\n  flex: none;\n  background: currentColor;\n  mask-position: center;\n  mask-repeat: no-repeat;\n  mask-size: contain;\n  -webkit-mask-position: center;\n  -webkit-mask-repeat: no-repeat;\n  -webkit-mask-size: contain;\n}\n\nimg.brandMark { background: none; object-fit: contain; }\n\n/* In color tone the marks carry the brand color and the names read at full contrast; black and white marks follow the text. */\n.section[data-tone=\"color\"] .brand { color: var(--foreground); }\n\n.brandName {\n  font-size: var(--text-lg);\n  font-weight: 500;\n  letter-spacing: var(--tracking-body);\n}\n\n.footer {\n  display: flex;\n  align-items: center;\n  justify-content: flex-end;\n  gap: 16px;\n  padding: 10px 16px;\n}\n\n.motionButton { color: var(--text-secondary); }\n.motionStatus {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip: rect(0 0 0 0);\n  white-space: nowrap;\n}\n\n@keyframes travel {\n  to { transform: translateX(-50%); }\n}\n\n@container logos (max-width: 639px) {\n  .intro {\n    grid-template-columns: 1fr;\n    gap: 12px;\n    padding: 28px 20px 24px;\n  }\n\n  .intro h2 { font-size: var(--text-2xl); }\n  .intro p { font-size: var(--text-sm); }\n  .marquee { padding-block: 24px; }\n  .brandList { gap: 40px; padding-right: 40px; }\n  .brandName { font-size: var(--text-base); }\n  .brandMark { width: 20px; height: 20px; }\n  .footer { padding-inline: 12px; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .track {\n    animation: none;\n    will-change: auto;\n  }\n\n  .track { width: auto; justify-content: center; }\n  .brandList { flex-wrap: wrap; justify-content: center; row-gap: 20px; padding: 0 24px; }\n  .brandList[aria-hidden=\"true\"] { display: none; }\n  .footer { display: none; }\n}\n"}],"docs":"Use this to show a collection of organizations or tools. Replace the sample marks with brands you have permission to represent.","meta":{"tier":"free","kind":"block","builtFrom":["Motion","Button","Brand marks"],"docs":"https://uiarc.dev/components/blocks/logo-marquee"}}