The Open Standard for Generative UI
feat(react-ui): AgentInterface welcome-glow rework, DotMatrixLoader, and blue default accent (#787)
Prakhar9510fa3eed19
diff --git a/packages/react-ui/README.md b/packages/react-ui/README.mdindex fda89b82a..f9db81d6c 100644--- a/packages/react-ui/README.md+++ b/packages/react-ui/README.md@@ -188,7 +188,7 @@ All components are available as individual imports:| **Data Display** | `Table`, `Charts` (bar, line, area, pie, radar, scatter), `ListBlock`, `ListItem`, `Tag`, `TagBlock`, `CodeBlock`, `Image`, `ImageBlock`, `ImageGallery` || **Forms** | `Input`, `TextArea`, `Select`, `CheckBoxGroup`, `CheckBoxItem`, `RadioGroup`, `RadioItem`, `SwitchGroup`, `SwitchItem`, `Slider`, `DatePicker`, `FormControl`, `Label` || **Actions** | `Button`, `Buttons`, `IconButton`, `FollowUpBlock`, `FollowUpItem` |-| **Feedback** | `Callout`, `TextCallout`, `MessageLoading` |+| **Feedback** | `Callout`, `TextCallout` || **Content** | `TextContent`, `MarkDownRenderer` || **Chat** | `AgentInterface`, `ToolCall`, `ToolResult` |diff --git a/packages/react-ui/src/components/AgentInterface/AgentInterface.tsx b/packages/react-ui/src/components/AgentInterface/AgentInterface.tsxindex 4e1c66f82..99dab597a 100644--- a/packages/react-ui/src/components/AgentInterface/AgentInterface.tsx+++ b/packages/react-ui/src/components/AgentInterface/AgentInterface.tsx@@ -54,6 +54,7 @@ import { SidebarItem } from "./SidebarItem";import { SidebarSlot } from "./SidebarSlot";import { MessageLoading, Messages, ScrollArea, ThreadContainer, ThreadHeader } from "./Thread";import { ThreadList } from "./ThreadList";+import { WelcomeGlow } from "./WelcomeGlow";import { WelcomeScreen } from "./WelcomeScreen";import { Workspace } from "./Workspace";@@ -167,6 +168,7 @@ interface AgentInterfaceComponent extends FC<AgentInterfaceProps> {MobileHeader: typeof MobileHeader;ThreadHeader: typeof ThreadHeader;Welcome: typeof WelcomeScreen;+ WelcomeGlow: typeof WelcomeGlow;Composer: typeof Composer;NewChatButton: typeof NewChatButton;ThreadList: typeof ThreadList;@@ -462,6 +464,7 @@ AgentInterface.Route = Route;AgentInterface.MobileHeader = MobileHeader;AgentInterface.ThreadHeader = ThreadHeader;AgentInterface.Welcome = WelcomeScreen;+AgentInterface.WelcomeGlow = WelcomeGlow;AgentInterface.Composer = Composer;AgentInterface.NewChatButton = NewChatButton;AgentInterface.ThreadList = ThreadList;diff --git a/packages/react-ui/src/components/AgentInterface/ArtifactBrowserPage.tsx b/packages/react-ui/src/components/AgentInterface/ArtifactBrowserPage.tsxindex 521b64862..8af9a3fed 100644--- a/packages/react-ui/src/components/AgentInterface/ArtifactBrowserPage.tsx+++ b/packages/react-ui/src/components/AgentInterface/ArtifactBrowserPage.tsx@@ -8,6 +8,7 @@ import {import { Boxes, Search, X } from "lucide-react";import { useEffect, useRef, useState, type ReactNode } from "react";import { Button } from "../Button";+import { DotMatrixLoader } from "../DotMatrixLoader";import { IconButton } from "../IconButton";import { artifactListPath, artifactViewPath } from "./_shared/artifactPaths";import { useAgentInterfaceLabels } from "./_shared/labelsContext";@@ -102,6 +103,7 @@ export const ArtifactBrowserPage = ({ categoryName }: { categoryName?: string })// is decided synchronously with no loading race.const notFound = categoryName !== undefined && category === undefined;const typeFilter = category?.filter.type;+ const categoryIllustration = useArtifactIcon(typeFilter?.[0] ?? "");const [search, setSearch] = useState("");const [debouncedSearch, setDebouncedSearch] = useState("");@@ -120,7 +122,7 @@ export const ArtifactBrowserPage = ({ categoryName }: { categoryName?: string })// Noun derived from the category name (not a hardcoded "Apps" match).const emptyItemLabel = categoryName ? categoryName.toLowerCase() : "artifacts";const emptyMessage = debouncedSearch- ? `No ${emptyItemLabel} match your search`+ ? `No results found for "${debouncedSearch}"`: `No ${emptyItemLabel} yet`;// Initial page + reload on search/category change.@@ -235,7 +237,7 @@ export const ArtifactBrowserPage = ({ categoryName }: { categoryName?: string }){!error && artifacts.length === 0 && !isLoading && (<div className="openui-agent-artifact-browser__empty"><span className="openui-agent-artifact-browser__empty-illustration">- <Boxes size="1em" />+ {debouncedSearch ? categoryIllustration : <Boxes size="1em" />}</span><span className="openui-agent-artifact-browser__empty-text">{emptyMessage}</span></div>@@ -251,7 +253,11 @@ export const ArtifactBrowserPage = ({ categoryName }: { categoryName?: string })/>);})}- {isLoading && <div className="openui-agent-artifact-browser__loading">Loading…</div>}+ {isLoading && (+ <div className="openui-agent-artifact-browser__loading">+ <DotMatrixLoader />+ </div>+ )}{!isLoading && nextCursor !== undefined && (<div className="openui-agent-artifact-browser__load-more"><Button variant="secondary" size="small" onClick={loadMore}>diff --git a/packages/react-ui/src/components/AgentInterface/ArtifactViewPage.tsx b/packages/react-ui/src/components/AgentInterface/ArtifactViewPage.tsxindex cd08cc3a0..ee8d3d1aa 100644--- a/packages/react-ui/src/components/AgentInterface/ArtifactViewPage.tsx+++ b/packages/react-ui/src/components/AgentInterface/ArtifactViewPage.tsx@@ -9,6 +9,7 @@ import {import { ArrowLeft, MessageSquare } from "lucide-react";import { useEffect, useMemo, useRef, useState } from "react";import { Button } from "../Button";+import { DotMatrixLoader } from "../DotMatrixLoader";import { IconButton } from "../IconButton";import { artifactListPath } from "./_shared/artifactPaths";import { useNav } from "./_shared/navContext";@@ -99,7 +100,11 @@ export const ArtifactViewPage = ({</div>);} else if (!artifact) {- body = <div className="openui-agent-artifact-view__loading">Loading…</div>;+ body = (+ <div className="openui-agent-artifact-view__loading">+ <DotMatrixLoader />+ </div>+ );} else if (!renderer) {body = (<div className="openui-agent-artifact-view__error">diff --git a/packages/react-ui/src/components/AgentInterface/ConversationStarter.tsx b/packages/react-ui/src/components/AgentInterface/ConversationStarter.tsxindex 12e03a272..3b2360a4b 100644--- a/packages/react-ui/src/components/AgentInterface/ConversationStarter.tsx+++ b/packages/react-ui/src/components/AgentInterface/ConversationStarter.tsx@@ -156,6 +156,9 @@ export const ConversationStarter = ({>{starters.map((item, index) => (<Fragment key={`${item.displayText}-${index}`}>+ {index > 0 && (+ <div className="openui-agent-conversation-starter__separator" aria-hidden="true" />+ )}<ConversationStarterItemdisplayText={item.displayText}prompt={item.prompt}diff --git a/packages/react-ui/src/components/AgentInterface/Thread.tsx b/packages/react-ui/src/components/AgentInterface/Thread.tsxindex 04ede2081..76bfc7902 100644--- a/packages/react-ui/src/components/AgentInterface/Thread.tsx+++ b/packages/react-ui/src/components/AgentInterface/Thread.tsx@@ -21,9 +21,9 @@ import { TimelineEntry } from "./_shared/tool-renderer";import type { AssistantMessageComponent, UserMessageComponent } from "./_shared/types";import { Callout } from "../Callout";+import { DotMatrixLoader } from "../DotMatrixLoader";import { IconButton } from "../IconButton";import { MarkDownRenderer } from "../MarkDownRenderer";-import { MessageLoading as MessageLoadingComponent } from "../MessageLoading";import { ResizableSeparator } from "./ResizableSeparator";import { UserMessageContent } from "./UserMessageContent";import { AgentInterfaceTooltip } from "./_shared/AgentInterfaceTooltip";@@ -120,7 +120,7 @@ export const ScrollArea = ({children,className,scrollVariant = "user-message-anchor",- userMessageSelector = ".openui-agent-thread-message-user",+ userMessageSelector = ".openui-agent-thread-message-user, .openui-shell-thread-message-user",scrollOnLoad = true,}: {children?: React.ReactNode;@@ -289,7 +289,7 @@ export const RenderMessage = memo(export const MessageLoading = () => {return (<div className="openui-agent-thread-message-loading">- <MessageLoadingComponent />+ <DotMatrixLoader variant="compact" /></div>);};diff --git a/packages/react-ui/src/components/AgentInterface/ThreadList.tsx b/packages/react-ui/src/components/AgentInterface/ThreadList.tsxindex e62c619dd..22c0bfef3 100644--- a/packages/react-ui/src/components/AgentInterface/ThreadList.tsx+++ b/packages/react-ui/src/components/AgentInterface/ThreadList.tsx@@ -1,15 +1,39 @@-import type { Thread } from "@openuidev/react-headless";import { useThreadList } from "@openuidev/react-headless";import * as DropdownMenu from "@radix-ui/react-dropdown-menu";import clsx from "clsx";import { EllipsisIcon, Trash2Icon } from "lucide-react";-import { Fragment, useEffect, useState } from "react";+import { useCallback, useEffect, useRef, useState } from "react";import { useLayoutContext } from "../../context/LayoutContext";import { Button } from "../Button";import { IconButton } from "../IconButton";+import { Skeleton } from "../Skeleton";import { useOptionalNav } from "./_shared/navContext";import { useAgentInterfaceStore } from "./_shared/store";+const THREAD_SKELETON_WIDTHS = ["78%", "62%", "86%", "70%"];++const ThreadListSkeleton = () => (+ <div+ className="openui-agent-thread-list-skeleton"+ role="status"+ aria-live="polite"+ aria-label="Loading threads"+ >+ <div className="openui-agent-thread-list-skeleton__group" aria-hidden="true">+ <Skeleton height="12px" width="48px" />+ </div>+ {THREAD_SKELETON_WIDTHS.map((width, index) => (+ <div+ key={`${width}-${index}`}+ className="openui-agent-thread-list-skeleton__row"+ aria-hidden="true"+ >+ <Skeleton height="14px" width={width} />+ </div>+ ))}+ </div>+);+export const ThreadButton = ({id,title,@@ -98,79 +122,75 @@ export const ThreadButton = ({export const ThreadList = ({ className }: { className?: string }) => {const threads = useThreadList((s) => s.threads);+ const isLoadingThreads = useThreadList((s) => s.isLoadingThreads);const loadThreads = useThreadList((s) => s.loadThreads);+ const [hasRequestedThreads, setHasRequestedThreads] = useState(false);+ const [scrollMasks, setScrollMasks] = useState({ top: false, bottom: false });+ const listRef = useRef<HTMLDivElement>(null);++ const updateScrollMasks = useCallback(() => {+ const list = listRef.current;+ if (!list) return;++ const maxScrollTop = list.scrollHeight - list.clientHeight;+ const nextMasks = {+ top: maxScrollTop > 0 && list.scrollTop > 1,+ bottom: maxScrollTop > 0 && list.scrollTop < maxScrollTop - 1,+ };++ setScrollMasks((current) =>+ current.top === nextMasks.top && current.bottom === nextMasks.bottom ? current : nextMasks,+ );+ }, []);useEffect(() => {+ setHasRequestedThreads(true);loadThreads();}, []);- const groupThreads = () => {- const now = new Date();- const today = new Date(now.getFullYear(), now.getMonth(), now.getDate());- const yesterday = new Date(today);- yesterday.setDate(yesterday.getDate() - 1);- const last7Days = new Date(today);- last7Days.setDate(last7Days.getDate() - 7);- const last30Days = new Date(today);- last30Days.setDate(last30Days.getDate() - 30);- const thisYear = new Date(today);- thisYear.setMonth(0, 1);+ useEffect(() => {+ const list = listRef.current;+ if (!list) return;- return threads.reduce(- (groups, thread) => {- const threadDate = new Date(thread.createdAt);+ updateScrollMasks();- if (threadDate >= today) {- groups.today = [...(groups.today || []), thread];- } else if (threadDate >= yesterday) {- groups.yesterday = [...(groups.yesterday || []), thread];- } else if (threadDate >= last7Days) {- groups.last7Days = [...(groups.last7Days || []), thread];- } else if (threadDate >= last30Days) {- groups.last30Days = [...(groups.last30Days || []), thread];- } else if (threadDate >= thisYear) {- groups.thisYear = [...(groups.thisYear || []), thread];- } else {- groups.older = [...(groups.older || []), thread];- }+ const resizeObserver = new ResizeObserver(updateScrollMasks);+ resizeObserver.observe(list);+ const mutationObserver = new MutationObserver(updateScrollMasks);+ mutationObserver.observe(list, { childList: true, subtree: true });+ list.addEventListener("scroll", updateScrollMasks, { passive: true });- return groups;- },- {- today: [] as Thread[],- yesterday: [] as Thread[],- last7Days: [] as Thread[],- last30Days: [] as Thread[],- thisYear: [] as Thread[],- older: [] as Thread[],- },- );- };+ return () => {+ resizeObserver.disconnect();+ mutationObserver.disconnect();+ list.removeEventListener("scroll", updateScrollMasks);+ };+ }, [updateScrollMasks]);- const groupedThreads = groupThreads();- const groupLabels: { [key in keyof typeof groupedThreads]: string } = {- today: "Today",- yesterday: "Yesterday",- last7Days: "Previous 7 Days",- last30Days: "Previous 30 Days",- thisYear: "This Year",- older: "Older",- };+ const showSkeleton = !hasRequestedThreads || isLoadingThreads;return (- <div className={clsx("openui-agent-thread-list", className)}>- {Object.entries(groupedThreads)- .filter(([_, groupThreads]) => groupThreads.length > 0)- .map(([group, groupThreads]) => (- <Fragment key={group}>- <div className="openui-agent-thread-list-group">- {groupLabels[group as keyof typeof groupLabels]}- </div>- {groupThreads.map((thread) => (- <ThreadButton key={thread.id} id={thread.id} title={thread.title} />- ))}- </Fragment>- ))}+ <div+ ref={listRef}+ className={clsx(+ "openui-agent-thread-list",+ {+ "openui-agent-thread-list--mask-top": scrollMasks.top,+ "openui-agent-thread-list--mask-bottom": scrollMasks.bottom,+ },+ className,+ )}+ >+ {showSkeleton ? (+ <ThreadListSkeleton />+ ) : (+ <div className="openui-agent-thread-list-content">+ {threads.length > 0 && <div className="openui-agent-thread-list-group">Threads</div>}+ {threads.map((thread) => (+ <ThreadButton key={thread.id} id={thread.id} title={thread.title} />+ ))}+ </div>+ )}</div>);};diff --git a/packages/react-ui/src/components/AgentInterface/WelcomeGlow.tsx b/packages/react-ui/src/components/AgentInterface/WelcomeGlow.tsxnew file mode 100644index 000000000..997a7c456--- /dev/null+++ b/packages/react-ui/src/components/AgentInterface/WelcomeGlow.tsx@@ -0,0 +1,43 @@+import clsx from "clsx";+import { createContext, useContext, type ReactNode } from "react";++const WelcomeGlowContext = createContext(false);++export const WelcomeGlowProvider = ({+ children,+ enabled,+}: {+ children: ReactNode;+ enabled: boolean;+}) => <WelcomeGlowContext.Provider value={enabled}>{children}</WelcomeGlowContext.Provider>;++export interface WelcomeGlowProps {+ children: ReactNode;+ className?: string;+}++/**+ * Positions the optional welcome glow around a custom composer. The animation+ * is enabled by the nearest <AgentInterface.Welcome glowAnimation> ancestor.+ */+export const WelcomeGlow = ({ children, className }: WelcomeGlowProps) => {+ const enabled = useContext(WelcomeGlowContext);++ if (!enabled) {+ return <>{children}</>;+ }++ return (+ <div className={clsx("openui-agent-welcome-glow", className)}>+ <span+ aria-hidden="true"+ className="openui-agent-welcome-glow__blob openui-agent-welcome-glow__blob--accent"+ />+ <span+ aria-hidden="true"+ className="openui-agent-welcome-glow__blob openui-agent-welcome-glow__blob--foreground"+ />+ {children}+ </div>+ );+};diff --git a/packages/react-ui/src/components/AgentInterface/WelcomeScreen.tsx b/packages/react-ui/src/components/AgentInterface/WelcomeScreen.tsxindex f0c258c98..59e6e7cef 100644--- a/packages/react-ui/src/components/AgentInterface/WelcomeScreen.tsx+++ b/packages/react-ui/src/components/AgentInterface/WelcomeScreen.tsx@@ -6,12 +6,18 @@ import { useStartersFromContext } from "./_shared/startersContext";import { isChatEmpty } from "./_shared/utils";import { DesktopWelcomeComposer } from "./components";import { ConversationStarter, ConversationStarterVariant } from "./ConversationStarter";+import { WelcomeGlow, WelcomeGlowProvider } from "./WelcomeGlow";interface WelcomeScreenBaseProps {/*** Additional CSS class name*/className?: string;+ /**+ * Plays the one-shot welcome entrance and composer glow animation.+ * @default false+ */+ glowAnimation?: boolean;}interface WelcomeScreenWithContentProps extends WelcomeScreenBaseProps {@@ -66,7 +72,7 @@ const isImageUrl = (image: { url: string } | ReactNode): image is { url: string};export const WelcomeScreen = (props: WelcomeScreenProps) => {- const { className } = props;+ const { className, glowAnimation = false } = props;const fromCtx = useStartersFromContext();const ownStarters = "starters" in props ? props.starters : undefined;@@ -84,7 +90,17 @@ export const WelcomeScreen = (props: WelcomeScreenProps) => {// Check if children are providedif ("children" in props && props.children) {- return <div className={clsx("openui-agent-welcome-screen", className)}>{props.children}</div>;+ return (+ <WelcomeGlowProvider enabled={glowAnimation}>+ <div+ className={clsx("openui-agent-welcome-screen", className, {+ "openui-agent-welcome-screen--animated": glowAnimation,+ })}+ >+ {props.children}+ </div>+ </WelcomeGlowProvider>+ );}// Props-based content@@ -103,39 +119,46 @@ export const WelcomeScreen = (props: WelcomeScreenProps) => {};return (- <div- className={clsx(- "openui-agent-welcome-screen",- "openui-agent-welcome-screen--with-composer",- className,- )}- >- <div className="openui-agent-welcome-screen__header">- {image && (- <div className="openui-agent-welcome-screen__image-container">{renderImage()}</div>- )}- {(title || description) && (- <div className="openui-agent-welcome-screen__content">- {title && <h2 className="openui-agent-welcome-screen__title">{title}</h2>}- {description && (- <p className="openui-agent-welcome-screen__description">{description}</p>- )}- </div>+ <WelcomeGlowProvider enabled={glowAnimation}>+ <div+ className={clsx(+ "openui-agent-welcome-screen",+ "openui-agent-welcome-screen--with-composer",+ className,+ {+ "openui-agent-welcome-screen--animated": glowAnimation,+ },)}- </div>- {/* Desktop-only welcome composer */}- <div className="openui-agent-welcome-screen__composer-starters-container">- <div className="openui-agent-welcome-screen__desktop-composer">- <DesktopWelcomeComposer />+ >+ <div className="openui-agent-welcome-screen__header">+ {image && (+ <div className="openui-agent-welcome-screen__image-container">{renderImage()}</div>+ )}+ {(title || description) && (+ <div className="openui-agent-welcome-screen__content">+ {title && <h2 className="openui-agent-welcome-screen__title">{title}</h2>}+ {description && (+ <p className="openui-agent-welcome-screen__description">{description}</p>+ )}+ </div>+ )}</div>- {/* Desktop-only conversation starters */}- {starters.length > 0 && (- <div className="openui-agent-welcome-screen__desktop-starters">- <ConversationStarter starters={starters} variant={starterVariant} />+ {/* Desktop-only welcome composer */}+ <div className="openui-agent-welcome-screen__composer-starters-container">+ <div className="openui-agent-welcome-screen__desktop-composer">+ <WelcomeGlow>+ <DesktopWelcomeComposer />+ </WelcomeGlow></div>- )}+ {/* Desktop-only conversation starters */}+ {starters.length > 0 && (+ <div className="openui-agent-welcome-screen__desktop-starters">+ <ConversationStarter starters={starters} variant={starterVariant} />+ </div>+ )}+ </div></div>- </div>+ </WelcomeGlowProvider>);};diff --git a/packages/react-ui/src/components/AgentInterface/Workspace.tsx b/packages/react-ui/src/components/AgentInterface/Workspace.tsxindex 5365570c8..3d9c0bc85 100644--- a/packages/react-ui/src/components/AgentInterface/Workspace.tsx+++ b/packages/react-ui/src/components/AgentInterface/Workspace.tsx@@ -14,6 +14,7 @@ import {useArtifactIcon,useArtifactTypeLabel,} from "./ArtifactBrowserPage";+import { useAgentInterfaceLabels } from "./_shared/labelsContext";import { useAgentInterfaceStore } from "./_shared/store";export interface WorkspaceProps {@@ -56,6 +57,7 @@ const DefaultWorkspace = ({ className }: { className?: string }) => {const { layout } = useLayoutContext();const categories = useArtifactCategories();const all = useArtifactList();+ const { workspaceToggle } = useAgentInterfaceLabels();const entries = latestPerId(all);const shouldShowWorkspace = isWorkspaceOpen && !isDetailedViewActive;@@ -85,7 +87,9 @@ const DefaultWorkspace = ({ className }: { className?: string }) => {className,)}>- {/* No top bar / tabs for now — the rail shows every section. */}+ <div className="openui-agent-workspace-sidebar__header">+ <h2 className="openui-agent-workspace-sidebar__title">{workspaceToggle}</h2>+ </div><div className="openui-agent-workspace-sidebar__content">{categories.length > 0 ? (<WorkspaceSections categories={categories} entries={entries} />diff --git a/packages/react-ui/src/components/AgentInterface/_shared/labelsContext.tsx b/packages/react-ui/src/components/AgentInterface/_shared/labelsContext.tsxindex 5e58817f3..0d01906e6 100644--- a/packages/react-ui/src/components/AgentInterface/_shared/labelsContext.tsx+++ b/packages/react-ui/src/components/AgentInterface/_shared/labelsContext.tsx@@ -19,7 +19,7 @@ export interface AgentInterfaceLabels {* `"Artifacts"`.*/defaultCategory?: string;- /** Tooltip on the workspace toggle button. Default `"Apps & Artifacts"`. */+ /** Title for the workspace rail and its toggle tooltip. Default `"Thread workspace"`. */workspaceToggle?: string;/** Labels for the workspace rail tabs. Defaults: `All` / `Artifacts` / `Apps`. */tabs?: WorkspaceTabLabels;@@ -34,7 +34,7 @@ export interface ResolvedLabels {const DEFAULT_LABELS: ResolvedLabels = {defaultCategory: "Artifacts",- workspaceToggle: "Apps & Artifacts",+ workspaceToggle: "Thread workspace",tabs: { all: "All", artifacts: "Artifacts", apps: "Apps" },};diff --git a/packages/react-ui/src/components/AgentInterface/agentInterface.scss b/packages/react-ui/src/components/AgentInterface/agentInterface.scssindex 998ecd27a..dcaba301e 100644--- a/packages/react-ui/src/components/AgentInterface/agentInterface.scss+++ b/packages/react-ui/src/components/AgentInterface/agentInterface.scss@@ -6,6 +6,7 @@@use "./resizableSeparator.scss";@use "./conversationStarter.scss";@use "./welcomeScreen.scss";+@use "./welcomeGlow.scss";@use "./components/desktopWelcomeComposer.scss";@use "./components/composer.scss";@use "./artifactBrowser.scss";@@ -33,7 +34,7 @@.openui-agent-sidebar-actions {display: flex;flex-direction: column;- gap: cssUtils.$space-xl;+ gap: cssUtils.$space-2xl;.openui-agent-container--mobile & {gap: 0;@@ -44,7 +45,7 @@.openui-agent-sidebar-artifact-nav {display: flex;flex-direction: column;- gap: cssUtils.$space-s-m;+ gap: cssUtils.$space-xs;.openui-agent-container--mobile & {gap: cssUtils.$space-xl;@@ -63,7 +64,7 @@width: 100%;display: flex;align-items: center;- gap: cssUtils.$space-xs;+ gap: cssUtils.$space-2xs;justify-content: flex-start;color: cssUtils.$text-neutral-primary;border-radius: calc(cssUtils.$radius-s + 1px);@@ -91,14 +92,11 @@align-items: center;justify-content: center;flex-shrink: 0;- border: 1px solid cssUtils.$border-default;border-radius: cssUtils.$radius-s;- background-color: cssUtils.$foreground;color: cssUtils.$text-neutral-primary;font-size: 16px;transition:background-color 90ms cubic-bezier(0.22, 1, 0.36, 1),- border-color 90ms cubic-bezier(0.22, 1, 0.36, 1),color 90ms cubic-bezier(0.22, 1, 0.36, 1),box-shadow 90ms cubic-bezier(0.22, 1, 0.36, 1);}@@ -137,6 +135,6 @@border: 1px solid cssUtils.$border-default;border-radius: cssUtils.$radius-m;background-color: cssUtils.$inverted-background;- color: cssUtils.$text-accent-primary;+ color: cssUtils.$foreground;box-shadow: cssUtils.$shadow-m;}diff --git a/packages/react-ui/src/components/AgentInterface/artifactBrowser.scss b/packages/react-ui/src/components/AgentInterface/artifactBrowser.scssindex e24d18e5d..6bf70940c 100644--- a/packages/react-ui/src/components/AgentInterface/artifactBrowser.scss+++ b/packages/react-ui/src/components/AgentInterface/artifactBrowser.scss@@ -30,7 +30,7 @@align-items: center;justify-content: space-between;gap: cssUtils.$space-xl;- padding: 72px cssUtils.$space-m cssUtils.$space-m;+ padding: 100px cssUtils.$space-s cssUtils.$space-2xl;background-color: cssUtils.$foreground;min-width: 0;@@ -120,7 +120,7 @@width: 100%;min-width: 0;max-width: 100%;- padding: cssUtils.$space-s;+ padding: cssUtils.$space-m;border: 0;border-radius: cssUtils.$radius-2xl;background-color: transparent;@@ -144,7 +144,7 @@align-items: center;justify-content: center;flex-shrink: 0;- width: 52px;+ width: 64px;height: 52px;border-radius: cssUtils.$radius-m;background-color: cssUtils.$highlight;@@ -189,7 +189,6 @@color: cssUtils.$text-neutral-secondary;}-.openui-agent-artifact-browser__loading,.openui-agent-artifact-browser__error {@include cssUtils.typography(body, default);@@ -197,6 +196,12 @@padding: cssUtils.$space-s 0;}+.openui-agent-artifact-browser__loading {+ display: flex;+ justify-content: center;+ padding: 120px 0;+}+.openui-agent-artifact-browser__empty {display: flex;flex-direction: column;@@ -279,9 +284,14 @@overflow-y: auto;}-.openui-agent-artifact-view__loading,.openui-agent-artifact-view__error {@include cssUtils.typography(body, default);color: cssUtils.$text-neutral-secondary;padding: cssUtils.$space-l;}++.openui-agent-artifact-view__loading {+ display: flex;+ justify-content: center;+ padding: cssUtils.$space-3xl 0;+}diff --git a/packages/react-ui/src/components/AgentInterface/components/composer.scss b/packages/react-ui/src/components/AgentInterface/components/composer.scssindex ea04348c6..c85d67c6b 100644--- a/packages/react-ui/src/components/AgentInterface/components/composer.scss+++ b/packages/react-ui/src/components/AgentInterface/components/composer.scss@@ -2,7 +2,7 @@$thread-content-inline-padding: cssUtils.$space-m-l;$thread-content-max-width: calc(- 880px + #{$thread-content-inline-padding} + #{$thread-content-inline-padding}+ 768px + #{$thread-content-inline-padding} + #{$thread-content-inline-padding});.openui-agent-thread-composer {diff --git a/packages/react-ui/src/components/AgentInterface/components/desktopWelcomeComposer.scss b/packages/react-ui/src/components/AgentInterface/components/desktopWelcomeComposer.scssindex cb615bb4c..ee1b37847 100644--- a/packages/react-ui/src/components/AgentInterface/components/desktopWelcomeComposer.scss+++ b/packages/react-ui/src/components/AgentInterface/components/desktopWelcomeComposer.scss@@ -3,7 +3,7 @@.openui-agent-desktop-welcome-composer {background-color: cssUtils.$foreground;border: 1px solid cssUtils.$border-interactive;- border-radius: cssUtils.$radius-2xl;+ border-radius: cssUtils.$radius-3xl;box-shadow: cssUtils.$shadow-s;overflow: clip;display: flex;@@ -11,7 +11,8 @@gap: cssUtils.$space-m;padding: cssUtils.$space-m;width: 100%;- max-width: 800px;+ max-width: 768px;+ min-height: calc(cssUtils.$space-3xl + cssUtils.$space-3xl + cssUtils.$space-m);&__input {scrollbar-width: thin;@@ -31,6 +32,7 @@}padding: 0 cssUtils.$space-3xs;+ flex: 1;resize: none;max-height: 200px;min-height: 24px;diff --git a/packages/react-ui/src/components/AgentInterface/conversationStarter.scss b/packages/react-ui/src/components/AgentInterface/conversationStarter.scssindex 915435ee8..5a711aff7 100644--- a/packages/react-ui/src/components/AgentInterface/conversationStarter.scss+++ b/packages/react-ui/src/components/AgentInterface/conversationStarter.scss@@ -26,7 +26,7 @@&--long {display: flex;flex-direction: column;- gap: cssUtils.$space-2xs;+ gap: 0;margin-bottom: cssUtils.$space-m;}@@ -34,6 +34,14 @@gap: cssUtils.$space-xs;}+ &__separator {+ width: 100%;+ height: 1px;+ margin: cssUtils.$space-2xs 0;+ background-color: cssUtils.$border-default;+ flex-shrink: 0;+ }+// Mobile adjustments.openui-agent-container--mobile & {padding: 0 cssUtils.$space-l;@@ -109,7 +117,7 @@cursor: pointer;transition: background-color 0.15s ease;@include cssUtils.typography(body, default);- color: cssUtils.$text-neutral-primary;+ color: cssUtils.$text-neutral-secondary;text-align: left;overflow: hidden;@@ -129,7 +137,7 @@justify-content: center;flex-shrink: 0;padding-top: cssUtils.$space-2xs;- color: cssUtils.$text-neutral-primary;+ color: cssUtils.$text-neutral-secondary;}// Text - allows wrapping for long content@@ -150,14 +158,17 @@padding-top: cssUtils.$space-2xs;opacity: 0;transition: opacity 0.15s ease;- color: cssUtils.$text-neutral-primary;+ color: cssUtils.$text-neutral-secondary;}// Hover state&:not(:disabled):hover {background-color: cssUtils.$sunk;+ color: cssUtils.$text-neutral-primary;+ .openui-agent-conversation-starter-item-long__icon,.openui-agent-conversation-starter-item-long__arrow {+ color: cssUtils.$text-neutral-primary;opacity: 1;}}diff --git a/packages/react-ui/src/components/AgentInterface/index.ts b/packages/react-ui/src/components/AgentInterface/index.tsindex c949461ac..73eab332a 100644--- a/packages/react-ui/src/components/AgentInterface/index.ts+++ b/packages/react-ui/src/components/AgentInterface/index.ts@@ -9,4 +9,5 @@ export type { ArtifactNavProps } from "./ArtifactNav";export type { RouteProps } from "./Route";export { SidebarItem } from "./SidebarItem";export type { SidebarItemProps } from "./SidebarItem";+export { WelcomeGlow } from "./WelcomeGlow";export type { WorkspaceProps } from "./Workspace";diff --git a/packages/react-ui/src/components/AgentInterface/sidebar.scss b/packages/react-ui/src/components/AgentInterface/sidebar.scssindex 86ea7715d..91da1d6c0 100644--- a/packages/react-ui/src/components/AgentInterface/sidebar.scss+++ b/packages/react-ui/src/components/AgentInterface/sidebar.scss@@ -2,7 +2,7 @@$sidebar-width: 272px;$sidebar-padding-y: cssUtils.$space-m-l;-$sidebar-padding-x: cssUtils.$space-s-m;+$sidebar-padding-x: cssUtils.$space-m;$sidebar-header-inline-offset: 0px;$sidebar-collapsed-control-size: 32px;$sidebar-logo-size: 30px;@@ -17,6 +17,7 @@ $sidebar-fade-duration: 90ms;$sidebar-resize-duration: 160ms;$sidebar-mobile-slide-duration: 400ms;$sidebar-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);+$sidebar-shadow: inset -10px 0 18px -18px cssUtils.$sunk-deep;.openui-agent-sidebar-container {border-right: 1px solid cssUtils.$border-default;@@ -27,12 +28,14 @@ $sidebar-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);flex-direction: column;gap: cssUtils.$space-2xl;background-color: cssUtils.$highlight-subtle;+ box-shadow: $sidebar-shadow;z-index: 999;transition:width $sidebar-resize-duration $sidebar-motion-ease,height $sidebar-resize-duration $sidebar-motion-ease,transform $sidebar-resize-duration $sidebar-motion-ease,- background-color $sidebar-resize-duration $sidebar-motion-ease;+ background-color $sidebar-resize-duration $sidebar-motion-ease,+ box-shadow $sidebar-resize-duration $sidebar-motion-ease;.openui-agent-container--mobile & {width: $sidebar-mobile-width;@@ -120,7 +123,11 @@ $sidebar-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);&__agent-name {@include cssUtils.typography(label, small);flex-grow: 1;+ min-width: 0;+ overflow: hidden;color: cssUtils.$text-neutral-primary;+ text-overflow: ellipsis;+ white-space: nowrap;transition: opacity $sidebar-fade-duration $sidebar-motion-ease;.openui-agent-sidebar-container--collapsed & {@@ -159,6 +166,8 @@ $sidebar-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);.openui-agent-sidebar-content {width: calc(#{$sidebar-width} - (#{$sidebar-padding-x} * 2));+ flex: 1;+ min-height: 0;.openui-agent-container--mobile & {width: 100%;diff --git a/packages/react-ui/src/components/AgentInterface/stories/AgentInterface.stories.tsx b/packages/react-ui/src/components/AgentInterface/stories/AgentInterface.stories.tsxindex 0d528be07..c15c630f9 100644--- a/packages/react-ui/src/components/AgentInterface/stories/AgentInterface.stories.tsx+++ b/packages/react-ui/src/components/AgentInterface/stories/AgentInterface.stories.tsx@@ -187,7 +187,16 @@ export const FullSidebarOverride = {/** Welcome screen with title, image, and inherited starters. */export const WithWelcome = {- render: () => (+ args: {+ glowAnimation: false,+ },+ argTypes: {+ glowAnimation: {+ control: "boolean",+ description: "Play the one-shot welcome entrance and composer glow animation.",+ },+ },+ render: ({ glowAnimation }: { glowAnimation: boolean }) => (<AgentInterfacestorage={emptyStorage}llm={echoLLM}@@ -200,6 +209,7 @@ export const WithWelcome = {title="OpenUI Assistant"description="Everything you'll need, in one place"image={{ url: logoUrl }}+ glowAnimation={glowAnimation}/></AgentInterface>),diff --git a/packages/react-ui/src/components/AgentInterface/thread.scss b/packages/react-ui/src/components/AgentInterface/thread.scssindex e00e04655..5c3c64cf3 100644--- a/packages/react-ui/src/components/AgentInterface/thread.scss+++ b/packages/react-ui/src/components/AgentInterface/thread.scss@@ -45,6 +45,7 @@flex-direction: column;overflow: hidden;height: 100%;+ width: 100%;min-width: 360px;flex-shrink: 0;position: relative;@@ -163,8 +164,9 @@ $thread-content-max-width: calc(width: 100%;height: 100%;overflow: auto;- padding: cssUtils.$space-m 0;+ padding: cssUtils.$space-m 0 calc($bottom-mask-height + cssUtils.$space-m);scroll-padding-top: calc($top-mask-height + cssUtils.$space-3xs);+ scroll-padding-bottom: calc($bottom-mask-height + cssUtils.$space-m);.openui-agent-thread-container:not(:has(.openui-agent-thread-header)):not(:has(.openui-agent-welcome-screen)@@ -199,7 +201,7 @@ $thread-content-max-width: calc(}.openui-agent-container--mobile & {- padding: cssUtils.$space-l 0;+ padding: cssUtils.$space-l 0 calc($bottom-mask-height + cssUtils.$space-l);}// When detailed view is active, reduce padding to maximize space@@ -413,11 +415,6 @@ $thread-header-action-min-height: 32px;.openui-agent-thread-message-loading {display: flex;- padding: 0 $center-align-spacing;-- .openui-agent-thread-container--detailed-view-active & {- padding: 0;- }}// =============================================================================diff --git a/packages/react-ui/src/components/AgentInterface/threadlist.scss b/packages/react-ui/src/components/AgentInterface/threadlist.scssindex c8308649d..f4ef47d82 100644--- a/packages/react-ui/src/components/AgentInterface/threadlist.scss+++ b/packages/react-ui/src/components/AgentInterface/threadlist.scss@@ -1,23 +1,90 @@@use "../../cssUtils" as cssUtils;+$thread-list-mask-height: cssUtils.$space-xl;++@keyframes openui-agent-thread-list-appear {+ from {+ opacity: 0;+ transform: translateY(2px);+ }++ to {+ opacity: 1;+ transform: translateY(0);+ }+}+.openui-agent-thread-list {display: flex;flex-direction: column;+ flex: 1;+ min-height: 0;gap: cssUtils.$space-2xs;overflow: auto;.openui-agent-container--mobile & {gap: cssUtils.$space-s;}++ &--mask-top#{&}--mask-bottom {+ mask-image: linear-gradient(+ to bottom,+ transparent,+ black $thread-list-mask-height,+ black calc(100% - #{$thread-list-mask-height}),+ transparent+ );+ -webkit-mask-image: linear-gradient(+ to bottom,+ transparent,+ black $thread-list-mask-height,+ black calc(100% - #{$thread-list-mask-height}),+ transparent+ );+ }++ &--mask-top:not(&--mask-bottom) {+ mask-image: linear-gradient(to bottom, transparent, black $thread-list-mask-height, black);+ -webkit-mask-image: linear-gradient(+ to bottom,+ transparent,+ black $thread-list-mask-height,+ black+ );+ }++ &--mask-bottom:not(&--mask-top) {+ mask-image: linear-gradient(to top, transparent, black $thread-list-mask-height, black);+ -webkit-mask-image: linear-gradient(to top, transparent, black $thread-list-mask-height, black);+ }+}++.openui-agent-thread-list-content {+ display: flex;+ flex-direction: column;+ gap: cssUtils.$space-2xs;+ animation: openui-agent-thread-list-appear 180ms ease-out both;++ .openui-agent-container--mobile & {+ gap: cssUtils.$space-s;+ }++ @media (prefers-reduced-motion: reduce) {+ animation: none;+ }}.openui-agent-thread-list-group {display: flex;- padding-left: cssUtils.$space-s-m;+ padding-left: cssUtils.$space-xs;padding-bottom: cssUtils.$space-xs;color: cssUtils.$text-neutral-tertiary;@include cssUtils.typography(label, small);+ &:not(:first-child) {+ padding-top: cssUtils.$space-xs;+ }+.openui-agent-container--mobile & {@include cssUtils.typography(label, default);@@ -25,7 +92,32 @@}}+.openui-agent-thread-list-skeleton {+ display: flex;+ flex-direction: column;+ gap: cssUtils.$space-2xs;+ width: 100%;++ &__group {+ padding: 0 0 cssUtils.$space-xs cssUtils.$space-xs;+ }++ &__row {+ width: 100%;+ padding: cssUtils.$space-xs;+ }++ .openui-agent-container--mobile & {+ gap: cssUtils.$space-s;++ &__row {+ padding: cssUtils.$space-s-m;+ }+ }+}+.openui-agent-thread-button {+ position: relative;display: flex;align-items: center;justify-content: space-between;@@ -40,11 +132,19 @@background-color: cssUtils.$highlight-subtle;}- &:hover {+ &:hover,+ &:focus-within,+ &--actions-open {background-color: cssUtils.$highlight-subtle;.openui-agent-thread-button-dropdown-trigger {opacity: 1;+ visibility: visible;+ pointer-events: auto;+ }++ .openui-agent-thread-button-title {+ padding-right: calc(24px + cssUtils.$space-s-m);}}@@ -61,7 +161,7 @@@include cssUtils.button-reset;@include cssUtils.typography(label, small);color: cssUtils.$text-neutral-primary;- padding: calc(cssUtils.$space-s - 0.75px) cssUtils.$space-s-m;+ padding: cssUtils.$space-xs;width: 100%;text-align: left;cursor: pointer;@@ -73,19 +173,29 @@@include cssUtils.typography(label, default);padding: cssUtils.$space-s-m;+ padding-right: calc(24px + cssUtils.$space-s-m);}}.openui-agent-thread-button-dropdown-trigger {- margin-right: cssUtils.$space-2xs;+ position: absolute;+ top: 50%;+ right: cssUtils.$space-2xs;+ transform: translateY(-50%);opacity: 0;+ visibility: hidden;+ pointer-events: none;.openui-agent-container--mobile & {opacity: 1;+ visibility: visible;+ pointer-events: auto;}&[data-state="open"] {opacity: 1;+ visibility: visible;+ pointer-events: auto;background-color: cssUtils.$highlight;border-color: cssUtils.$border-interactive;}diff --git a/packages/react-ui/src/components/AgentInterface/welcomeGlow.scss b/packages/react-ui/src/components/AgentInterface/welcomeGlow.scssnew file mode 100644index 000000000..0ded03a03--- /dev/null+++ b/packages/react-ui/src/components/AgentInterface/welcomeGlow.scss@@ -0,0 +1,231 @@+.openui-agent-welcome-screen--animated {+ --openui-agent-welcome-settle-delay: 80ms;++ .openui-agent-welcome-screen__header {+ animation: openui-agent-welcome-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1)+ var(--openui-agent-welcome-settle-delay) both;+ }++ .openui-agent-welcome-screen__desktop-composer {+ animation: openui-agent-welcome-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1)+ calc(var(--openui-agent-welcome-settle-delay) + 0.12s) both;+ }++ .openui-agent-welcome-screen__desktop-starters > * {+ animation: openui-agent-welcome-enter 0.3s cubic-bezier(0.22, 1, 0.36, 1)+ calc(var(--openui-agent-welcome-settle-delay) + 0.24s) both;+ }+}++.openui-agent-welcome-glow {+ position: relative;+ isolation: isolate;+ width: 100%;+ max-width: 768px;++ > .openui-agent-desktop-welcome-composer {+ position: relative;+ z-index: 1;+ }++ &::before,+ &::after,+ &__blob {+ position: absolute;+ z-index: 0;+ pointer-events: none;+ opacity: 0;+ }++ &::before {+ content: "";+ top: -180px;+ left: 50%;+ width: 620px;+ height: 210px;+ border-radius: 50%;+ background: radial-gradient(+ ellipse,+ color-mix(in oklch, var(--openui-interactive-accent-default) 38%, transparent) 0%,+ color-mix(in oklch, var(--openui-interactive-accent-default) 20%, transparent) 45%,+ transparent 75%+ );+ filter: blur(40px);+ animation: openui-agent-welcome-glow-drop 1.5s linear+ calc(var(--openui-agent-welcome-settle-delay) + 0.5s) 1 both;+ }++ &::after {+ content: "";+ inset: -2px;+ box-sizing: border-box;+ border: 8px solid color-mix(in oklch, var(--openui-interactive-accent-default) 90%, transparent);+ border-radius: 18px;+ background: transparent;+ filter: blur(8px);+ -webkit-mask-image: radial-gradient(closest-side, black 35%, transparent 100%);+ mask-image: radial-gradient(closest-side, black 35%, transparent 100%);+ -webkit-mask-repeat: no-repeat;+ mask-repeat: no-repeat;+ -webkit-mask-position: 50% -30px;+ mask-position: 50% -30px;+ animation: openui-agent-welcome-glow-halo 1.5s linear+ calc(var(--openui-agent-welcome-settle-delay) + 0.5s) 1 both;+ }++ &__blob {+ top: -150px;+ left: 50%;+ border-radius: 50%;+ animation: openui-agent-welcome-glow-blob-drop 1.5s linear 1 both;++ &--accent {+ --openui-agent-welcome-blob-x: -200px;+ --openui-agent-welcome-blob-peak: 0.2;++ width: 360px;+ height: 160px;+ background: radial-gradient(+ ellipse,+ color-mix(in oklch, var(--openui-interactive-accent-default) 42%, transparent) 0%,+ transparent 70%+ );+ filter: blur(30px);+ animation-delay: calc(var(--openui-agent-welcome-settle-delay) + 0.6s);+ }++ &--foreground {+ --openui-agent-welcome-blob-x: 90px;+ --openui-agent-welcome-blob-peak: 1;++ width: 240px;+ height: 110px;+ background: radial-gradient(+ ellipse,+ color-mix(in oklch, var(--openui-foreground) 100%, transparent) 0%,+ transparent 70%+ );+ filter: blur(24px);+ animation-delay: calc(var(--openui-agent-welcome-settle-delay) + 0.55s);+ }+ }+}++@keyframes openui-agent-welcome-enter {+ from {+ opacity: 0;+ transform: translateY(10px);+ }++ to {+ opacity: 1;+ transform: translateY(0);+ }+}++@keyframes openui-agent-welcome-glow-blob-drop {+ 0% {+ opacity: 0;+ transform: translate(calc(-50% + var(--openui-agent-welcome-blob-x) * 0.3), -220px) scale(0.8);+ animation-timing-function: cubic-bezier(0.45, 0, 0.65, 0.5);+ }++ 12% {+ opacity: calc(var(--openui-agent-welcome-blob-peak) * 0.3);+ }++ 30% {+ opacity: var(--openui-agent-welcome-blob-peak);+ transform: translate(calc(-50% + var(--openui-agent-welcome-blob-x)), 2px) scale(1);+ animation-timing-function: ease-in-out;+ }++ 52%,+ 100% {+ opacity: 0;+ transform: translate(calc(-50% + var(--openui-agent-welcome-blob-x) * 0.6), 44px)+ scale(0.85, 0.5);+ }+}++@keyframes openui-agent-welcome-glow-drop {+ 0% {+ opacity: 0;+ transform: translate(-50%, -240px) scale(0.8);+ animation-timing-function: cubic-bezier(0.45, 0, 0.65, 0.5);+ }++ 10% {+ opacity: 0.18;+ }++ 22% {+ opacity: 0.35;+ }++ 30% {+ opacity: 0.65;+ transform: translate(-50%, 4px) scale(1);+ animation-timing-function: ease-in-out;+ }++ 52%,+ 100% {+ opacity: 0;+ transform: translate(-50%, 52px) scale(0.9, 0.45);+ }+}++@keyframes openui-agent-welcome-glow-halo {+ 0%,+ 30% {+ opacity: 0;+ -webkit-mask-size: 480px 110px;+ mask-size: 480px 110px;+ }++ 38% {+ opacity: 0.85;+ -webkit-mask-size: 700px 150px;+ mask-size: 700px 150px;+ animation-timing-function: ease-out;+ }++ 48% {+ opacity: 0.85;+ -webkit-mask-size: 1400px 380px;+ mask-size: 1400px 380px;+ animation-timing-function: ease-out;+ }++ 62% {+ opacity: 0.75;+ -webkit-mask-size: 2200px 760px;+ mask-size: 2200px 760px;+ animation-timing-function: ease-in-out;+ }++ 100% {+ opacity: 0;+ -webkit-mask-size: 2500px 860px;+ mask-size: 2500px 860px;+ }+}++@media (prefers-reduced-motion: reduce) {+ .openui-agent-welcome-screen--animated {+ .openui-agent-welcome-screen__header,+ .openui-agent-welcome-screen__desktop-composer,+ .openui-agent-welcome-screen__desktop-starters > * {+ animation: none;+ }+ }++ .openui-agent-welcome-glow {+ &::before,+ &::after,+ &__blob {+ animation: none;+ }+ }+}diff --git a/packages/react-ui/src/components/AgentInterface/welcomeScreen.scss b/packages/react-ui/src/components/AgentInterface/welcomeScreen.scssindex 41a317340..5e93f0dd7 100644--- a/packages/react-ui/src/components/AgentInterface/welcomeScreen.scss+++ b/packages/react-ui/src/components/AgentInterface/welcomeScreen.scss@@ -30,8 +30,10 @@ $center-align-spacing: calc(32px + cssUtils.$space-s);&__header {display: flex;flex-direction: column;- align-items: center;+ align-items: flex-start;gap: cssUtils.$space-xl;+ width: 100%;+ max-width: 748px;}// Image container - minimal wrapper, styling handled by consumer@@ -54,14 +56,17 @@ $center-align-spacing: calc(32px + cssUtils.$space-s);&__content {display: flex;flex-direction: column;- align-items: center;+ align-items: flex-start;gap: cssUtils.$space-m;- text-align: center;+ width: 100%;+ max-width: 748px;+ text-align: left;}// Title/greeting text&__title {@include cssUtils.typography(heading, medium);+ width: 100%;color: cssUtils.$text-neutral-primary;margin: 0;font-weight: 500;@@ -79,7 +84,7 @@ $center-align-spacing: calc(32px + cssUtils.$space-s);&__composer-starters-container {display: flex;flex-direction: column;- gap: cssUtils.$space-l;+ gap: cssUtils.$space-2xl;width: 100%;}@@ -119,12 +124,16 @@ $center-align-spacing: calc(32px + cssUtils.$space-s);.openui-agent-conversation-starter--short {justify-content: center;}++ .openui-agent-conversation-starter--long {+ max-width: 770px;+ }}// When welcome screen has the desktop composer variant&--with-composer {// Adjust gap for desktop layout- gap: cssUtils.$space-2xl;+ gap: cssUtils.$space-3xl;// On mobile, use normal gap.openui-agent-container--mobile & {diff --git a/packages/react-ui/src/components/AgentInterface/workspaceSidebar.scss b/packages/react-ui/src/components/AgentInterface/workspaceSidebar.scssindex adab4993e..8ed507071 100644--- a/packages/react-ui/src/components/AgentInterface/workspaceSidebar.scss+++ b/packages/react-ui/src/components/AgentInterface/workspaceSidebar.scss@@ -55,6 +55,7 @@ $workspace-sidebar-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);display: flex;align-items: center;gap: cssUtils.$space-s;+ padding: cssUtils.$space-m cssUtils.$space-xs;flex-shrink: 0;opacity: 1;transition: opacity 160ms ease-out 220ms;@@ -65,6 +66,17 @@ $workspace-sidebar-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);}}+ &__title {+ @include cssUtils.typography(label, small);++ min-width: 0;+ margin: 0;+ overflow: hidden;+ color: cssUtils.$text-neutral-primary;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+&__tabs {position: relative;display: flex;diff --git a/packages/react-ui/src/components/Card/card.scss b/packages/react-ui/src/components/Card/card.scssindex fbf96d0fc..a30b32cdc 100644--- a/packages/react-ui/src/components/Card/card.scss+++ b/packages/react-ui/src/components/Card/card.scss@@ -10,10 +10,6 @@@include cssUtils.typography(body, default);&-card {- padding: cssUtils.$space-l;- border-radius: cssUtils.$radius-3xl;- border-color: cssUtils.$border-default;- background-color: cssUtils.$foreground;box-shadow: none;}diff --git a/packages/react-ui/src/components/DotMatrixLoader/DotMatrixLoader.tsx b/packages/react-ui/src/components/DotMatrixLoader/DotMatrixLoader.tsxnew file mode 100644index 000000000..667d4ec10--- /dev/null+++ b/packages/react-ui/src/components/DotMatrixLoader/DotMatrixLoader.tsx@@ -0,0 +1,129 @@+import clsx from "clsx";+import { useEffect, useRef, type CSSProperties } from "react";++/** Time for each trail to complete one revolution of its ring. */+const REVOLUTION_MS = 1400;+const MIN_OPACITY = 0.14;+/** Trail length as a fraction of the ring — same visual proportion on both rings. */+const TRAIL_LENGTH = 0.28;++const createClockwiseRing = (+ gridSize: number,+ inset: number,+): readonly (readonly [number, number])[] => {+ const start = inset;+ const end = gridSize - inset - 1;+ const ring: [number, number][] = [];++ for (let col = start; col <= end; col++) ring.push([start, col]);+ for (let row = start + 1; row <= end; row++) ring.push([row, end]);+ for (let col = end - 1; col >= start; col--) ring.push([end, col]);+ for (let row = end - 1; row > start; row--) ring.push([row, start]);++ return ring;+};++const RINGS = {+ 4: {+ outer: createClockwiseRing(4, 0),+ inner: createClockwiseRing(4, 1),+ },+ 5: {+ outer: createClockwiseRing(5, 0),+ inner: createClockwiseRing(5, 1),+ },+} as const;++/**+ * Dot-matrix loader with a 5×5 default grid and a 4×4 compact grid. Two comet+ * trails orbit in lockstep — one clockwise around the perimeter, one+ * counterclockwise around the inner ring.+ */+export type DotMatrixLoaderVariant = "default" | "compact";++export const DotMatrixLoader = ({+ className,+ size,+ variant = "default",+}: {+ className?: string;+ /** Overrides the variant's total width/height in px. */+ size?: number;+ variant?: DotMatrixLoaderVariant;+}) => {+ const dotsRef = useRef<Map<string, HTMLSpanElement>>(new Map());+ const isCompact = variant === "compact";+ const gridSize = isCompact ? 4 : 5;+ const rings = RINGS[gridSize];+ const resolvedSize = size ?? (isCompact ? 24 : 36);++ useEffect(() => {+ const dots = dotsRef.current;+ dots.forEach((dot) => {+ dot.style.opacity = String(MIN_OPACITY);+ });++ const paintRing = (ring: readonly (readonly [number, number])[], head: number) => {+ const tail = ring.length * TRAIL_LENGTH;+ for (let i = 0; i < ring.length; i++) {+ const cell = ring[i];+ const dot = cell && dots.get(`${cell[0]}-${cell[1]}`);+ if (!dot) continue;+ // Distance behind the head, wrapped around the ring.+ const distance = (head - i + ring.length) % ring.length;+ const trailIntensity = Math.exp(-distance / tail);+ // Fade the next dot in before the head crosses it. This removes the+ // full-opacity step at cell boundaries while preserving the trail.+ const forwardDistance = (i - head + ring.length) % ring.length;+ const leadProgress = forwardDistance < 1 ? 1 - forwardDistance : 0;+ const leadIntensity = leadProgress * leadProgress * (3 - 2 * leadProgress);+ const intensity = Math.max(trailIntensity, leadIntensity);+ dot.style.opacity = String(MIN_OPACITY + (1 - MIN_OPACITY) * intensity);+ }+ };++ let frame: number;+ const tick = (now: number) => {+ const progress = (now % REVOLUTION_MS) / REVOLUTION_MS;+ paintRing(rings.outer, progress * rings.outer.length);+ paintRing(rings.inner, (1 - progress) * rings.inner.length);+ frame = requestAnimationFrame(tick);+ };+ frame = requestAnimationFrame(tick);+ return () => cancelAnimationFrame(frame);+ }, [rings]);++ const dots = [];+ for (let row = 0; row < gridSize; row++) {+ for (let col = 0; col < gridSize; col++) {+ const key = `${row}-${col}`;+ dots.push(+ <span+ key={key}+ className="openui-dot-matrix-loader__dot"+ ref={(el) => {+ if (el) dotsRef.current.set(key, el);+ else dotsRef.current.delete(key);+ }}+ />,+ );+ }+ }++ return (+ <div+ className={clsx("openui-dot-matrix-loader", className)}+ role="status"+ aria-live="polite"+ aria-label="Loading"+ style={+ {+ "--openui-dot-matrix-loader-grid-size": gridSize,+ "--openui-dot-matrix-loader-size": `${resolvedSize}px`,+ } as CSSProperties+ }+ >+ {dots}+ </div>+ );+};diff --git a/packages/react-ui/src/components/DotMatrixLoader/dependencies.ts b/packages/react-ui/src/components/DotMatrixLoader/dependencies.tsnew file mode 100644index 000000000..1a743e01d--- /dev/null+++ b/packages/react-ui/src/components/DotMatrixLoader/dependencies.ts@@ -0,0 +1,2 @@+const dependencies = ["DotMatrixLoader"];+export default dependencies;diff --git a/packages/react-ui/src/components/DotMatrixLoader/dotMatrixLoader.scss b/packages/react-ui/src/components/DotMatrixLoader/dotMatrixLoader.scssnew file mode 100644index 000000000..fb8ac6d56--- /dev/null+++ b/packages/react-ui/src/components/DotMatrixLoader/dotMatrixLoader.scss@@ -0,0 +1,21 @@+@use "../../cssUtils" as cssUtils;++.openui-dot-matrix-loader {+ --openui-dot-matrix-loader-grid-size: 5;+ --openui-dot-matrix-loader-size: 36px;++ display: grid;+ grid-template-columns: repeat(var(--openui-dot-matrix-loader-grid-size), 1fr);+ width: var(--openui-dot-matrix-loader-size);+ height: var(--openui-dot-matrix-loader-size);+}++.openui-dot-matrix-loader__dot {+ justify-self: center;+ align-self: center;+ width: 68%;+ aspect-ratio: 1;+ border-radius: 50%;+ background-color: cssUtils.$text-neutral-secondary;+ opacity: 0.14;+}diff --git a/packages/react-ui/src/components/DotMatrixLoader/index.ts b/packages/react-ui/src/components/DotMatrixLoader/index.tsnew file mode 100644index 000000000..861fd4010--- /dev/null+++ b/packages/react-ui/src/components/DotMatrixLoader/index.ts@@ -0,0 +1 @@+export * from "./DotMatrixLoader";diff --git a/packages/react-ui/src/components/DotMatrixLoader/stories/DotMatrixLoader.stories.tsx b/packages/react-ui/src/components/DotMatrixLoader/stories/DotMatrixLoader.stories.tsxnew file mode 100644index 000000000..9bc31f2c4--- /dev/null+++ b/packages/react-ui/src/components/DotMatrixLoader/stories/DotMatrixLoader.stories.tsx@@ -0,0 +1,37 @@+import type { Meta, StoryObj } from "@storybook/react";+import { DotMatrixLoader } from "../DotMatrixLoader";++const meta: Meta<typeof DotMatrixLoader> = {+ title: "Components/DotMatrixLoader",+ component: DotMatrixLoader,+ parameters: {+ layout: "fullscreen",+ },+ decorators: [+ (Story) => (+ <div+ style={{+ display: "grid",+ placeItems: "center",+ width: "100vw",+ minHeight: "100vh",+ backgroundColor: "var(--openui-background)",+ }}+ >+ <Story />+ </div>+ ),+ ],+ tags: ["dev", "autodocs"],+};++export default meta;+type Story = StoryObj<typeof DotMatrixLoader>;++export const Default: Story = {};++export const Compact: Story = {+ args: {+ variant: "compact",+ },+};diff --git a/packages/react-ui/src/components/MessageLoading/MessageLoading.tsx b/packages/react-ui/src/components/MessageLoading/MessageLoading.tsxdeleted file mode 100644index 0f8bcf1af..000000000--- a/packages/react-ui/src/components/MessageLoading/MessageLoading.tsx+++ /dev/null@@ -1,14 +0,0 @@-import clsx from "clsx";--export const MessageLoading = ({ className }: { className?: string }) => {- return (- <div- className={clsx("openui-message-loading-container", className)}- role="status"- aria-live="polite"- aria-label="Loading message"- >- <div className="openui-message-loading" />- </div>- );-};diff --git a/packages/react-ui/src/components/MessageLoading/dependencies.ts b/packages/react-ui/src/components/MessageLoading/dependencies.tsdeleted file mode 100644index 5fad51e99..000000000--- a/packages/react-ui/src/components/MessageLoading/dependencies.ts+++ /dev/null@@ -1,2 +0,0 @@-const dependencies = ["MessageLoading"];-export default dependencies;diff --git a/packages/react-ui/src/components/MessageLoading/index.ts b/packages/react-ui/src/components/MessageLoading/index.tsdeleted file mode 100644index bfe31b54a..000000000--- a/packages/react-ui/src/components/MessageLoading/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./MessageLoading";diff --git a/packages/react-ui/src/components/MessageLoading/messageLoading.scss b/packages/react-ui/src/components/MessageLoading/messageLoading.scssdeleted file mode 100644index 066e70ea8..000000000--- a/packages/react-ui/src/components/MessageLoading/messageLoading.scss+++ /dev/null@@ -1,46 +0,0 @@-@use "../../cssUtils" as cssUtils;--@keyframes l7 {- 33% {- background-size:- calc(100% / 3) 0%,- calc(100% / 3) 100%,- calc(100% / 3) 100%;- }- 50% {- background-size:- calc(100% / 3) 100%,- calc(100% / 3) 0%,- calc(100% / 3) 100%;- }- 66% {- background-size:- calc(100% / 3) 100%,- calc(100% / 3) 100%,- calc(100% / 3) 0%;- }-}--.openui-message-loading-container {- border-radius: cssUtils.$space-xl;- border: 1px solid cssUtils.$border-default;- padding: cssUtils.$space-s;- height: 32px;- display: flex;- align-items: center;- width: fit-content;- box-sizing: border-box;-}--.openui-message-loading {- width: 24px;- aspect-ratio: 4;- --_g: no-repeat- radial-gradient(circle closest-side, #{cssUtils.$text-neutral-tertiary} 90%, transparent 90%);- background:- var(--_g) 0% 50%,- var(--_g) 50% 50%,- var(--_g) 100% 50%;- background-size: calc(100% / 3) 100%;- animation: l7 750ms infinite linear;-}diff --git a/packages/react-ui/src/components/MessageLoading/stories/MessageLoading.stories.tsx b/packages/react-ui/src/components/MessageLoading/stories/MessageLoading.stories.tsxdeleted file mode 100644index 828ce788f..000000000--- a/packages/react-ui/src/components/MessageLoading/stories/MessageLoading.stories.tsx+++ /dev/null@@ -1,37 +0,0 @@-import { Meta, StoryObj } from "@storybook/react";-import { MessageLoading } from "../MessageLoading";--const meta: Meta<typeof MessageLoading> = {- title: "Components/MessageLoading",- component: MessageLoading,- parameters: {- layout: "centered",- docs: {- description: {- component: "```tsx\nimport { MessageLoading } from '@openuidev/react-ui';\n```",- },- },- },- decorators: [- (Story) => (- <div style={{ width: "400px" }}>- <Story />- </div>- ),- ],- tags: ["!dev", "autodocs"],-};--export default meta;-type Story = StoryObj<typeof MessageLoading>;--export const Default: Story = {- render: () => <MessageLoading />,- parameters: {- docs: {- description: {- story: "A loading indicator that appears while a message is being processed.",- },- },- },-};diff --git a/packages/react-ui/src/components/OpenUIChat/assistantMessage.scss b/packages/react-ui/src/components/OpenUIChat/assistantMessage.scssindex ab5167590..b794db2cd 100644--- a/packages/react-ui/src/components/OpenUIChat/assistantMessage.scss+++ b/packages/react-ui/src/components/OpenUIChat/assistantMessage.scss@@ -8,27 +8,15 @@// components still emit them); the mobile / detailed-view ANCESTOR selectors were// retargeted from the deleted Shell's container to AgentInterface's// (`openui-agent-container--mobile`, `openui-agent-thread-container--detailed-view-active`).-$center-align-spacing: calc(32px + cssUtils.$space-s);-.openui-shell-thread-message-assistant {width: 100%;display: flex;gap: cssUtils.$space-s;- padding-right: $center-align-spacing;overflow: hidden;- &--without-logo {- padding-left: $center-align-spacing;- }-- .openui-agent-container--mobile & {- padding: 0;- }-// When detailed view is active, minimize spacing and hide logo.openui-agent-thread-container--detailed-view-active & {gap: 0;- padding-right: 0;}&__content {@@ -66,16 +54,7 @@ $center-align-spacing: calc(32px + cssUtils.$space-s);.openui-shell-thread-message-user {display: flex;justify-content: flex-end;- padding: 0 $center-align-spacing;-- .openui-agent-container--mobile & {- padding: 0;- }-- .openui-agent-thread-container--detailed-view-active & {- padding-left: 0;- padding-right: 0;- }+ padding: 0;&__content {@include cssUtils.typography(primary, default);diff --git a/packages/react-ui/src/components/Skeleton/skeleton.scss b/packages/react-ui/src/components/Skeleton/skeleton.scssindex 4d4f0cef6..306d0bbb2 100644--- a/packages/react-ui/src/components/Skeleton/skeleton.scss+++ b/packages/react-ui/src/components/Skeleton/skeleton.scss@@ -13,8 +13,8 @@}.openui-skeleton-bar {- background-color: cssUtils.$elevated-strong;- border-radius: cssUtils.$radius-xs;+ background-color: cssUtils.$elevated;+ border-radius: cssUtils.$radius-s;animation: openui-skeleton-pulse 1.2s ease-in-out infinite;}diff --git a/packages/react-ui/src/components/ThemeProvider/defaultTheme.ts b/packages/react-ui/src/components/ThemeProvider/defaultTheme.tsindex a9a71b936..2bcb155e8 100644--- a/packages/react-ui/src/components/ThemeProvider/defaultTheme.ts+++ b/packages/react-ui/src/components/ThemeProvider/defaultTheme.ts@@ -10,12 +10,12 @@ type ThemeSwatchSelectors = {const LIGHT_SWATCHES: ThemeSwatchSelectors = {neutralSwatch: "neutral",- brandSwatch: "neutral",+ brandSwatch: "blue",};const DARK_SWATCHES: ThemeSwatchSelectors = {neutralSwatch: "neutral",- brandSwatch: "neutral",+ brandSwatch: "blue",};const SEMANTIC_SWATCHES = {@@ -245,7 +245,7 @@ const createColorTheme = ({interactiveDestructiveAccentDisabled: withAlpha(swatch(dangerSwatch, 600), 0.4),// Chat- chatUserResponseBg: withAlpha(brandSolid, 0.08),+ chatUserResponseBg: withAlpha(overlayBase, 0.08),chatUserResponseText: neutralPrimary,// Borderdiff --git a/packages/react-ui/src/components/index.scss b/packages/react-ui/src/components/index.scssindex b66fcb0fa..976ed6b60 100644--- a/packages/react-ui/src/components/index.scss+++ b/packages/react-ui/src/components/index.scss@@ -6,6 +6,7 @@@use "../openui-defaults.scss";@forward "./Accordion/accordion.scss";+@forward "./AgentInterface/agentInterface.scss";@forward "./Button/button.scss";@forward "./Buttons/buttons.scss";@forward "./Calendar/calendar.scss";@@ -18,6 +19,7 @@@forward "./CheckBoxItem/checkBoxItem.scss";@forward "./CodeBlock/codeBlock.scss";@forward "./DatePicker/datePicker.scss";+@forward "./DotMatrixLoader/dotMatrixLoader.scss";@forward "./FollowUpBlock/followUpBlock.scss";@forward "./FollowUpItem/followUpItem.scss";@forward "./FormControl/formControl.scss";@@ -30,7 +32,6 @@@forward "./ListBlock/listBlock.scss";@forward "./ListItem/listItem.scss";@forward "./MarkDownRenderer/markDownRenderer.scss";-@forward "./MessageLoading/messageLoading.scss";@forward "./Modal/Modal.scss";@forward "./OpenUIChat/openUIChat.scss";@forward "./RadioGroup/radioGroup.scss";@@ -38,7 +39,6 @@@forward "./SectionBlock/sectionBlock.scss";@forward "./Select/select.scss";@forward "./Separator/separator.scss";-@forward "./AgentInterface/agentInterface.scss";@forward "./Skeleton/skeleton.scss";@forward "./Slider/slider.scss";@forward "./Steps/steps.scss";diff --git a/packages/react-ui/src/index.ts b/packages/react-ui/src/index.tsindex 39865721f..86d51f189 100644--- a/packages/react-ui/src/index.ts+++ b/packages/react-ui/src/index.ts@@ -82,7 +82,6 @@ export * from "./components/Label";export * from "./components/ListBlock";export * from "./components/ListItem";export * from "./components/MarkDownRenderer";-export * from "./components/MessageLoading";export * from "./components/OpenUIChat";export * from "./components/RadioGroup";export * from "./components/RadioItem";diff --git a/packages/react-ui/src/openui-defaults.scss b/packages/react-ui/src/openui-defaults.scssindex 4518afe93..a3941f892 100644--- a/packages/react-ui/src/openui-defaults.scss+++ b/packages/react-ui/src/openui-defaults.scss@@ -32,7 +32,7 @@--openui-text-neutral-secondary: oklch(0.097 0 0 / 0.5);--openui-text-neutral-tertiary: oklch(0.097 0 0 / 0.2);--openui-text-neutral-link: oklch(0.097 0 0 / 1);- --openui-text-brand: oklch(0.097 0 0 / 1);+ --openui-text-brand: oklch(0.546 0.215 262.881 / 1);--openui-text-white: oklch(1 0 89.876 / 1);--openui-text-black: oklch(0 0 0 / 1);--openui-text-accent-primary: oklch(0.994 0 89.876 / 1);@@ -57,10 +57,10 @@// Interactive Colors- --openui-interactive-accent-default: oklch(0.097 0 0 / 1);- --openui-interactive-accent-hover: oklch(0.097 0 0 / 0.8);- --openui-interactive-accent-disabled: oklch(0.097 0 0 / 0.4);- --openui-interactive-accent-pressed: oklch(0.097 0 0 / 1);+ --openui-interactive-accent-default: oklch(0.546 0.215 262.881 / 1);+ --openui-interactive-accent-hover: oklch(0.546 0.215 262.881 / 0.8);+ --openui-interactive-accent-disabled: oklch(0.546 0.215 262.881 / 0.4);+ --openui-interactive-accent-pressed: oklch(0.546 0.215 262.881 / 1);--openui-interactive-destructive-default: oklch(0.577 0.215 27.325 / 0.02);--openui-interactive-destructive-hover: oklch(0.577 0.215 27.325 / 0.08);--openui-interactive-destructive-disabled: oklch(0.577 0.215 27.325 / 0.02);@@ -81,8 +81,8 @@--openui-border-interactive: oklch(0.097 0 0 / 0.12);--openui-border-interactive-emphasis: oklch(0.097 0 0 / 0.3);--openui-border-interactive-selected: oklch(0.097 0 0 / 1);- --openui-border-accent: oklch(0.097 0 0 / 0.08);- --openui-border-accent-emphasis: oklch(0.097 0 0 / 0.3);+ --openui-border-accent: oklch(0.546 0.215 262.881 / 0.08);+ --openui-border-accent-emphasis: oklch(0.546 0.215 262.881 / 0.3);--openui-border-info: oklch(0.623 0.188 259.815 / 0.08);--openui-border-info-emphasis: oklch(0.546 0.215 262.881 / 1);--openui-border-alert: oklch(0.861 0.173 91.936 / 0.08);@@ -244,7 +244,6 @@@media (prefers-color-scheme: dark) {:root {-// Surface / Background Colors--openui-background: oklch(0.145 0 0 / 1);@@ -276,12 +275,12 @@--openui-text-neutral-secondary: oklch(0.985 0 89.876 / 0.5);--openui-text-neutral-tertiary: oklch(0.985 0 89.876 / 0.2);--openui-text-neutral-link: oklch(0.985 0 89.876 / 1);- --openui-text-brand: oklch(0.994 0 89.876 / 1);+ --openui-text-brand: oklch(0.546 0.215 262.881 / 1);--openui-text-white: oklch(1 0 89.876 / 1);--openui-text-black: oklch(0 0 0 / 1);- --openui-text-accent-primary: oklch(0.097 0 0 / 1);- --openui-text-accent-secondary: oklch(0.097 0 0 / 0.5);- --openui-text-accent-tertiary: oklch(0.097 0 0 / 0.2);+ --openui-text-accent-primary: oklch(0.994 0 89.876 / 1);+ --openui-text-accent-secondary: oklch(0.994 0 89.876 / 0.5);+ --openui-text-accent-tertiary: oklch(0.994 0 89.876 / 0.2);--openui-text-success-primary: oklch(0.871 0.136 154.449 / 1);--openui-text-success-inverted: oklch(0.962 0.043 156.743 / 1);--openui-text-alert-primary: oklch(0.905 0.166 98.111 / 1);@@ -301,10 +300,10 @@// Interactive Colors- --openui-interactive-accent-default: oklch(0.994 0 89.876 / 1);- --openui-interactive-accent-hover: oklch(0.994 0 89.876 / 0.8);- --openui-interactive-accent-disabled: oklch(0.994 0 89.876 / 0.4);- --openui-interactive-accent-pressed: oklch(0.994 0 89.876 / 1);+ --openui-interactive-accent-default: oklch(0.546 0.215 262.881 / 1);+ --openui-interactive-accent-hover: oklch(0.546 0.215 262.881 / 0.8);+ --openui-interactive-accent-disabled: oklch(0.546 0.215 262.881 / 0.4);+ --openui-interactive-accent-pressed: oklch(0.546 0.215 262.881 / 1);--openui-interactive-destructive-default: oklch(0.577 0.215 27.325 / 0.02);--openui-interactive-destructive-hover: oklch(0.577 0.215 27.325 / 0.08);--openui-interactive-destructive-disabled: oklch(0.577 0.215 27.325 / 0.02);@@ -325,8 +324,8 @@--openui-border-interactive: oklch(0.994 0 89.876 / 0.12);--openui-border-interactive-emphasis: oklch(0.994 0 89.876 / 0.4);--openui-border-interactive-selected: oklch(0.985 0 89.876 / 1);- --openui-border-accent: oklch(0.994 0 89.876 / 0.2);- --openui-border-accent-emphasis: oklch(0.994 0 89.876 / 0.4);+ --openui-border-accent: oklch(0.546 0.215 262.881 / 0.2);+ --openui-border-accent-emphasis: oklch(0.546 0.215 262.881 / 0.4);--openui-border-info: oklch(0.623 0.188 259.815 / 0.08);--openui-border-info-emphasis: oklch(0.546 0.215 262.881 / 1);--openui-border-alert: oklch(0.861 0.173 91.936 / 0.08);@@ -478,11 +477,12 @@// Shadows--openui-shadow-0: none;- --openui-shadow-s: 0 1px 3px -2px oklch(0 0 0 / 0.06), 0 2px 5px -2px oklch(0 0 0 / 0.10);+ --openui-shadow-s: 0 1px 3px -2px oklch(0 0 0 / 0.06), 0 2px 5px -2px oklch(0 0 0 / 0.1);--openui-shadow-m: 0 4px 6px -2px oklch(0 0 0 / 0.08), 0 2px 2px -2px oklch(0 0 0 / 0.12);- --openui-shadow-l: 0 4px 4px -2px oklch(0 0 0 / 0.12), 0 4px 8px -2px oklch(0 0 0 / 0.10);- --openui-shadow-xl: 0 8px 16px -4px oklch(0 0 0 / 0.16), 0 16px 32px -6px oklch(0 0 0 / 0.20);- --openui-shadow-2xl: 0 12px 24px -6px oklch(0 0 0 / 0.20), 0 24px 48px -8px oklch(0 0 0 / 0.24);- --openui-shadow-3xl: 0 16px 32px -8px oklch(0 0 0 / 0.24), 0 32px 64px -12px oklch(0 0 0 / 0.28);+ --openui-shadow-l: 0 4px 4px -2px oklch(0 0 0 / 0.12), 0 4px 8px -2px oklch(0 0 0 / 0.1);+ --openui-shadow-xl: 0 8px 16px -4px oklch(0 0 0 / 0.16), 0 16px 32px -6px oklch(0 0 0 / 0.2);+ --openui-shadow-2xl: 0 12px 24px -6px oklch(0 0 0 / 0.2), 0 24px 48px -8px oklch(0 0 0 / 0.24);+ --openui-shadow-3xl:+ 0 16px 32px -8px oklch(0 0 0 / 0.24), 0 32px 64px -12px oklch(0 0 0 / 0.28);}}