The Open Standard for Generative UI
Simplify integrations page hierarchy (#1043)
Visharad Kashyapfed57695efaf
diff --git a/docs/app/(home)/integrations/[slug]/page.tsx b/docs/app/(home)/integrations/[slug]/page.tsxindex a8222f52e..6fd33cf0c 100644--- a/docs/app/(home)/integrations/[slug]/page.tsx+++ b/docs/app/(home)/integrations/[slug]/page.tsx@@ -1,5 +1,5 @@import { Footer } from "@/app/(home)/sections/Footer/Footer";-import { ArrowLeft, ArrowRight, ArrowUpRight, Check } from "lucide-react";+import { ArrowLeft, ArrowRight, ArrowUpRight } from "lucide-react";import type { Metadata } from "next";import Link from "next/link";import { notFound } from "next/navigation";@@ -48,7 +48,7 @@ export default async function IntegrationDetailPage(props: { params: Promise<{ sconst related = getRelatedIntegrations(integration);return (- <main className={styles.detailPage} data-accent={category.accent}>+ <main className={styles.detailPage}><div className={styles.detailHero}><div className={styles.detailHeroInner}><Link className={styles.detailBackLink} href="/integrations">@@ -57,14 +57,11 @@ export default async function IntegrationDetailPage(props: { params: Promise<{ s</Link><div className={styles.detailLockup}>- <IntegrationLogo className={styles.detailMark} integration={integration} />- <div className={styles.detailTitleBlock}>- <div className={styles.detailTags}>- <span>{integration.type}</span>- </div>+ <div className={styles.detailHeadingRow}>+ <IntegrationLogo className={styles.detailMark} integration={integration} /><h1>{integration.name}</h1>- <p>{integration.summary}</p></div>+ <p>{integration.summary}</p></div></div></div>@@ -73,7 +70,6 @@ export default async function IntegrationDetailPage(props: { params: Promise<{ s<div className={styles.detailLayout}><article className={styles.detailArticle}><section>- <p className={styles.detailEyebrow}>Integration overview</p><h2>How it connects to OpenUI</h2><p className={styles.detailLead}>{integration.howItWorks}</p></section>@@ -126,23 +122,6 @@ export default async function IntegrationDetailPage(props: { params: Promise<{ s</div></section>) : null}-- <section className={styles.checklistSection}>- <h2>What stays consistent</h2>- <div className={styles.checkGrid}>- {[- "One schema for prompting and rendering",- "Progressive rendering while output streams",- "Typed components instead of arbitrary markup",- "Host application retains its runtime behavior",- ].map((item) => (- <div className={styles.checkItem} key={item}>- <Check size={15} aria-hidden="true" />- <span>{item}</span>- </div>- ))}- </div>- </section></article><aside className={styles.resourceSidebar}>diff --git a/docs/app/(home)/integrations/category-nav.tsx b/docs/app/(home)/integrations/category-nav.tsxdeleted file mode 100644index 98a0f05ad..000000000--- a/docs/app/(home)/integrations/category-nav.tsx+++ /dev/null@@ -1,45 +0,0 @@-"use client";--import type { MouseEvent } from "react";-import styles from "./page.module.css";--interface CategoryNavItem {- count: number;- id: string;- label: string;-}--export function CategoryNav({ categories }: { categories: CategoryNavItem[] }) {- const scrollToCategory = (event: MouseEvent<HTMLAnchorElement>, id: string) => {- if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) {- return;- }-- const target = document.getElementById(id);- if (!target) return;-- event.preventDefault();- const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;- target.scrollIntoView({ behavior: reducedMotion ? "auto" : "smooth", block: "start" });-- const url = new URL(window.location.href);- url.hash = id;- window.history.pushState(null, "", url);- };-- return (- <nav className={styles.categoryNav} aria-label="Integration categories">- {categories.map((category) => (- <a- className={styles.categoryNavLink}- href={`#${category.id}`}- key={category.id}- onClick={(event) => scrollToCategory(event, category.id)}- >- {category.label}- <span>{category.count}</span>- </a>- ))}- </nav>- );-}diff --git a/docs/app/(home)/integrations/data.ts b/docs/app/(home)/integrations/data.tsindex be9f197f3..b359dfc5f 100644--- a/docs/app/(home)/integrations/data.ts+++ b/docs/app/(home)/integrations/data.ts@@ -23,7 +23,6 @@ export interface IntegrationCategory {title: string;shortTitle: string;description: string;- accent: "blue" | "green" | "orange" | "purple" | "rose" | "teal" | "slate";}export const integrationCategories: IntegrationCategory[] = [@@ -33,7 +32,6 @@ export const integrationCategories: IntegrationCategory[] = [shortTitle: "AI stack",description:"Connect OpenUI to the agent framework, AI SDK, or protocol your application already uses.",- accent: "purple",},{id: "design-systems",@@ -41,7 +39,6 @@ export const integrationCategories: IntegrationCategory[] = [shortTitle: "Design systems",description:"Use OpenUI's built-in components or connect the UI library your product already uses.",- accent: "orange",},{id: "frontend-platforms",@@ -49,7 +46,6 @@ export const integrationCategories: IntegrationCategory[] = [shortTitle: "Frontend",description:"Run OpenUI in an alternative web, mobile, chat framework, or AI application platform.",- accent: "blue",},];diff --git a/docs/app/(home)/integrations/page.module.css b/docs/app/(home)/integrations/page.module.cssindex 32cf5cbf9..285479d9d 100644--- a/docs/app/(home)/integrations/page.module.css+++ b/docs/app/(home)/integrations/page.module.css@@ -21,7 +21,7 @@}.detailBand {- background: var(--openui-background);+ background: transparent;}[data-theme="dark"] .contentBand {@@ -34,24 +34,12 @@);}-[data-theme="dark"] .detailBand {- background: var(--swatch-neutral-950);-}-.directory {max-width: var(--home-container-max);margin-inline: auto;padding: 4rem var(--home-section-padding-inline) 8rem;}-.directoryIntro {- display: grid;- grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);- gap: 3rem;- align-items: end;-}--.sectionEyebrow,.detailEyebrow {display: flex;align-items: center;@@ -65,146 +53,9 @@text-transform: uppercase;}-.sectionTitle {- margin: 0;- font-family: var(--home-font-display);- font-size: var(--home-title-size);- font-weight: var(--home-title-weight);- letter-spacing: var(--home-title-tracking);- line-height: var(--home-title-leading);-}--.directoryDescription {- margin: 0;- color: var(--openui-text-neutral-secondary);- font-size: 0.9375rem;- line-height: 1.65;-}--.categoryNav {- display: flex;- flex-wrap: wrap;- gap: 0.5rem;- margin-top: 2.5rem;- padding: 0.75rem;- border: 1px solid var(--home-hairline);- border-radius: 1.25rem;- background: var(--openui-foreground);-}--.categoryNavLink {- display: inline-flex;- align-items: center;- gap: 0.55rem;- min-height: 2.25rem;- border-radius: 999px;- padding: 0.4rem 0.75rem 0.4rem 0.9rem;- color: var(--openui-text-neutral-secondary);- font-size: 0.8125rem;- font-weight: 500;- text-decoration: none;- transition:- background-color 0.18s ease,- color 0.18s ease;-}--.categoryNavLink span {- display: grid;- min-width: 1.5rem;- height: 1.5rem;- place-items: center;- border-radius: 999px;- background: var(--openui-highlight-subtle);- color: var(--openui-text-neutral-tertiary);- font-family: var(--home-font-mono);- font-size: 0.6875rem;-}--.categoryNavLink:hover {- background: var(--openui-highlight-subtle);- color: var(--openui-text-neutral-primary);-}-.categoryList {display: grid;gap: 6rem;- margin-top: 6rem;-}--.categorySection,-.detailPage {- --category-accent: #64748b;- --category-soft: color-mix(in srgb, var(--category-accent) 11%, transparent);-}--.categorySection[data-accent="purple"],-.detailPage[data-accent="purple"] {- --category-accent: #7c3aed;-}--.categorySection[data-accent="blue"],-.detailPage[data-accent="blue"] {- --category-accent: #2563eb;-}--.categorySection[data-accent="orange"],-.detailPage[data-accent="orange"] {- --category-accent: #d97706;-}--.categorySection[data-accent="green"],-.detailPage[data-accent="green"] {- --category-accent: #059669;-}--.categorySection[data-accent="rose"],-.detailPage[data-accent="rose"] {- --category-accent: #e11d48;-}--.categorySection[data-accent="teal"],-.detailPage[data-accent="teal"] {- --category-accent: #0f766e;-}--.categorySection[data-accent="slate"],-.detailPage[data-accent="slate"] {- --category-accent: #475569;-}--[data-theme="dark"] .categorySection,-[data-theme="dark"] .detailPage {- --category-accent: #94a3b8;-}--[data-theme="dark"] .categorySection[data-accent="purple"],-[data-theme="dark"] .detailPage[data-accent="purple"] {- --category-accent: #a78bfa;-}--[data-theme="dark"] .categorySection[data-accent="blue"],-[data-theme="dark"] .detailPage[data-accent="blue"] {- --category-accent: #60a5fa;-}--[data-theme="dark"] .categorySection[data-accent="orange"],-[data-theme="dark"] .detailPage[data-accent="orange"] {- --category-accent: #f59e0b;-}--[data-theme="dark"] .categorySection[data-accent="green"],-[data-theme="dark"] .detailPage[data-accent="green"] {- --category-accent: #34d399;-}--[data-theme="dark"] .categorySection[data-accent="rose"],-[data-theme="dark"] .detailPage[data-accent="rose"] {- --category-accent: #fb7185;-}--[data-theme="dark"] .categorySection[data-accent="teal"],-[data-theme="dark"] .detailPage[data-accent="teal"] {- --category-accent: #5eead4;}.categorySection {@@ -218,7 +69,6 @@align-items: start;margin-bottom: 1.5rem;padding-bottom: 1.5rem;- border-bottom: 1px solid var(--home-hairline);}.categoryHeading h2 {@@ -327,8 +177,8 @@.ctaIcon {display: grid;place-items: center;- background: var(--category-soft);- color: var(--category-accent);+ background: var(--openui-highlight-subtle);+ color: var(--openui-text-neutral-secondary);}.mark {@@ -414,19 +264,6 @@opacity: 1;}-.detailTags span {- display: inline-flex;- min-height: 1.625rem;- align-items: center;- border-radius: 999px;- padding: 0.25rem 0.625rem;- background: var(--openui-highlight-subtle);- color: var(--openui-text-neutral-secondary);- font-size: 0.6875rem;- font-weight: 550;- line-height: 1;-}-.directoryCta {display: grid;grid-template-columns: auto minmax(0, 1fr) auto;@@ -477,7 +314,6 @@/* Detail page */.detailHero {- border-bottom: 1px solid var(--home-hairline);background: var(--openui-foreground);}@@ -504,7 +340,7 @@margin-bottom: 2.5rem;color: var(--openui-text-neutral-secondary);font-size: 0.8125rem;- font-weight: 550;+ font-weight: 500;text-decoration: none;transition: color 160ms ease;}@@ -522,17 +358,22 @@}.detailLockup {+ --detail-logo-size: clamp(3.25rem, 5vw, 3.5rem);+ --detail-heading-gap: clamp(1rem, 2vw, 1.5rem);+}++.detailHeadingRow {display: grid;- grid-template-columns: auto minmax(0, 1fr);- gap: clamp(1.5rem, 4vw, 3rem);- align-items: start;+ grid-template-columns: var(--detail-logo-size) minmax(0, 1fr);+ gap: var(--detail-heading-gap);+ align-items: center;}.detailMark {- width: clamp(5rem, 10vw, 7rem);- height: clamp(5rem, 10vw, 7rem);- border: 1px solid color-mix(in srgb, var(--category-accent) 22%, transparent);- border-radius: 1.75rem;+ width: var(--detail-logo-size);+ height: var(--detail-logo-size);+ border: 1px solid var(--home-hairline);+ border-radius: 1rem;box-shadow: var(--home-card-lift);}@@ -541,30 +382,20 @@height: 64%;}-.detailTitleBlock {- max-width: 48rem;-}--.detailTags {- display: flex;- flex-wrap: wrap;- gap: 0.45rem;- margin-bottom: 1.25rem;-}--.detailTitleBlock h1 {+.detailHeadingRow h1 {margin: 0;font-family: var(--home-font-display);- font-size: clamp(2.5rem, 7vw, 4.5rem);- font-weight: 700;+ font-size: clamp(2.5rem, 6vw, 4.5rem);+ font-weight: 500;letter-spacing: -0.055em;line-height: 1.02;text-wrap: balance;+ white-space: nowrap;}-.detailTitleBlock > p {+.detailLockup > p {max-width: 43rem;- margin: 1.25rem 0 0;+ margin: 1.25rem 0 0 calc(var(--detail-logo-size) + var(--detail-heading-gap));color: var(--openui-text-neutral-secondary);font-size: clamp(1rem, 2vw, 1.25rem);line-height: 1.55;@@ -589,7 +420,7 @@margin: 0;font-family: var(--home-font-display);font-size: clamp(1.5rem, 3vw, 2rem);- font-weight: 600;+ font-weight: 500;letter-spacing: -0.035em;line-height: 1.2;}@@ -618,16 +449,6 @@padding: 0 0 1.75rem;}-.flowList li:not(:last-child)::after {- position: absolute;- top: 2rem;- bottom: 0;- left: 0.9375rem;- width: 1px;- background: var(--home-hairline);- content: "";-}-.flowNumber {position: relative;z-index: 1;@@ -636,17 +457,17 @@height: 1.875rem;place-items: center;border-radius: 0.65rem;- background: var(--category-soft);- color: var(--category-accent);+ background: var(--openui-highlight-subtle);+ color: var(--openui-text-neutral-secondary);font-family: var(--home-font-mono);font-size: 0.6875rem;- font-weight: 700;+ font-weight: 500;}.flowList h3 {margin: 0.15rem 0 0;font-size: 0.9375rem;- font-weight: 600;+ font-weight: 500;}.flowList p {@@ -702,13 +523,13 @@}.copyCommand:hover {- border-color: color-mix(in srgb, var(--category-accent) 45%, var(--home-hairline));- background: var(--category-soft);- color: var(--category-accent);+ border-color: var(--openui-border-interactive, var(--openui-text-neutral-tertiary));+ background: var(--openui-highlight-subtle);+ color: var(--openui-text-neutral-primary);}.copyCommand:focus-visible {- outline: 2px solid var(--category-accent);+ outline: 2px solid var(--openui-text-neutral-primary);outline-offset: 2px;}@@ -716,32 +537,6 @@flex-shrink: 0;}-.checkGrid {- display: grid;- grid-template-columns: repeat(2, minmax(0, 1fr));- gap: 0.75rem;- margin-top: 1.5rem;-}--.checkItem {- display: flex;- gap: 0.65rem;- align-items: flex-start;- border: 1px solid var(--home-hairline);- border-radius: 0.9rem;- padding: 0.9rem;- background: color-mix(in srgb, var(--openui-foreground) 85%, transparent);- color: var(--openui-text-neutral-secondary);- font-size: 0.8125rem;- line-height: 1.45;-}--.checkItem svg {- flex-shrink: 0;- margin-top: 0.1rem;- color: var(--category-accent);-}-.resourceSidebar {display: flex;flex-direction: column;@@ -762,11 +557,10 @@.resourceTitle {margin: 0 0 0.75rem;padding: 0.2rem 0.25rem 0.75rem;- border-bottom: 1px solid var(--home-hairline);color: var(--openui-text-neutral-secondary);font-family: var(--home-font-mono);font-size: 0.6875rem;- font-weight: 600;+ font-weight: 500;letter-spacing: 0.04em;text-transform: uppercase;}@@ -804,7 +598,7 @@flex-direction: column;gap: 0.2rem;font-size: 0.8125rem;- font-weight: 550;+ font-weight: 500;}.resourceLinks small {@@ -821,7 +615,7 @@.relatedLinks a {font-size: 0.8125rem;- font-weight: 550;+ font-weight: 500;}.relatedLinks a > span:nth-child(2) {@@ -849,6 +643,10 @@padding-bottom: 8rem;}+.detailBackRow a {+ font-weight: 500;+}+@media (max-width: 960px) {.grid {grid-template-columns: repeat(2, minmax(0, 1fr));@@ -870,33 +668,8 @@padding-block: 3rem 6rem;}- .directoryIntro {- grid-template-columns: 1fr;- gap: 1rem;- text-align: center;- }-- .sectionEyebrow {- justify-content: center;- }-- .categoryNav {- flex-wrap: nowrap;- overflow-x: auto;- scrollbar-width: none;- }-- .categoryNav::-webkit-scrollbar {- display: none;- }-- .categoryNavLink {- flex-shrink: 0;- }-.categoryList {gap: 4.5rem;- margin-top: 4.5rem;}.grid {@@ -921,17 +694,27 @@}.detailLockup {+ --detail-logo-size: 3.5rem;+ --detail-heading-gap: 1rem;+ }++ .detailHeadingRow {grid-template-columns: 1fr;+ align-items: start;}.detailMark {- width: 4.75rem;- height: 4.75rem;- border-radius: 1.35rem;+ border-radius: 1rem;}- .detailTitleBlock h1 {+ .detailHeadingRow h1 {+ margin-top: 1.25rem;font-size: clamp(2.25rem, 13vw, 3.5rem);+ white-space: normal;+ }++ .detailLockup > p {+ margin-left: 0;}.detailLayout {@@ -943,7 +726,6 @@gap: 3.5rem;}- .checkGrid,.resourceSidebar {grid-template-columns: 1fr;}@@ -961,8 +743,7 @@@media (prefers-reduced-motion: reduce) {.card,.cardLink,- .cardLinkArrow,- .categoryNavLink {+ .cardLinkArrow {transition: none;}diff --git a/docs/app/(home)/integrations/page.tsx b/docs/app/(home)/integrations/page.tsxindex 5354f1cf8..c1d2dc0b4 100644--- a/docs/app/(home)/integrations/page.tsx+++ b/docs/app/(home)/integrations/page.tsx@@ -1,9 +1,8 @@-import { PageHero, PageHeroAccent } from "@/app/(home)/components/PageHero/PageHero";+import { PageHero } from "@/app/(home)/components/PageHero/PageHero";import { Footer } from "@/app/(home)/sections/Footer/Footer";-import { ArrowRight, Boxes, Layers3 } from "lucide-react";+import { ArrowRight, Boxes } from "lucide-react";import type { Metadata } from "next";import Link from "next/link";-import { CategoryNav } from "./category-nav";import { getIntegrationsByCategory, integrationCategories } from "./data";import { IntegrationLogo } from "./integration-logo";import styles from "./page.module.css";@@ -26,59 +25,19 @@ export default function IntegrationsPage() {return (<main className={styles.page}><PageHero- eyebrow="OpenUI ecosystem"- title={- <>- Build with the tools- <br />- <PageHeroAccent>you already use.</PageHeroAccent>- </>- }- subtitle={- <>- Start with an AI framework, design system, or frontend platform your team already knows.- </>- }+ title="OpenUI integrations"+ subtitle="Explore integrations for the frameworks, design systems, and platforms in your stack."smallSubtitle/><div className={styles.contentBand}>- <section className={styles.directory} aria-labelledby="integration-directory-title">- <div className={styles.directoryIntro}>- <div>- <p className={styles.sectionEyebrow}>- <Layers3 size={14} aria-hidden="true" />- Integration directory- </p>- <h2 id="integration-directory-title" className={styles.sectionTitle}>- OpenUI across your stack- </h2>- </div>- <p className={styles.directoryDescription}>- Three simple ways into OpenUI. Popular starting points appear first, and each page- links to the relevant docs or runnable source.- </p>- </div>-- <CategoryNav- categories={integrationCategories.map((category) => ({- count: getIntegrationsByCategory(category.id).length,- id: category.id,- label: category.shortTitle,- }))}- />-+ <section className={styles.directory}><div className={styles.categoryList}>{integrationCategories.map((category) => {const items = getIntegrationsByCategory(category.id);return (- <section- className={styles.categorySection}- data-accent={category.accent}- id={category.id}- key={category.id}- >+ <section className={styles.categorySection} id={category.id} key={category.id}><header className={styles.categoryHeader}><div className={styles.categoryHeading}><h2>{category.title}</h2>diff --git a/docs/app/(home)/sections/CloudBanner/CloudBanner.module.css b/docs/app/(home)/sections/CloudBanner/CloudBanner.module.cssindex 3b78ebb74..0036d39b3 100644--- a/docs/app/(home)/sections/CloudBanner/CloudBanner.module.css+++ b/docs/app/(home)/sections/CloudBanner/CloudBanner.module.css@@ -58,21 +58,6 @@color: #fff;}-.tag {- display: inline-flex;- align-items: center;- margin-inline: 0.12em;- font-size: 0.85em;- line-height: 1;- padding: 0.16em 0.34em;- border: 1px solid rgba(255, 255, 255, 0.85);- border-radius: 0.45em;- /* Nudge up so the box reads as centered on the caps of "OpenUI" */- vertical-align: middle;- position: relative;- top: -0.05em;-}-.rest {color: rgba(255, 255, 255, 0.55);}diff --git a/docs/app/(home)/sections/CloudBanner/CloudBanner.tsx b/docs/app/(home)/sections/CloudBanner/CloudBanner.tsxindex 00e5de8b7..37950aa24 100644--- a/docs/app/(home)/sections/CloudBanner/CloudBanner.tsx+++ b/docs/app/(home)/sections/CloudBanner/CloudBanner.tsx@@ -48,15 +48,15 @@ export function CloudBanner() {<Linkhref="/benchmarks"className={`${styles.banner} ${open ? styles.open : ""}`.trim()}- aria-label="OpenUI Benchmark: Generative UI Benchmark. View the results."+ aria-label="OpenUI Benchmarks: Compare Generative UI frameworks across models. View the results."><span className={styles.content}><span className={styles.text}><span className={styles.lead}>- OpenUI <span className={styles.tag}>Benchmark</span>+ OpenUI Benchmarks<span className={styles.colon}> :</span></span>{" "}- <span className={styles.rest}>Generative UI Benchmark</span>+ <span className={styles.rest}>Compare Generative UI frameworks across models</span></span><ArrowRight className={styles.chevron} size={18} strokeWidth={2.25} aria-hidden="true" /></span>diff --git a/docs/app/(home)/sections/Footer/Footer.module.css b/docs/app/(home)/sections/Footer/Footer.module.cssindex 0560fa42b..dda110954 100644--- a/docs/app/(home)/sections/Footer/Footer.module.css+++ b/docs/app/(home)/sections/Footer/Footer.module.css@@ -27,31 +27,12 @@/* The mark and the theme control face each other across the footer's width. */.brandRow {display: grid;- grid-template-columns: auto minmax(0, 1fr) auto;+ grid-template-columns: minmax(0, 1fr) auto;align-items: center;gap: 1.5rem;padding-bottom: var(--footer-air-below);}-.footerNav {- display: flex;- align-items: center;- justify-content: center;-}--.footerNav a {- color: var(--openui-text-neutral-secondary);- font-size: 0.875rem;- font-weight: 500;- text-decoration: none;- transition: color 0.15s ease;-}--.footerNav a:hover,-.footerNav a:focus-visible {- color: var(--openui-text-neutral-primary);-}-.logoWrap {position: relative;/* Held to the mark's own 2.5:1 ratio, so the wordmark never stretches. */@@ -203,18 +184,6 @@background: #000;}-@media (max-width: 600px) {- .brandRow {- grid-template-columns: minmax(0, 1fr) auto;- }-- .footerNav {- grid-column: 1 / -1;- grid-row: 2;- justify-content: flex-start;- }-}-@media (min-width: 1024px) {.contentSection {padding-inline: 2rem;diff --git a/docs/app/(home)/sections/Footer/Footer.tsx b/docs/app/(home)/sections/Footer/Footer.tsxindex 366071b1e..f689a2977 100644--- a/docs/app/(home)/sections/Footer/Footer.tsx+++ b/docs/app/(home)/sections/Footer/Footer.tsx@@ -2,7 +2,6 @@import svgPaths from "@/imports/svg-urruvoh2be";import { Monitor, Moon, Sun } from "@phosphor-icons/react";import { useTheme } from "next-themes";-import Link from "next/link";import { useId, useSyncExternalStore } from "react";import styles from "./Footer.module.css";@@ -185,9 +184,6 @@ export function Footer() {the separator below. */}<div className={styles.brandRow}><ThesysLogo />- <nav className={styles.footerNav} aria-label="Footer navigation">- <Link href="/integrations">Integrations</Link>- </nav><ThemeTabs /></div>