An open source design system that's fully customizable and agent ready
TypeScript
Use custom images for Foundations and Library cards with overlaid icons (#1723)
rubyycheungfa0bc27b2cdd
diff --git a/apps/sandbox/public/docsite/LibrariesChat.png b/apps/sandbox/public/docsite/LibrariesChat.pngnew file mode 100644index 0000000000..a1e46ec09cBinary files /dev/null and b/apps/sandbox/public/docsite/LibrariesChat.png differdiff --git a/apps/sandbox/public/docsite/LibrariesCli.png b/apps/sandbox/public/docsite/LibrariesCli.pngnew file mode 100644index 0000000000..618367cdd7Binary files /dev/null and b/apps/sandbox/public/docsite/LibrariesCli.png differdiff --git a/apps/sandbox/public/docsite/LibrariesCore.png b/apps/sandbox/public/docsite/LibrariesCore.pngnew file mode 100644index 0000000000..e0d9186293Binary files /dev/null and b/apps/sandbox/public/docsite/LibrariesCore.png differdiff --git a/apps/sandbox/public/docsite/LibrariesVega.png b/apps/sandbox/public/docsite/LibrariesVega.pngnew file mode 100644index 0000000000..aa3368aab0Binary files /dev/null and b/apps/sandbox/public/docsite/LibrariesVega.png differdiff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsxindex 261e04bb18..956f338750 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx@@ -124,6 +124,7 @@ const LIBRARY_PACKAGES: {version?: string;status: 'Stable' | 'Published' | 'Experimental' | 'Coming Soon';iconType: 'core' | 'charts' | 'chat' | 'cli';+ image: string;}[] = [{key: 'pkg-core',@@ -133,6 +134,7 @@ const LIBRARY_PACKAGES: {version: '0.0.12',status: 'Stable',iconType: 'core',+ image: `${basePath}/docsite/LibrariesCore.png`,},{key: 'pkg-vega',@@ -141,6 +143,7 @@ const LIBRARY_PACKAGES: {'Chart and data visualization components. Bar, line, area, pie, and more — built for dashboards and analytics.',status: 'Coming Soon',iconType: 'charts',+ image: `${basePath}/docsite/LibrariesVega.png`,},{key: 'pkg-chat',@@ -149,6 +152,7 @@ const LIBRARY_PACKAGES: {'Conversational UI components for AI assistants, messaging, and chat interfaces with thread support.',status: 'Stable',iconType: 'chat',+ image: `${basePath}/docsite/LibrariesChat.png`,},{key: 'pkg-cli',@@ -158,6 +162,7 @@ const LIBRARY_PACKAGES: {version: '0.0.12',status: 'Stable',iconType: 'cli',+ image: `${basePath}/docsite/LibrariesCli.png`,},];@@ -1519,8 +1524,9 @@ function LibraryOverview({<divstyle={{aspectRatio: '16 / 9',- backgroundColor:- 'var(--color-background-accent-muted, #DBEAFE)',+ backgroundImage: `url(${pkg.image})`,+ backgroundSize: 'cover',+ backgroundPosition: 'center',borderRadius: 12,display: 'flex',alignItems: 'center',@@ -1528,7 +1534,7 @@ function LibraryOverview({position: 'relative',marginBottom: 12,}}>- <XDSIcon icon={IconComp} size="lg" color="accent" />+ <XDSIcon icon={IconComp} size="lg" style={{width: 48, height: 48, color: '#484233', strokeWidth: 1.8}} />{pkg.status === 'Coming Soon' && (<div style={{position: 'absolute', top: 12, right: 12}}><XDSBadge label="Coming Soon" variant="info" />