Roma · Full page

A full page from the Roma blocks: app (mosaic + orange + window), agent (orange + manifesto + chat) or minimal (light window).

Blocks
romalandingpagetemplate
Free and open source

Your next page,already half built.

Original blocks you can drop into any React project, so the boring parts are done before you start.

From idea to pagein three moves.

  1. 01

    Describe it

    Type what the page needs in plain words, or pick a family to start from.

  2. 02

    Tweak it

    Every block has variants and live props. Change copy, color and layout in place.

  3. 03

    Ship it

    Copy the file or pull it with the CLI. It is your code from that point on.

9:41100
Sam

Build

  • Hero: split, orange accentNow
  • Steps section, 3 itemsNow
  • Footer with a sloganNext
  • Dark mode passNext
TasksAssistantMore

Everything in one place,nothing in the way.

Families, variants and live props in a single window, with an assistant that knows your brand.

BlocksWeekly review
  • Pick a hero for the launch pageToday
  • Swap the accent to brand orangeToday
  • Check the footer on a phoneTue
  • Paste the pricing blockOct 24
  • Ship itFri

Pages should not take a week. Most of a landing page is the same ten sections arranged with taste, and that part should be instant. So we drew the sections once, carefully, and left the interesting decisions to you.

Works with what you use.

Blocks are plain React files, so they fit wherever your work already happens.

F

Figma

Paste a frame, get the matching block.

G

GitHub

Open a pull request with the new section.

N

Notion

Turn a page outline into a layout.

L

Linear

Link blocks to the issue that asked for them.

S

Slack

Share a live preview in a thread.

V

Vercel

Preview every variant on a real URL.

Usage

Drop the file into your project, along with the shared files listed below, and import it.

usage.tsx
import { RomaLanding } from "@/registry/blocks/roma-landing";

export function Example() {
  return <RomaLanding />;
}

Install prerequisites

Every component here relies only on Tailwind and the cn helper from shadcn/ui.

terminal
npm i clsx tailwind-merge

Also copy these files

Roma · Full page imports these files. Keep the same paths, or update the imports to match.

src/registry/blocks/roma-cards.tsx
'use client'

import { Bubble, RomaHeading, RomaRoot } from '@/registry/blocks/roma-kit'
import { cn } from '@/lib/utils'

export interface RomaCardsProps {
  /** integrations: soft cards with icon chips. chat: cards that each show a short conversation. */
  variant?: 'integrations' | 'chat'
  title?: string
  description?: string
  className?: string
}

const INTEGRATIONS: [string, string, string][] = [
  ['Figma', 'Paste a frame, get the matching block.', '#a259ff'],
  ['GitHub', 'Open a pull request with the new section.', '#151515'],
  ['Notion', 'Turn a page outline into a layout.', '#7a7a7a'],
  ['Linear', 'Link blocks to the issue that asked for them.', '#5e6ad2'],
  ['Slack', 'Share a live preview in a thread.', '#e01e5a'],
  ['Vercel', 'Preview every variant on a real URL.', '#000000'],
]

const CHATS: { title: string; lines: [string, string, string, boolean?][] }[] = [
  {
    title: 'Rewrite the copy',
    lines: [
      ['Aiko', '10:02', 'The hero sounds stiff. Make it friendlier?'],
      ['shinUI', '10:02', 'Tried three tones. The second keeps your keywords.', true],
    ],
  },
  {
    title: 'Match the brand',
    lines: [
      ['Leo', '14:18', 'Use our orange and the rounder buttons.'],
      ['shinUI', '14:18', 'Done. Contrast still passes in both themes.', true],
    ],
  },
  {
    title: 'Fix it on mobile',
    lines: [
      ['Mina', '17:40', 'The pricing table overflows on a phone.'],
      ['shinUI', '17:41', 'Stacked the plans and pinned the CTA.', true],
    ],
  },
]

/** Roma card grids. */
export function RomaCards({
  variant = 'integrations',
  title = 'Works with what you use.',
  description = 'Blocks are plain React files, so they fit wherever your work already happens.',
  className,
}: RomaCardsProps) {
  return (
    <RomaRoot className={cn(className)}>
      <div className="mx-auto max-w-6xl px-6 py-20 md:px-10 md:py-28">
        <div className="max-w-xl">
          <RomaHeading className="text-[clamp(2rem,4vw,3.1rem)] leading-[1.03]">{title}</RomaHeading>
          <p className="mt-4 text-[17px] leading-relaxed text-(--rm-soft)">{description}</p>
        </div>
        {variant === 'chat' ? (
          <div className="mt-12 grid gap-4 md:grid-cols-3">
            {CHATS.map((c) => (
              <article key={c.title} className="flex flex-col gap-5 rounded-3xl bg-(--rm-card) p-6 shadow-[0_1px_0_var(--rm-line),0_20px_40px_-30px_rgb(0_0_0/0.25)] transition-transform duration-300 hover:-translate-y-1">
                <h3 className="text-[16px] font-semibold">{c.title}</h3>
                {c.lines.map(([who, time, text, op]) => (
                  <Bubble key={time + who} who={who} time={time} operator={op}>
                    {text}
                  </Bubble>
                ))}
              </article>
            ))}
          </div>
        ) : (
          <div className="mt-12 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
            {INTEGRATIONS.map(([name, text, color]) => (
              <article key={name} className="group flex items-start gap-4 rounded-3xl bg-(--rm-card) p-6 shadow-[0_1px_0_var(--rm-line),0_20px_40px_-30px_rgb(0_0_0/0.25)] transition-transform duration-300 hover:-translate-y-1">
                <span className="grid size-11 shrink-0 place-items-center rounded-2xl text-[15px] font-bold text-white" style={{ background: color }}>
                  {name[0]}
                </span>
                <div>
                  <h3 className="text-[16px] font-semibold">{name}</h3>
                  <p className="mt-1 text-[14px] leading-relaxed text-(--rm-soft)">{text}</p>
                </div>
              </article>
            ))}
          </div>
        )}
      </div>
    </RomaRoot>
  )
}
src/registry/blocks/roma-kit.tsx
'use client'

import { useEffect, useState, type ComponentProps, type ReactNode } from 'react'
import { cn } from '@/lib/utils'

/**
 * Roma Kit: shared pieces behind the shinUI "Roma" blocks.
 *
 * A consumer-app look: pitch-black hero and footer over a mosaic of dark
 * tiles that slowly breathe, a loud orange band, big medium-weight grotesk
 * headlines with tight tracking, white pill buttons with icons, soft rounded
 * cards, and product mockups (phone, app window, chat) built in plain markup.
 * Wrap blocks in <RomaRoot> for the palette.
 */

const VARS = [
  '[--rm-paper:#fafafa] [--rm-card:#ffffff] [--rm-ink:#151515] [--rm-soft:rgb(21_21_21/0.62)] [--rm-faint:rgb(21_21_21/0.42)] [--rm-line:rgb(21_21_21/0.08)]',
  '[--rm-night:#000000] [--rm-orange:#ff531a] [--rm-stone:#9a9898] [--rm-chip:#f1f1f1]',
  'dark:[--rm-paper:#0b0b0b] dark:[--rm-card:#161616] dark:[--rm-ink:#f4f4f4] dark:[--rm-soft:rgb(244_244_244/0.64)] dark:[--rm-faint:rgb(244_244_244/0.42)] dark:[--rm-line:rgb(255_255_255/0.08)]',
  'dark:[--rm-stone:#3a3939] dark:[--rm-chip:#222222]',
].join(' ')

const KEYFRAMES = `
@keyframes rm-tile{0%,100%{opacity:.18}50%{opacity:.6}}
@keyframes rm-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes rm-check{from{transform:scale(0)}to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.rm-anim{animation:none!important}}
`

export function RomaRoot({ className, children, ...props }: ComponentProps<'div'>) {
  return (
    <div className={cn(VARS, 'bg-(--rm-paper) font-sans text-(--rm-ink) antialiased', className)} {...props}>
      <style>{KEYFRAMES}</style>
      {children}
    </div>
  )
}

/** Big medium-weight grotesk with tight tracking. */
export function RomaHeading({ as: Tag = 'h2', className, children }: { as?: 'h1' | 'h2' | 'h3'; className?: string; children: ReactNode }) {
  return <Tag className={cn('font-display font-medium tracking-[-0.035em] text-balance', className)}>{children}</Tag>
}

/** Splits on "\n" so authors control line breaks. */
export function Lines({ text }: { text: string }) {
  return (
    <>
      {text.split('\n').map((l, i) => (
        <span key={i} className="block">
          {l}
        </span>
      ))}
    </>
  )
}

function hash(i: number) {
  const s = Math.sin(i * 12.9898) * 43758.5453
  return s - Math.floor(s)
}

/** A field of dark squares that slowly breathe. Static with reduced motion. */
export function Mosaic({ cols = 22, rows = 9, animate = true, className }: { cols?: number; rows?: number; animate?: boolean; className?: string }) {
  return (
    <div aria-hidden className={cn('pointer-events-none grid gap-[6px]', className)} style={{ gridTemplateColumns: `repeat(${cols}, minmax(0,1fr))` }}>
      {Array.from({ length: cols * rows }, (_, i) => {
        const n = hash(i)
        const fade = 1 - Math.floor(i / cols) / rows
        return (
          <span
            key={i}
            className={cn('aspect-square rounded-[3px] bg-white', animate && n > 0.55 && 'rm-anim')}
            style={{
              opacity: (0.05 + n * 0.14) * fade,
              animation: animate && n > 0.55 ? `rm-tile ${4 + n * 6}s ease-in-out ${-n * 9}s infinite` : undefined,
            }}
          />
        )
      })}
    </div>
  )
}

const ICONS = {
  laptop: <path d="M3 4.5h10v6.5H3zM1.5 12.5h13" />,
  phone: <path d="M5 1.5h6v13H5zM7.3 12.5h1.4" />,
  arrow: <path d="M3 8h10M9 4l4 4-4 4" />,
}

export function RomaButton({
  variant = 'white',
  icon,
  className,
  children,
  ...props
}: ComponentProps<'a'> & { variant?: 'white' | 'black' | 'orange' | 'ghost'; icon?: keyof typeof ICONS }) {
  return (
    <a
      href="#"
      className={cn(
        'inline-flex h-10 items-center justify-center gap-2 rounded-full px-5 text-[14px] font-medium whitespace-nowrap transition-[transform,background-color,opacity] duration-200 hover:scale-[1.02] active:scale-[.98]',
        variant === 'white' && 'bg-white text-black',
        variant === 'black' && 'bg-(--rm-ink) text-(--rm-paper)',
        variant === 'orange' && 'bg-(--rm-orange) text-white',
        variant === 'ghost' && 'text-current opacity-75 hover:opacity-100',
        className,
      )}
      {...props}
    >
      {icon && (
        <svg viewBox="0 0 16 16" className="size-4" fill="none" stroke="currentColor" strokeWidth={1.4} aria-hidden>
          {ICONS[icon]}
        </svg>
      )}
      {children}
    </a>
  )
}

/** Original mark: a square split into a quarter-circle and a block. */
export function RomaMark({ className }: { className?: string }) {
  return (
    <svg viewBox="0 0 16 16" className={cn('size-4', className)} fill="currentColor" aria-hidden>
      <path d="M0 0h7v7H0zM9 0a7 7 0 017 7H9zM0 9h7v7H0zM9 9h7v7H9z" />
    </svg>
  )
}

export interface Task {
  title: string
  due: string
  done?: boolean
  hot?: boolean
}

/** A task row with a round check, title and a due-date chip. */
export function TaskRow({ task, dark, delay = 0 }: { task: Task; dark?: boolean; delay?: number }) {
  return (
    <li
      className={cn(
        'rm-anim flex items-center gap-3 rounded-xl px-3 py-2.5 text-[13px] [animation:rm-rise_.5s_ease-out_both]',
        dark ? 'bg-white/[0.07] text-white' : 'border border-(--rm-line) bg-(--rm-card)',
      )}
      style={{ animationDelay: `${delay}ms` }}
    >
      <span className={cn('grid size-4 shrink-0 place-items-center rounded-full border', dark ? 'border-white/40' : 'border-(--rm-faint)', task.done && 'border-transparent bg-(--rm-orange)')}>
        {task.done && <span className="rm-anim size-1.5 rounded-full bg-white [animation:rm-check_.3s_ease-out]" />}
      </span>
      <span className={cn('min-w-0 flex-1 truncate', task.done && 'line-through opacity-50')}>{task.title}</span>
      <span
        className={cn(
          'shrink-0 rounded-md px-1.5 py-0.5 text-[10.5px]',
          task.hot ? 'bg-(--rm-orange)/15 text-(--rm-orange)' : dark ? 'bg-white/10 text-white/60' : 'bg-(--rm-chip) text-(--rm-soft)',
        )}
      >
        {task.due}
      </span>
    </li>
  )
}

/** A phone frame with a dark task list that checks itself off over time. */
export function PhoneMock({ tasks, title = 'Today', animate = true, className }: { tasks: Task[]; title?: string; animate?: boolean; className?: string }) {
  const [done, setDone] = useState(0)
  useEffect(() => {
    if (!animate || window.matchMedia('(prefers-reduced-motion: reduce)').matches) return
    const id = window.setInterval(() => setDone((d) => (d + 1) % (tasks.length + 2)), 1800)
    return () => window.clearInterval(id)
  }, [animate, tasks.length])
  return (
    <div className={cn('w-[270px] rounded-[44px] border-[6px] border-[#1d1d1f] bg-black p-3 shadow-[0_40px_80px_-30px_rgb(0_0_0/0.7)]', className)}>
      <div className="flex items-center justify-between px-3 pt-1 text-[10px] text-white/80">
        <span>9:41</span>
        <span className="h-5 w-20 rounded-full bg-[#1d1d1f]" />
        <span>100</span>
      </div>
      <div className="mt-4 flex items-center justify-between px-2 text-white">
        <span className="flex items-center gap-1.5 text-[12px]">
          <span className="size-5 rounded-full bg-(--rm-orange)" />
          Sam
        </span>
        <span className="flex gap-2 text-white/50">
          <span className="size-3.5 rounded border border-current" />
          <span className="size-3.5 rounded-full border border-current" />
        </span>
      </div>
      <p className="mt-4 px-2 font-mono text-[15px] tracking-[0.18em] text-white uppercase">{title}</p>
      <ul className="mt-3 flex flex-col gap-1.5">
        {tasks.map((t, i) => (
          <TaskRow key={t.title} task={{ ...t, done: t.done || i < done }} dark delay={i * 120} />
        ))}
      </ul>
      <div className="mt-6 flex justify-around rounded-2xl bg-white/[0.07] py-2.5 text-[9px] text-white/50">
        {['Tasks', 'Assistant', 'More'].map((x, i) => (
          <span key={x} className={cn(i === 0 && 'text-white')}>
            {x}
          </span>
        ))}
      </div>
    </div>
  )
}

/** Chat bubble with avatar, name and time. */
export function Bubble({ who, time, children, operator }: { who: string; time: string; children: ReactNode; operator?: boolean }) {
  return (
    <div className="flex gap-2.5">
      <span className={cn('mt-0.5 size-6 shrink-0 rounded-full', operator ? 'bg-(--rm-ink)' : 'bg-(--rm-orange)')} />
      <div className="min-w-0 text-[13px]">
        <p className="text-[12px]">
          <span className="font-semibold">{who}</span> <span className="text-(--rm-faint)">{time}</span>
        </p>
        <div className="mt-0.5 leading-relaxed text-(--rm-soft)">{children}</div>
      </div>
    </div>
  )
}
src/registry/blocks/roma-footer.tsx
'use client'

import { RomaButton, RomaMark, RomaRoot } from '@/registry/blocks/roma-kit'
import { cn } from '@/lib/utils'

export interface RomaFooterProps {
  /** statement: black footer with a giant serif slogan. simple: one line. columns: light link columns. */
  variant?: 'statement' | 'simple' | 'columns'
  brand?: string
  /** Separate the slogan's lines with ". " — each sentence gets its own line. */
  slogan?: string
  primaryCta?: string
  secondaryCta?: string
  className?: string
}

const YEAR = new Date().getFullYear()
const LINKS = ['Changelog', 'Blocks', 'Privacy', 'Terms', 'GitHub', 'X']
const COLUMNS: [string, string[]][] = [
  ['Product', ['Blocks', 'Families', 'CLI', 'Changelog']],
  ['Learn', ['Docs', 'Guides', 'Examples']],
  ['Company', ['About', 'Contact', 'Privacy']],
]

/** Roma footer in three variants. */
export function RomaFooter({
  variant = 'statement',
  brand = 'shinUI',
  slogan = 'Pick it. Tweak it. Ship it.',
  primaryCta = 'Browse blocks',
  secondaryCta = 'Install the CLI',
  className,
}: RomaFooterProps) {
  const lines = slogan.split(/(?<=[.!?])\s+/).filter(Boolean)
  const links = (cls: string) => (
    <div className={cn('flex flex-wrap gap-x-6 gap-y-2 text-[13px]', cls)}>
      {LINKS.map((l) => (
        <a key={l} href="#" className="transition-opacity hover:opacity-100">
          {l}
        </a>
      ))}
    </div>
  )

  if (variant === 'simple') {
    return (
      <RomaRoot className={cn('border-t border-(--rm-line)', className)}>
        <footer className="mx-auto flex max-w-6xl flex-col gap-4 px-6 py-8 md:flex-row md:items-center md:justify-between md:px-10">
          <span className="flex items-center gap-2 font-display text-[17px] font-medium tracking-[-0.03em]">
            <RomaMark /> {brand}
          </span>
          {links('text-(--rm-soft) [&_a]:opacity-80')}
          <span className="text-[12px] text-(--rm-faint)">© {YEAR}</span>
        </footer>
      </RomaRoot>
    )
  }

  if (variant === 'columns') {
    return (
      <RomaRoot className={cn('bg-(--rm-card)', className)}>
        <footer className="mx-auto grid max-w-6xl gap-10 px-6 py-16 md:grid-cols-[1.4fr_repeat(3,1fr)] md:px-10">
          <div className="flex flex-col items-start gap-5">
            <span className="flex items-center gap-2 font-display text-[19px] font-medium tracking-[-0.03em]">
              <RomaMark /> {brand}
            </span>
            <p className="max-w-xs text-[14px] leading-relaxed text-(--rm-soft)">{slogan}</p>
            <RomaButton variant="black" className="h-9 text-[13px]">{primaryCta}</RomaButton>
          </div>
          {COLUMNS.map(([h, items]) => (
            <div key={h} className="text-[14px]">
              <p className="font-semibold">{h}</p>
              <ul className="mt-3 flex flex-col gap-2 text-(--rm-soft)">
                {items.map((i) => (
                  <li key={i}>
                    <a href="#" className="hover:text-(--rm-ink)">
                      {i}
                    </a>
                  </li>
                ))}
              </ul>
            </div>
          ))}
          <p className="text-[12px] text-(--rm-faint) md:col-span-4">© {YEAR} {brand}. Original blocks, MIT licensed.</p>
        </footer>
      </RomaRoot>
    )
  }

  return (
    <RomaRoot className={cn('bg-black text-white', className)}>
      <footer className="mx-auto flex max-w-6xl flex-col items-center px-6 pt-24 pb-10 text-center md:px-10 md:pt-32">
        <p className="font-serif text-[clamp(3rem,11vw,8.5rem)] leading-[0.9] tracking-[-0.02em] uppercase">
          {lines.map((l) => (
            <span key={l} className="block">
              {l}
            </span>
          ))}
        </p>
        <div className="mt-12 flex flex-wrap justify-center gap-3">
          {primaryCta && <RomaButton icon="laptop">{primaryCta}</RomaButton>}
          {secondaryCta && <RomaButton icon="arrow" className="bg-white/10 text-white">{secondaryCta}</RomaButton>}
        </div>
        <div className="mt-24 flex w-full flex-col items-center gap-4 border-t border-white/10 pt-6 md:flex-row md:justify-between">
          <span className="flex items-center gap-2 text-[14px]">
            <RomaMark /> {brand} © {YEAR}
          </span>
          {links('justify-center text-white/60 [&_a:hover]:text-white')}
        </div>
      </footer>
    </RomaRoot>
  )
}
src/registry/blocks/roma-hero.tsx
'use client'

import { Lines, Mosaic, PhoneMock, RomaButton, RomaHeading, RomaRoot, TaskRow, type Task } from '@/registry/blocks/roma-kit'
import { cn } from '@/lib/utils'

export interface RomaHeroProps {
  /** mosaic: black hero over breathing tiles. orange: loud orange band with a phone. window: light hero over a desktop app window. */
  variant?: 'mosaic' | 'orange' | 'window'
  badge?: string
  /** Use a new line (\n) to control the break. */
  title?: string
  description?: string
  primaryCta?: string
  secondaryCta?: string
  animate?: boolean
  className?: string
}

const ROMA_TASKS: Task[] = [
  { title: 'Pick a hero for the launch page', due: 'Today', hot: true },
  { title: 'Swap the accent to brand orange', due: 'Today' },
  { title: 'Check the footer on a phone', due: 'Tue' },
  { title: 'Paste the pricing block', due: 'Oct 24' },
  { title: 'Ship it', due: 'Fri' },
]

function AppWindow({ animate }: { animate: boolean }) {
  return (
    <div className="overflow-hidden rounded-2xl border border-(--rm-line) bg-(--rm-card) shadow-[0_40px_80px_-40px_rgb(0_0_0/0.35)]">
      <div className="flex items-center gap-2 border-b border-(--rm-line) px-4 py-3">
        {['#ff5f57', '#febc2e', '#28c840'].map((c) => (
          <span key={c} className="size-2.5 rounded-full" style={{ background: c }} />
        ))}
        <span className="ml-4 rounded-md bg-(--rm-orange)/12 px-2 py-0.5 text-[11px] text-(--rm-orange)">Blocks</span>
        <span className="rounded-md px-2 py-0.5 text-[11px] text-(--rm-faint)">Weekly review</span>
      </div>
      <div className="grid md:grid-cols-[150px_1fr_220px]">
        <aside className="hidden border-r border-(--rm-line) p-3 text-[12px] text-(--rm-soft) md:block">
          {['Inbox', 'Today', 'Blocks', 'Shipped'].map((x, i) => (
            <p key={x} className={cn('rounded-md px-2 py-1.5', i === 2 && 'bg-(--rm-chip) text-(--rm-ink)')}>
              {x}
            </p>
          ))}
          <p className="mt-4 px-2 text-[10px] text-(--rm-faint) uppercase">Projects</p>
          {['Landing', 'Docs', 'Portfolio'].map((x) => (
            <p key={x} className="px-2 py-1.5">
              # {x}
            </p>
          ))}
        </aside>
        <ul className="flex flex-col gap-1.5 p-4">
          {ROMA_TASKS.map((t, i) => (
            <TaskRow key={t.title} task={{ ...t, done: i === 1 }} delay={animate ? i * 110 : 0} />
          ))}
        </ul>
        <div className="hidden flex-col gap-3 border-l border-(--rm-line) p-4 text-[12px] md:flex">
          <p className="font-semibold">Assistant</p>
          <p className="rounded-xl bg-(--rm-chip) p-2.5 text-(--rm-soft)">Found 3 heroes that match your brand. Want me to drop the best one in?</p>
          <p className="ml-6 rounded-xl bg-(--rm-orange) p-2.5 text-white">Yes, the split one.</p>
        </div>
      </div>
    </div>
  )
}

/** Roma hero in three layouts. */
export function RomaHero({
  variant = 'mosaic',
  badge = 'Free and open source',
  title = 'Your next page,\nalready half built.',
  description = 'Original blocks you can drop into any React project, so the boring parts are done before you start.',
  primaryCta = 'Browse blocks',
  secondaryCta = 'Install the CLI',
  animate = true,
  className,
}: RomaHeroProps) {
  if (variant === 'orange') {
    return (
      <RomaRoot className={cn('overflow-hidden bg-(--rm-orange) text-black', className)}>
        <div className="mx-auto grid max-w-6xl items-center gap-10 px-6 pt-16 md:grid-cols-[1.1fr_1fr] md:px-10 md:pt-20">
          <div className="flex flex-col items-start gap-6 pb-10 md:pb-24">
            <RomaHeading as="h1" className="text-[clamp(2.6rem,6vw,4.4rem)] leading-[0.98]">
              <Lines text={title} />
            </RomaHeading>
            <p className="max-w-md text-[18px] leading-relaxed text-black/70">{description}</p>
            <div className="flex flex-wrap gap-2">
              {primaryCta && (
                <RomaButton variant="black" icon="laptop" className="bg-black text-white">
                  {primaryCta}
                </RomaButton>
              )}
              {secondaryCta && <RomaButton variant="white" icon="phone">{secondaryCta}</RomaButton>}
            </div>
          </div>
          <div className="flex justify-center md:justify-end">
            <PhoneMock tasks={ROMA_TASKS} animate={animate} className="translate-y-10 rounded-b-none border-b-0" />
          </div>
        </div>
      </RomaRoot>
    )
  }

  if (variant === 'window') {
    return (
      <RomaRoot className={cn('overflow-hidden', className)}>
        <div className="mx-auto max-w-6xl px-6 py-20 md:px-10 md:py-24">
          <div className="grid gap-6 md:grid-cols-2 md:items-end">
            <RomaHeading as="h1" className="text-[clamp(2.4rem,5.5vw,4rem)] leading-[1]">
              <Lines text={title} />
            </RomaHeading>
            <div className="flex flex-col gap-5 md:items-start">
              <p className="max-w-md text-[17px] leading-relaxed text-(--rm-soft)">{description}</p>
              <div className="flex flex-wrap gap-2">
                {primaryCta && <RomaButton variant="black">{primaryCta}</RomaButton>}
                {secondaryCta && <RomaButton variant="ghost" icon="arrow">{secondaryCta}</RomaButton>}
              </div>
            </div>
          </div>
          <div className="mt-14">
            <AppWindow animate={animate} />
          </div>
        </div>
      </RomaRoot>
    )
  }

  return (
    <RomaRoot className={cn('relative overflow-hidden bg-black text-white', className)}>
      <Mosaic animate={animate} className="absolute inset-x-0 top-0 opacity-90" />
      <div className="pointer-events-none absolute inset-0 bg-[linear-gradient(180deg,transparent_30%,black_90%)]" />
      <div className="relative mx-auto max-w-6xl px-6 pt-28 pb-24 md:px-10 md:pt-40 md:pb-32">
        {badge && (
          <span className="inline-flex items-center gap-2 rounded-full border border-white/15 bg-white/5 px-3 py-1 text-[12px] text-white/75">
            <span className="size-3.5 rounded-[4px] bg-(--rm-orange)" />
            {badge}
          </span>
        )}
        <RomaHeading as="h1" className="mt-6 text-[clamp(2.8rem,7.5vw,5.7rem)] leading-[0.95]">
          <Lines text={title} />
        </RomaHeading>
        <p className="mt-6 max-w-lg text-[19px] leading-relaxed text-white/70">{description}</p>
        <div className="mt-9 flex flex-wrap gap-3">
          {primaryCta && <RomaButton icon="laptop">{primaryCta}</RomaButton>}
          {secondaryCta && <RomaButton icon="arrow">{secondaryCta}</RomaButton>}
        </div>
      </div>
    </RomaRoot>
  )
}
src/registry/blocks/roma-navbar.tsx
'use client'

import { useState } from 'react'
import { RomaButton, RomaMark, RomaRoot } from '@/registry/blocks/roma-kit'
import { cn } from '@/lib/utils'

export interface RomaNavbarProps {
  /** dark: black bar for a black hero. light: white bar. orange: sits on the orange hero. floating: a centered rounded pill. */
  variant?: 'dark' | 'light' | 'orange' | 'floating'
  brand?: string
  links?: string
  ctaLabel?: string
  className?: string
}

/** Roma navigation in three variants; the CTA stays visible on mobile next to the menu. */
export function RomaNavbar({ variant = 'dark', brand = 'shinUI', links = 'News, Changelog, Blocks, Connections', ctaLabel = 'Sign in', className }: RomaNavbarProps) {
  const [open, setOpen] = useState(false)
  const items = links
    .split(',')
    .map((s) => s.trim())
    .filter(Boolean)
  const dark = variant === 'dark'
  const orange = variant === 'orange'

  const brandEl = (
    <a href="#" className="flex items-center gap-2 font-display text-[19px] font-medium tracking-[-0.03em]">
      <RomaMark />
      {brand}
    </a>
  )
  const linkEls = items.map((l) => (
    <a key={l} href="#" className={cn('text-[13.5px] font-medium transition-colors duration-200', dark ? 'text-white/70 hover:text-white' : orange ? 'text-black/70 hover:text-black' : 'text-(--rm-soft) hover:text-(--rm-ink)')}>
      {l}
    </a>
  ))
  const burger = (
    <button type="button" aria-label={open ? 'Close menu' : 'Open menu'} aria-expanded={open} onClick={() => setOpen(!open)} className="grid size-9 cursor-pointer place-items-center md:hidden">
      <svg viewBox="0 0 16 16" className="size-4" fill="none" stroke="currentColor" strokeWidth={1.6} aria-hidden>
        {open ? <path d="M4 4l8 8M12 4l-8 8" /> : <path d="M2.5 6h11M2.5 10h11" />}
      </svg>
    </button>
  )
  const sheet = open && (
    <div className={cn('rm-anim flex flex-col px-5 pb-4 [animation:rm-rise_.2s_ease-out] md:hidden', dark ? 'bg-black' : orange ? 'bg-(--rm-orange)' : 'bg-(--rm-card)')}>
      {items.map((l) => (
        <a key={l} href="#" className={cn('border-b py-3 font-display text-[20px] font-medium tracking-[-0.02em]', dark ? 'border-white/10' : orange ? 'border-black/15' : 'border-(--rm-line)')}>
          {l}
        </a>
      ))}
    </div>
  )
  const cta = <RomaButton variant={dark ? 'white' : 'black'} className={cn('h-8 px-4 text-[13px]', orange && 'bg-black text-white')}>{ctaLabel}</RomaButton>

  if (variant === 'floating') {
    return (
      <RomaRoot className={cn('bg-transparent px-4 pt-4', className)}>
        <nav className="mx-auto max-w-3xl overflow-hidden rounded-full border border-(--rm-line) bg-(--rm-card)/85 shadow-[0_10px_30px_-15px_rgb(0_0_0/0.3)] backdrop-blur-xl max-md:rounded-3xl">
          <div className="flex h-14 items-center justify-between gap-6 pr-2.5 pl-5">
            {brandEl}
            <div className="hidden items-center gap-6 md:flex">{linkEls}</div>
            <div className="flex items-center gap-1">
              {cta}
              {burger}
            </div>
          </div>
          {sheet}
        </nav>
      </RomaRoot>
    )
  }

  return (
    <RomaRoot className={cn(dark ? 'bg-black text-white' : orange ? 'bg-(--rm-orange) text-black' : 'border-b border-(--rm-line) bg-(--rm-card)', className)}>
      <nav className="mx-auto max-w-6xl">
        <div className="flex h-16 items-center justify-between gap-6 px-6 md:px-10">
          {brandEl}
          <div className="flex items-center gap-7">
            <div className="hidden items-center gap-7 md:flex">{linkEls}</div>
            <div className="flex items-center gap-1">
              {cta}
              {burger}
            </div>
          </div>
        </div>
        {sheet}
      </nav>
    </RomaRoot>
  )
}
src/registry/blocks/roma-steps.tsx
'use client'

import { PhoneMock, RomaHeading, RomaRoot, type Task } from '@/registry/blocks/roma-kit'
import { cn } from '@/lib/utils'

export interface RomaStepsProps {
  /** orange: full-bleed orange band with numbered steps and a phone. manifesto: one big paragraph, first sentence loud, the rest muted. */
  variant?: 'orange' | 'manifesto'
  title?: string
  /** For manifesto: the first sentence is emphasised. */
  body?: string
  animate?: boolean
  className?: string
}

const STEPS = [
  ['Describe it', 'Type what the page needs in plain words, or pick a family to start from.'],
  ['Tweak it', 'Every block has variants and live props. Change copy, color and layout in place.'],
  ['Ship it', 'Copy the file or pull it with the CLI. It is your code from that point on.'],
]

const TASKS: Task[] = [
  { title: 'Hero: split, orange accent', due: 'Now', hot: true },
  { title: 'Steps section, 3 items', due: 'Now' },
  { title: 'Footer with a slogan', due: 'Next' },
  { title: 'Dark mode pass', due: 'Next' },
]

/** Roma content band: how it works, or a manifesto paragraph. */
export function RomaSteps({
  variant = 'orange',
  title = 'From idea to page\nin three moves.',
  body = 'Pages should not take a week. Most of a landing page is the same ten sections arranged with taste, and that part should be instant. So we drew the sections once, carefully, and left the interesting decisions to you.',
  animate = true,
  className,
}: RomaStepsProps) {
  if (variant === 'manifesto') {
    const cut = body.search(/[.!?](\s|$)/)
    const first = cut === -1 ? body : body.slice(0, cut + 1)
    const rest = cut === -1 ? '' : body.slice(cut + 1)
    return (
      <RomaRoot className={cn('bg-(--rm-card)', className)}>
        <div className="mx-auto max-w-5xl px-6 py-24 md:px-10 md:py-32">
          <p className="font-display text-[clamp(1.6rem,3.6vw,2.7rem)] leading-[1.18] font-medium tracking-[-0.03em] text-(--rm-stone)">
            <span className="text-(--rm-ink)">{first}</span>
            {rest}
          </p>
        </div>
      </RomaRoot>
    )
  }

  return (
    <RomaRoot className={cn('overflow-hidden bg-(--rm-orange) text-black', className)}>
      <div className="mx-auto grid max-w-6xl gap-12 px-6 pt-20 md:grid-cols-2 md:px-10 md:pt-24">
        <div className="pb-16 md:pb-24">
          <RomaHeading className="text-[clamp(2.2rem,4.6vw,3.6rem)] leading-[1]">
            {title.split('\n').map((l) => (
              <span key={l} className="block">
                {l}
              </span>
            ))}
          </RomaHeading>
          <ol className="mt-12 flex flex-col">
            {STEPS.map(([h, d], i) => (
              <li key={h} className="grid grid-cols-[3rem_1fr] gap-2 border-t border-black/15 py-5">
                <span className="font-mono text-[13px] text-black/55">0{i + 1}</span>
                <div>
                  <h3 className="text-[19px] font-semibold tracking-[-0.01em]">{h}</h3>
                  <p className="mt-1 text-[15px] leading-relaxed text-black/65">{d}</p>
                </div>
              </li>
            ))}
          </ol>
        </div>
        <div className="flex items-end justify-center">
          <PhoneMock tasks={TASKS} title="Build" animate={animate} className="rounded-b-none border-b-0" />
        </div>
      </div>
    </RomaRoot>
  )
}

More in Blocks