Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

chore: remove meta/whatsapp themes, fix daily theme, add matcha (#1880)

Cindy Zhang26fba465b384
diff --git a/apps/sandbox/package.json b/apps/sandbox/package.json
index 0dfaad4574..dcbc9b683c 100644
--- a/apps/sandbox/package.json
+++ b/apps/sandbox/package.json
@@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"scripts": {
- "build:deps": "yarn workspace @xds/theme-default build && yarn workspace @xds/theme-neutral build && yarn workspace @xds/theme-brutalist build && yarn workspace @xds/theme-meta build && yarn workspace @xds/theme-whatsapp build && yarn workspace @xds/theme-daily build",
+ "build:deps": "yarn workspace @xds/theme-default build && yarn workspace @xds/theme-neutral build && yarn workspace @xds/theme-brutalist build && yarn workspace @xds/theme-matcha build && yarn workspace @xds/theme-daily build",
"generate:versions": "node scripts/generate-versions.js",
"generate:changelog": "node scripts/generate-changelog.js",
"generate:cli": "node scripts/generate-cli-registry.mjs",
@@ -23,8 +23,7 @@
"@xds/theme-default": "*",
"@xds/theme-neutral": "*",
"@xds/theme-brutalist": "*",
- "@xds/theme-meta": "*",
- "@xds/theme-whatsapp": "*",
+ "@xds/theme-matcha": "*",
"@xds/theme-daily": "*",
"next": "^15.5.15",
"react": "^19.2.5",
diff --git a/apps/sandbox/scripts/generate-changelog.js b/apps/sandbox/scripts/generate-changelog.js
index 6362bbfd6f..027c022807 100644
--- a/apps/sandbox/scripts/generate-changelog.js
+++ b/apps/sandbox/scripts/generate-changelog.js
@@ -20,7 +20,8 @@ const CHANGELOG_SOURCES = [
{pkg: '@xds/theme-default', file: 'packages/themes/default/CHANGELOG.md'},
{pkg: '@xds/theme-neutral', file: 'packages/themes/neutral/CHANGELOG.md'},
{pkg: '@xds/theme-brutalist', file: 'packages/themes/brutalist/CHANGELOG.md'},
- {pkg: '@xds/theme-whatsapp', file: 'packages/themes/whatsapp/CHANGELOG.md'},
+ {pkg: '@xds/theme-matcha', file: 'packages/themes/matcha/CHANGELOG.md'},
+ {pkg: '@xds/theme-daily', file: 'packages/themes/daily/CHANGELOG.md'},
];
const DEPRECATED_SCAN_DIRS = [
diff --git a/apps/sandbox/src/app/(fullscreen)/PreviewShell.tsx b/apps/sandbox/src/app/(fullscreen)/PreviewShell.tsx
index 38e484d85a..569868b907 100644
--- a/apps/sandbox/src/app/(fullscreen)/PreviewShell.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/PreviewShell.tsx
@@ -856,8 +856,7 @@ export function PreviewShell({children}: {children: React.ReactNode}) {
{label: 'Default', onClick: () => setThemeName('default')},
{label: 'Neutral', onClick: () => setThemeName('neutral')},
{label: 'Brutalist', onClick: () => setThemeName('brutalist')},
- {label: 'Meta', onClick: () => setThemeName('meta')},
- {label: 'WhatsApp', onClick: () => setThemeName('whatsapp')},
+ {label: 'Matcha', onClick: () => setThemeName('matcha')},
{label: 'Daily', onClick: () => setThemeName('daily')},
]}
/>
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx
index c32c2e1027..78d6856613 100644
--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx
@@ -36,7 +36,6 @@ import {
ChartsIcon,
DownloadIcon,
SendIcon,
- MetaLogo,
ChevronDownIcon,
} from './docsite-icons';
import {XDSBadge} from '@xds/core/Badge';
@@ -73,8 +72,8 @@ import type {XDSDefinedTheme} from '@xds/core/theme';
import {defaultTheme} from '@xds/theme-default/built';
import {neutralTheme} from '@xds/theme-neutral/built';
import {brutalistTheme} from '@xds/theme-brutalist/built';
-import {metaTheme} from '@xds/theme-meta/built';
-import {whatsappTheme} from '@xds/theme-whatsapp/built';
+import {matchaTheme} from '@xds/theme-matcha/built';
+import {dailyTheme} from '@xds/theme-daily/built';
import {XDSNumberInput} from '@xds/core/NumberInput';
import {XDSSelector} from '@xds/core/Selector';
import {defaultIconRegistry} from '@xds/theme-default';
@@ -1121,18 +1120,18 @@ const TYPO_THEME_OPTIONS: {
fonts: {body: 'Courier New', heading: 'Courier New', code: 'Courier New'},
},
{
- key: 'meta',
- label: 'Meta',
- theme: metaTheme,
- desc: 'Figtree · base 14px',
+ key: 'matcha',
+ label: 'Matcha',
+ theme: matchaTheme,
+ desc: 'Figtree · earthy greens · serif headings',
fonts: {body: 'Figtree', heading: 'Figtree', code: 'SF Mono'},
},
{
- key: 'whatsapp',
- label: 'WhatsApp',
- theme: whatsappTheme,
- desc: 'System fonts · rounded accent',
- fonts: {body: 'System', heading: 'System', code: 'SF Mono'},
+ key: 'daily',
+ label: 'Daily',
+ theme: dailyTheme,
+ desc: 'Figtree · warm neutrals · Lucide icons',
+ fonts: {body: 'Figtree', heading: 'Figtree', code: 'SF Mono'},
},
];
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/TemplatePreviewModal.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/TemplatePreviewModal.tsx
index 4b8199e3be..6a2121c935 100644
--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/TemplatePreviewModal.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/TemplatePreviewModal.tsx
@@ -25,8 +25,6 @@ import {
StarIcon,
StarFilledIcon,
SearchIcon,
- MetaLogo,
- WhatsAppLogo,
ThreadsLogo,
FacebookLogo,
DefaultThemeIcon,
@@ -40,8 +38,6 @@ const BRAND_LOGOS: Record<
React.ComponentType<React.SVGProps<SVGSVGElement>>
> = {
default: DefaultThemeIcon,
- meta: MetaLogo,
- whatsapp: WhatsAppLogo,
threads: ThreadsLogo,
facebook: FacebookLogo,
forest: ForestThemeIcon,
@@ -129,8 +125,6 @@ export function TemplatePreviewModal({
const themeFilters: Record<string, string> = {
neutral: 'saturate(0.3)',
brutalist: 'contrast(1.2) saturate(0.5)',
- meta: 'sepia(0.15) saturate(1.4) hue-rotate(200deg)',
- whatsapp: 'sepia(0.2) saturate(1.3) hue-rotate(100deg)',
threads: 'saturate(0.8) contrast(1.1)',
facebook: 'sepia(0.1) saturate(1.3) hue-rotate(190deg)',
matcha: 'sepia(0.2) saturate(1.2) hue-rotate(80deg)',
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/constants.ts b/apps/sandbox/src/app/(fullscreen)/pages/docsite/constants.ts
index 03ac029691..44db904cae 100644
--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/constants.ts
+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/constants.ts
@@ -328,9 +328,9 @@ export const PROFILE_USED_ITEMS: {
img: FIRST_CARD_IMAGE,
},
{
- name: 'Meta Theme',
+ name: 'Matcha Theme',
type: 'Theme',
- description: 'Meta brand colors with Figtree typography and blue accents.',
+ description: 'Earthy greens and warm browns with serif typography.',
lastUsed: '2026-04-14T08:00:00Z',
usageCount: 9,
img: SHOPPING_DETAILS_IMAGE,
@@ -397,10 +397,10 @@ export const PROFILE_USED_ITEMS: {
img: DUMMY_IMAGE,
},
{
- name: 'WhatsApp Theme',
+ name: 'Daily Theme',
type: 'Theme',
description:
- 'WhatsApp brand greens and warm grays with rounded components.',
+ 'Soft blues and warm neutrals for everyday tools.',
lastUsed: '2026-04-09T10:00:00Z',
usageCount: 2,
img: DUMMY_IMAGE,
@@ -424,10 +424,10 @@ export const PROFILE_LIKED_ITEMS: {
author: string;
}[] = [
{
- name: 'Meta Theme',
+ name: 'Matcha Theme',
type: 'Theme',
bookmarkedAt: '2026-04-13T08:00:00Z',
- description: 'Meta brand colors with Figtree typography.',
+ description: 'Earthy greens and warm browns with serif typography.',
img: FIRST_CARD_IMAGE,
author: 'XDS Design',
},
@@ -486,7 +486,7 @@ export const PROFILE_COLLECTIONS: {
color: '#3B82F6',
items: [
'Admin Dashboard',
- 'Meta Theme',
+ 'Matcha Theme',
'Toast Notification',
'Kanban Board',
],
@@ -496,7 +496,7 @@ export const PROFILE_COLLECTIONS: {
count: 6,
color: '#8B5CF6',
items: [
- 'Meta Theme',
+ 'Matcha Theme',
'Brutalist Theme',
'Admin Dashboard',
'Product Detail',
@@ -516,7 +516,7 @@ export const PROFILE_COLLECTIONS: {
color: '#10B981',
items: [
'Admin Dashboard',
- 'Meta Theme',
+ 'Matcha Theme',
'Brutalist Theme',
'Product Detail',
'Kanban Board',
@@ -527,13 +527,13 @@ export const PROFILE_COLLECTIONS: {
count: 8,
color: '#EF4444',
items: [
- 'Meta Theme',
+ 'Matcha Theme',
'Brutalist Theme',
'Admin Dashboard',
'Product Detail',
'Toast Notification',
'Kanban Board',
- 'Meta Theme',
+ 'Matcha Theme',
'Brutalist Theme',
],
},
@@ -775,37 +775,6 @@ export const THEME_PICKER_ENTRIES: ThemePickerEntry[] = [
font: 'system-ui, sans-serif',
},
},
- {
- key: 'meta',
- name: 'Meta',
- category: 'official',
- accent: '#0064E0',
- isPinnedByDefault: true,
- description: 'Meta brand with Figtree typography',
- preview: {
- bg: '#FFFFFF',
- surface: '#F2F4F6',
- accent: '#0064E0',
- text: '#111112',
- radius: 10,
- font: 'Figtree, sans-serif',
- },
- },
- {
- key: 'whatsapp',
- name: 'WhatsApp',
- category: 'official',
- accent: '#1DAA61',
- description: 'WhatsApp brand greens and warm grays',
- preview: {
- bg: '#FFFFFF',
- surface: '#F7F5F3',
- accent: '#1DAA61',
- text: '#111B21',
- radius: 12,
- font: 'Helvetica Neue, sans-serif',
- },
- },
{
key: 'threads',
name: 'Threads',
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/docsite-icons.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/docsite-icons.tsx
index fd7058c81a..8c420541b2 100644
--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/docsite-icons.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/docsite-icons.tsx
@@ -51,82 +51,6 @@ export {
// Brand logos for theme picker
-export function MetaLogo(props: React.SVGProps<SVGSVGElement>) {
- const id = React.useId();
- const g1 = `meta-g1-${id}`;
- const g2 = `meta-g2-${id}`;
- return (
- <svg viewBox="0 0 290 191" fill="none" {...props}>
- <defs>
- <linearGradient
- id={g1}
- x1="61"
- y1="117"
- x2="259"
- y2="127"
- gradientUnits="userSpaceOnUse">
- <stop offset="0" stopColor="#0064e1" />
- <stop offset="0.4" stopColor="#0064e1" />
- <stop offset="0.83" stopColor="#0073ee" />
- <stop offset="1" stopColor="#0082fb" />
- </linearGradient>
- <linearGradient
- id={g2}
- x1="45"
- y1="139"
- x2="45"
- y2="66"
- gradientUnits="userSpaceOnUse">
- <stop offset="0" stopColor="#0082fb" />
- <stop offset="1" stopColor="#0064e0" />
- </linearGradient>
- </defs>
- <path
- fill="#0081fb"
- d="m31.06,125.96c0,10.98 2.41,19.41 5.56,24.51 4.13,6.68 10.29,9.51 16.57,9.51 8.1,0 15.51-2.01 29.79-21.76 11.44-15.83 24.92-38.05 33.99-51.98l15.36-23.6c10.67-16.39 23.02-34.61 37.18-46.96 11.56-10.08 24.03-15.68 36.58-15.68 21.07,0 41.14,12.21 56.5,35.11 16.81,25.08 24.97,56.67 24.97,89.27 0,19.38-3.82,33.62-10.32,44.87-6.28,10.88-18.52,21.75-39.11,21.75l0-31.02c17.63,0 22.03-16.2 22.03-34.74 0-26.42-6.16-55.74-19.73-76.69-9.63-14.86-22.11-23.94-35.84-23.94-14.85,0-26.8,11.2-40.23,31.17-7.14,10.61-14.47,23.54-22.7,38.13l-9.06,16.05c-18.2,32.27-22.81,39.62-31.91,51.75-15.95,21.24-29.57,29.29-47.5,29.29-21.27,0-34.72-9.21-43.05-23.09-6.8-11.31-10.14-26.15-10.14-43.06z"
- />
- <path
- fill={`url(#${g1})`}
- d="m24.49,37.3c14.24-21.95 34.79-37.3 58.36-37.3 13.65,0 27.22,4.04 41.39,15.61 15.5,12.65 32.02,33.48 52.63,67.81l7.39,12.32c17.84,29.72 27.99,45.01 33.93,52.22 7.64,9.26 12.99,12.02 19.94,12.02 17.63,0 22.03-16.2 22.03-34.74l27.4-.86c0,19.38-3.82,33.62-10.32,44.87-6.28,10.88-18.52,21.75-39.11,21.75-12.8,0-24.14-2.78-36.68-14.61-9.64-9.08-20.91-25.21-29.58-39.71l-25.79-43.08c-12.94-21.62-24.81-37.74-31.68-45.04-7.39-7.85-16.89-17.33-32.05-17.33-12.27,0-22.69,8.61-31.41,21.78z"
- />
- <path
- fill={`url(#${g2})`}
- d="m82.35,31.23c-12.27,0-22.69,8.61-31.41,21.78-12.33,18.61-19.88,46.33-19.88,72.95 0,10.98 2.41,19.41 5.56,24.51l-26.48,17.44c-6.8-11.31-10.14-26.15-10.14-43.06 0-30.75 8.44-62.8 24.49-87.55 14.24-21.95 34.79-37.3 58.36-37.3z"
- />
- </svg>
- );
-}
-
-export function WhatsAppLogo(props: React.SVGProps<SVGSVGElement>) {
- const id = React.useId();
- const gId = `wa-g-${id}`;
- return (
- <svg viewBox="0 0 175.216 175.552" fill="none" {...props}>
- <defs>
- <linearGradient
- id={gId}
- x1="85.915"
- y1="32.567"
- x2="86.535"
- y2="137.092"
- gradientUnits="userSpaceOnUse">
- <stop offset="0" stopColor="#57d163" />
- <stop offset="1" stopColor="#23b33a" />
- </linearGradient>
- </defs>
- <path
- fill={`url(#${gId})`}
- d="M87.184 25.227c-33.733 0-61.166 27.423-61.178 61.13a60.98 60.98 0 009.349 32.535l1.455 2.313-6.179 22.558 23.146-6.069 2.235 1.324c9.387 5.571 20.15 8.517 31.126 8.523h.023c33.707 0 61.14-27.426 61.153-61.135a60.75 60.75 0 00-17.895-43.251 60.75 60.75 0 00-43.235-17.928z"
- />
- <path
- fill="#fff"
- fillRule="evenodd"
- d="M68.772 55.603c-1.378-3.061-2.828-3.123-4.137-3.176l-3.524-.043c-1.226 0-3.218.46-4.902 2.3s-6.435 6.287-6.435 15.332 6.588 17.785 7.506 19.013 12.718 20.381 31.405 27.75c15.529 6.124 18.689 4.906 22.061 4.6s10.877-4.447 12.408-8.74 1.532-7.971 1.073-8.74-1.685-1.226-3.525-2.146-10.877-5.367-12.562-5.981-2.91-.919-4.137.921-4.746 5.979-5.819 7.206-2.144 1.381-3.984.462-7.76-2.861-14.784-9.124c-5.465-4.873-9.154-10.891-10.228-12.73s-.114-2.835.808-3.751c.825-.824 1.838-2.147 2.759-3.22s1.224-1.84 1.836-3.065.307-2.301-.153-3.22-4.032-10.011-5.666-13.647"
- />
- </svg>
- );
-}
-
export const PinIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg
viewBox="0 0 24 24"
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx
index 1b273042e9..6a5a7c5cb6 100644
--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx
@@ -400,8 +400,8 @@ function DocsiteLandingTemplate() {
const themeFilters: Record<string, string> = {
neutral: 'saturate(0.3)',
brutalist: 'contrast(1.2) saturate(0.5)',
- meta: 'sepia(0.15) saturate(1.4) hue-rotate(200deg)',
- whatsapp: 'sepia(0.2) saturate(1.3) hue-rotate(100deg)',
+ matcha: 'sepia(0.2) saturate(1.2) hue-rotate(80deg)',
+ daily: 'sepia(0.1) saturate(1.1) hue-rotate(10deg)',
};
if (themeFilters[previewTheme]) {
filters.push(themeFilters[previewTheme]);
@@ -1360,12 +1360,12 @@ function DocsiteLandingTemplate() {
onClick: () => setPreviewTheme('brutalist'),
},
{
- label: 'Meta',
- onClick: () => setPreviewTheme('meta'),
+ label: 'Matcha',
+ onClick: () => setPreviewTheme('matcha'),
},
{
- label: 'WhatsApp',
- onClick: () => setPreviewTheme('whatsapp'),
+ label: 'Daily',
+ onClick: () => setPreviewTheme('daily'),
},
]}
/>
@@ -2069,7 +2069,7 @@ function DocsiteLandingTemplate() {
key: 'preview',
themeImages: {
default: `${basePath}/docsite/card4-preview-default.png`,
- meta: `${basePath}/docsite/card4-preview-meta.png`,
+ matcha: `${basePath}/docsite/card4-preview-meta.png`,
daily: `${basePath}/docsite/card4-preview-daily.png`,
threads: `${basePath}/docsite/card4-preview-daily.png`,
},
@@ -2080,7 +2080,7 @@ function DocsiteLandingTemplate() {
key: 'hero',
themeImages: {
default: `${basePath}/docsite/card4-hero-default.png`,
- meta: `${basePath}/docsite/card4-hero-meta.png`,
+ matcha: `${basePath}/docsite/card4-hero-meta.png`,
daily: `${basePath}/docsite/card4-hero-daily.png`,
threads: `${basePath}/docsite/card4-hero-daily.png`,
},
@@ -2091,7 +2091,7 @@ function DocsiteLandingTemplate() {
key: 'split',
themeImages: {
default: `${basePath}/docsite/card4-split-default.png`,
- meta: `${basePath}/docsite/card4-split-meta.png`,
+ matcha: `${basePath}/docsite/card4-split-meta.png`,
daily: `${basePath}/docsite/card4-split-daily.png`,
threads: `${basePath}/docsite/card4-split-daily.png`,
},
@@ -2102,7 +2102,7 @@ function DocsiteLandingTemplate() {
key: 'grid',
themeImages: {
default: `${basePath}/docsite/card4-grid-default.png`,
- meta: `${basePath}/docsite/card4-grid-meta.png`,
+ matcha: `${basePath}/docsite/card4-grid-meta.png`,
daily: `${basePath}/docsite/card4-grid-daily.png`,
threads: `${basePath}/docsite/card4-grid-daily.png`,
},
@@ -2113,7 +2113,7 @@ function DocsiteLandingTemplate() {
key: 'carousel',
themeImages: {
default: `${basePath}/docsite/card4-carousel-default.png`,
- meta: `${basePath}/docsite/card4-carousel-meta.png`,
+ matcha: `${basePath}/docsite/card4-carousel-meta.png`,
daily: `${basePath}/docsite/card4-carousel-daily.png`,
threads: `${basePath}/docsite/card4-carousel-daily.png`,
},
@@ -2552,8 +2552,8 @@ function DocsiteLandingTemplate() {
label: 'Brutalist',
onClick: () => setPreviewTheme('brutalist'),
},
- {label: 'Meta', onClick: () => setPreviewTheme('meta')},
- {label: 'WhatsApp', onClick: () => setPreviewTheme('whatsapp')},
+ {label: 'Matcha', onClick: () => setPreviewTheme('matcha')},
+ {label: 'Daily', onClick: () => setPreviewTheme('daily')},
]}
/>
</XDSStack>
diff --git a/apps/sandbox/src/app/SandboxNav.tsx b/apps/sandbox/src/app/SandboxNav.tsx
index 2a05af87fc..d1ae55cb10 100644
--- a/apps/sandbox/src/app/SandboxNav.tsx
+++ b/apps/sandbox/src/app/SandboxNav.tsx
@@ -55,8 +55,7 @@ function SandboxHeader() {
{label: 'Default', onClick: () => setThemeName('default')},
{label: 'Neutral', onClick: () => setThemeName('neutral')},
{label: 'Brutalist', onClick: () => setThemeName('brutalist')},
- {label: 'Meta', onClick: () => setThemeName('meta')},
- {label: 'WhatsApp', onClick: () => setThemeName('whatsapp')},
+ {label: 'Matcha', onClick: () => setThemeName('matcha')},
{label: 'Daily', onClick: () => setThemeName('daily')},
];
diff --git a/apps/sandbox/src/app/globals.css b/apps/sandbox/src/app/globals.css
index 81ce9852b4..a56edb0ceb 100644
--- a/apps/sandbox/src/app/globals.css
+++ b/apps/sandbox/src/app/globals.css
@@ -3,6 +3,7 @@
@import "@xds/theme-default/theme.css";
@import "@xds/theme-neutral/theme.css";
@import "@xds/theme-brutalist/theme.css";
+@import "@xds/theme-matcha/theme.css";
@import "@xds/theme-daily/theme.css";
@stylex;
diff --git a/apps/sandbox/src/app/providers.tsx b/apps/sandbox/src/app/providers.tsx
index 0268857695..7e86a03e68 100644
--- a/apps/sandbox/src/app/providers.tsx
+++ b/apps/sandbox/src/app/providers.tsx
@@ -6,12 +6,16 @@ import {XDSLayerProvider} from '@xds/core/Layer';
import {defaultTheme} from '@xds/theme-default/built';
import {neutralTheme} from '@xds/theme-neutral/built';
import {brutalistTheme} from '@xds/theme-brutalist/built';
+import {matchaTheme} from '@xds/theme-matcha/built';
+import {dailyTheme} from '@xds/theme-daily/built';
import type {XDSDefinedTheme, ThemeMode} from '@xds/core/theme';
const themes: Record<string, XDSDefinedTheme> = {
default: defaultTheme,
neutral: neutralTheme,
brutalist: brutalistTheme,
+ matcha: matchaTheme,
+ daily: dailyTheme,
};
type ThemeContextValue = {
diff --git a/apps/sandbox/src/components/MetaIllustrations.tsx b/apps/sandbox/src/components/MetaIllustrations.tsx
deleted file mode 100644
index 58dd8a4b17..0000000000
--- a/apps/sandbox/src/components/MetaIllustrations.tsx
+++ /dev/null
@@ -1,706 +0,0 @@
-/**
- * Empty state illustrations for the Meta theme.
- *
- * Modern SVG illustrations that use XDS color tokens via CSS custom
- * properties. They adapt automatically to light/dark mode and any theme.
- *
- * Usage:
- * import { SearchIllustration } from '@xds/theme-meta';
- * <XDSEmptyState icon={<SearchIllustration />} title="No results" />
- */
-
-import type {CSSProperties} from 'react';
-
-interface IllustrationProps {
- /** Width in pixels. Height scales proportionally. @default 200 */
- size?: number;
- style?: CSSProperties;
- className?: string;
-}
-
-/**
- * No results / search empty state.
- * Browser window with magnifying glass.
- */
-export function SearchIllustration({
- size = 200,
- style,
- className,
-}: IllustrationProps) {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 280 240"
- fill="none"
- width={size}
- height={size * (240 / 280)}
- style={style}
- className={className}
- aria-hidden="true">
- <defs>
- <filter id="es-s1" x="-20%" y="-10%" width="140%" height="140%">
- <feDropShadow
- dx="0"
- dy="6"
- stdDeviation="10"
- floodColor="var(--color-shadow, rgba(0,0,0,0.08))"
- />
- </filter>
- <filter id="es-s2" x="-20%" y="-10%" width="140%" height="130%">
- <feDropShadow
- dx="0"
- dy="4"
- stdDeviation="6"
- floodColor="var(--color-shadow, rgba(0,0,0,0.06))"
- />
- </filter>
- </defs>
- <g filter="url(#es-s1)">
- <rect
- x="50"
- y="52"
- width="148"
- height="112"
- rx="14"
- fill="var(--color-card, white)"
- />
- <rect
- x="50"
- y="52"
- width="148"
- height="30"
- rx="14"
- fill="var(--color-muted, #E8EAF0)"
- />
- <rect
- x="50"
- y="68"
- width="148"
- height="14"
- fill="var(--color-muted, #E8EAF0)"
- />
- <circle cx="68" cy="67" r="4.5" fill="#FF7B7B" />
- <circle cx="82" cy="67" r="4.5" fill="#FFB84D" />
- <circle cx="96" cy="67" r="4.5" fill="#4DC870" />
- <rect
- x="70"
- y="96"
- width="60"
- height="7"
- rx="3.5"
- fill="var(--color-border-emphasized, #D0D4DE)"
- />
- <rect
- x="70"
- y="111"
- width="44"
- height="7"
- rx="3.5"
- fill="var(--color-border, #D8DBE4)"
- />
- <rect
- x="70"
- y="126"
- width="52"
- height="7"
- rx="3.5"
- fill="var(--color-border, #DFE2EA)"
- />
- <rect
- x="70"
- y="141"
- width="34"
- height="7"
- rx="3.5"
- fill="var(--color-border, #E4E7EE)"
- />
- </g>
- <g transform="translate(195, 68)" filter="url(#es-s2)">
- <circle
- cx="0"
- cy="0"
- r="32"
- fill="var(--color-accent-muted, #D4E6FF)"
- stroke="var(--color-accent, #0064E0)"
- strokeWidth="4"
- />
- <line
- x1="22"
- y1="22"
- x2="42"
- y2="42"
- stroke="var(--color-accent, #0064E0)"
- strokeWidth="7"
- strokeLinecap="round"
- />
- <path
- d="M-14 -18 C-6 -26, 8 -26, 16 -18"
- stroke="var(--color-card, white)"
- strokeWidth="3.5"
- strokeLinecap="round"
- fill="none"
- opacity="0.8"
- />
- <path
- d="M-6 -8 C-6 -16, 8 -18, 8 -10 C8 -4, 0 -3, 0 1"
- stroke="var(--color-card, white)"
- strokeWidth="3.5"
- strokeLinecap="round"
- fill="none"
- opacity="0.9"
- />
- <circle
- cx="0"
- cy="9"
- r="3"
- fill="var(--color-card, white)"
- opacity="0.9"
- />
- </g>
- <circle
- cx="42"
- cy="82"
- r="20"
- fill="none"
- stroke="var(--color-accent, #0064E0)"
- strokeWidth="2.5"
- opacity="0.15"
- />
- <circle
- cx="42"
- cy="152"
- r="8"
- fill="var(--color-accent, #0064E0)"
- opacity="0.12"
- />
- <circle
- cx="252"
- cy="155"
- r="16"
- fill="none"
- stroke="var(--color-accent, #0064E0)"
- strokeWidth="2"
- opacity="0.1"
- />
- <circle
- cx="252"
- cy="108"
- r="6"
- fill="var(--color-accent, #0064E0)"
- opacity="0.1"
- />
- </svg>
- );
-}
-
-/**
- * Empty inbox / no messages.
- * Tray with floating envelopes.
- */
-export function InboxIllustration({
- size = 200,
- style,
- className,
-}: IllustrationProps) {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 280 240"
- fill="none"
- width={size}
- height={size * (240 / 280)}
- style={style}
- className={className}
- aria-hidden="true">
- <defs>
- <filter id="ei-i1" x="-20%" y="-10%" width="140%" height="140%">
- <feDropShadow
- dx="0"
- dy="6"
- stdDeviation="10"
- floodColor="var(--color-shadow, rgba(0,0,0,0.08))"
- />
- </filter>
- <filter id="ei-i2" x="-20%" y="-10%" width="140%" height="130%">
- <feDropShadow
- dx="0"
- dy="4"
- stdDeviation="6"
- floodColor="var(--color-shadow, rgba(0,0,0,0.06))"
- />
- </filter>
- </defs>
- <g filter="url(#ei-i1)">
- <rect
- x="55"
- y="125"
- width="170"
- height="68"
- rx="20"
- fill="var(--color-card, white)"
- />
- <rect
- x="72"
- y="139"
- width="136"
- height="42"
- rx="12"
- fill="var(--color-muted, #E8EAF0)"
- />
- <rect
- x="55"
- y="125"
- width="170"
- height="30"
- rx="20"
- fill="var(--color-card, white)"
- />
- </g>
- <g transform="translate(108, 55)" filter="url(#ei-i2)">
- <rect
- x="-45"
- y="-28"
- width="90"
- height="56"
- rx="10"
- fill="var(--color-card, white)"
- stroke="var(--color-border-emphasized, #D0D4DE)"
- strokeWidth="2"
- />
- <path
- d="M-45 -28 L0 8 L45 -28"
- stroke="var(--color-border-strong, #C0C4D0)"
- strokeWidth="2.5"
- fill="none"
- />
- <circle
- cx="0"
- cy="15"
- r="10"
- fill="var(--color-accent, #0064E0)"
- opacity="0.2"
- />
- <circle
- cx="0"
- cy="15"
- r="5"
- fill="var(--color-accent, #0064E0)"
- opacity="0.45"
- />
- </g>
- <g transform="translate(200, 88) rotate(8)" filter="url(#ei-i2)">
- <rect
- x="-32"
- y="-22"
- width="64"
- height="44"
- rx="8"
- fill="var(--color-card, white)"
- stroke="var(--color-border-emphasized, #D0D4DE)"
- strokeWidth="1.5"
- />
- <path
- d="M-32 -22 L0 4 L32 -22"
- stroke="var(--color-border-strong, #C0C4D0)"
- strokeWidth="2"
- fill="none"
- />
- <rect
- x="-18"
- y="9"
- width="24"
- height="4"
- rx="2"
- fill="var(--color-accent, #0064E0)"
- opacity="0.25"
- />
- </g>
- <circle
- cx="48"
- cy="95"
- r="18"
- fill="none"
- stroke="var(--color-accent, #0064E0)"
- strokeWidth="2.5"
- opacity="0.15"
- />
- <circle
- cx="248"
- cy="70"
- r="14"
- fill="none"
- stroke="var(--color-accent, #0064E0)"
- strokeWidth="2"
- opacity="0.1"
- />
- <circle
- cx="42"
- cy="165"
- r="7"
- fill="var(--color-accent, #0064E0)"
- opacity="0.12"
- />
- <circle
- cx="255"
- cy="150"
- r="6"
- fill="var(--color-accent, #0064E0)"
- opacity="0.1"
- />
- </svg>
- );
-}
-
-/**
- * No data / empty chart.
- * Dashboard card with bar chart placeholder.
- */
-export function NoDataIllustration({
- size = 200,
- style,
- className,
-}: IllustrationProps) {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 280 240"
- fill="none"
- width={size}
- height={size * (240 / 280)}
- style={style}
- className={className}
- aria-hidden="true">
- <defs>
- <filter id="ed-d1" x="-20%" y="-10%" width="140%" height="140%">
- <feDropShadow
- dx="0"
- dy="6"
- stdDeviation="10"
- floodColor="var(--color-shadow, rgba(0,0,0,0.08))"
- />
- </filter>
- </defs>
- <g filter="url(#ed-d1)">
- <rect
- x="40"
- y="38"
- width="200"
- height="155"
- rx="16"
- fill="var(--color-card, white)"
- />
- <rect
- x="62"
- y="58"
- width="60"
- height="7"
- rx="3.5"
- fill="var(--color-border-emphasized, #C8CCD6)"
- />
- <rect
- x="62"
- y="72"
- width="42"
- height="6"
- rx="3"
- fill="var(--color-border, #D8DBE4)"
- />
- </g>
- <rect
- x="68"
- y="108"
- width="32"
- height="62"
- rx="8"
- fill="var(--color-accent, #0064E0)"
- opacity="0.35"
- />
- <rect
- x="112"
- y="85"
- width="32"
- height="85"
- rx="8"
- fill="var(--color-accent, #0064E0)"
- opacity="0.5"
- />
- <rect
- x="156"
- y="118"
- width="32"
- height="52"
- rx="8"
- fill="var(--color-accent, #0064E0)"
- opacity="0.25"
- />
- <rect
- x="200"
- y="98"
- width="32"
- height="72"
- rx="8"
- fill="var(--color-accent, #0064E0)"
- opacity="0.4"
- />
- <path
- d="M84 100 C110 82, 144 115, 172 105 C188 99, 208 88, 216 92"
- stroke="var(--color-accent, #0064E0)"
- strokeWidth="3"
- strokeDasharray="7 5"
- fill="none"
- opacity="0.35"
- />
- <circle
- cx="32"
- cy="85"
- r="18"
- fill="none"
- stroke="var(--color-accent, #0064E0)"
- strokeWidth="2.5"
- opacity="0.15"
- />
- <circle
- cx="258"
- cy="60"
- r="7"
- fill="var(--color-accent, #0064E0)"
- opacity="0.12"
- />
- <circle
- cx="30"
- cy="170"
- r="6"
- fill="var(--color-accent, #0064E0)"
- opacity="0.1"
- />
- <circle
- cx="260"
- cy="140"
- r="14"
- fill="none"
- stroke="var(--color-accent, #0064E0)"
- strokeWidth="2"
- opacity="0.1"
- />
- </svg>
- );
-}
-
-/**
- * Error / something went wrong.
- * Document with error badge and gear.
- */
-export function ErrorIllustration({
- size = 200,
- style,
- className,
-}: IllustrationProps) {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 280 240"
- fill="none"
- width={size}
- height={size * (240 / 280)}
- style={style}
- className={className}
- aria-hidden="true">
- <defs>
- <filter id="ee-e1" x="-20%" y="-10%" width="140%" height="140%">
- <feDropShadow
- dx="0"
- dy="6"
- stdDeviation="10"
- floodColor="var(--color-shadow, rgba(0,0,0,0.08))"
- />
- </filter>
- <filter id="ee-e2" x="-20%" y="-10%" width="140%" height="130%">
- <feDropShadow
- dx="0"
- dy="4"
- stdDeviation="6"
- floodColor="var(--color-shadow, rgba(0,0,0,0.06))"
- />
- </filter>
- </defs>
- <g filter="url(#ee-e1)">
- <rect
- x="72"
- y="38"
- width="136"
- height="162"
- rx="14"
- fill="var(--color-card, white)"
- />
- <rect
- x="92"
- y="62"
- width="60"
- height="7"
- rx="3.5"
- fill="var(--color-border-emphasized, #D0D4DE)"
- />
- <rect
- x="92"
- y="77"
- width="42"
- height="6"
- rx="3"
- fill="var(--color-border, #D8DBE4)"
- />
- <rect
- x="92"
- y="100"
- width="96"
- height="6"
- rx="3"
- fill="var(--color-border, #E0E3EA)"
- />
- <rect
- x="92"
- y="114"
- width="74"
- height="6"
- rx="3"
- fill="var(--color-border, #E0E3EA)"
- />
- <rect
- x="92"
- y="128"
- width="84"
- height="6"
- rx="3"
- fill="var(--color-border, #E6E8EE)"
- />
- <rect
- x="92"
- y="142"
- width="58"
- height="6"
- rx="3"
- fill="var(--color-border, #E6E8EE)"
- />
- <rect
- x="92"
- y="156"
- width="68"
- height="6"
- rx="3"
- fill="var(--color-border, #ECEDF0)"
- />
- </g>
- <g transform="translate(190, 155)" filter="url(#ee-e2)">
- <circle
- cx="0"
- cy="0"
- r="35"
- fill="var(--color-error-muted, #FFE0E0)"
- stroke="var(--color-error, #D83030)"
- strokeWidth="3"
- />
- <line
- x1="-12"
- y1="-12"
- x2="12"
- y2="12"
- stroke="var(--color-error, #D83030)"
- strokeWidth="5.5"
- strokeLinecap="round"
- />
- <line
- x1="12"
- y1="-12"
- x2="-12"
- y2="12"
- stroke="var(--color-error, #D83030)"
- strokeWidth="5.5"
- strokeLinecap="round"
- />
- <ellipse
- cx="-9"
- cy="-14"
- rx="14"
- ry="9"
- fill="var(--color-card, white)"
- opacity="0.35"
- transform="rotate(-15)"
- />
- </g>
- <g transform="translate(48, 158)" filter="url(#ee-e2)" opacity="0.7">
- <circle cx="0" cy="0" r="20" fill="var(--color-muted, #E0E3EA)" />
- <circle
- cx="0"
- cy="0"
- r="8"
- fill="var(--color-card, white)"
- stroke="var(--color-border-emphasized, #CDD0DA)"
- strokeWidth="2.5"
- />
- <rect
- x="-5"
- y="-26"
- width="10"
- height="12"
- rx="4"
- fill="var(--color-muted, #E0E3EA)"
- />
- <rect
- x="-5"
- y="14"
- width="10"
- height="12"
- rx="4"
- fill="var(--color-muted, #E0E3EA)"
- />
- <rect
- x="-26"
- y="-5"
- width="12"
- height="10"
- rx="4"
- fill="var(--color-muted, #E0E3EA)"
- />
- <rect
- x="14"
- y="-5"
- width="12"
- height="10"
- rx="4"
- fill="var(--color-muted, #E0E3EA)"
- />
- </g>
- <circle
- cx="50"
- cy="65"
- r="16"
- fill="none"
- stroke="var(--color-error, #D83030)"
- strokeWidth="2.5"
- opacity="0.12"
- />
- <circle
- cx="248"
- cy="80"
- r="12"
- fill="none"
- stroke="var(--color-error, #D83030)"
- strokeWidth="2"
- opacity="0.1"
- />
- <circle
- cx="250"
- cy="190"
- r="6"
- fill="var(--color-error-muted, #FFD0D0)"
- opacity="0.35"
- />
- <circle
- cx="38"
- cy="110"
- r="5"
- fill="var(--color-error, #D83030)"
- opacity="0.08"
- />
- </svg>
- );
-}
diff --git a/package.json b/package.json
index b6c23089da..4aca68bd28 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"internal/*"
],
"scripts": {
- "build": "yarn workspace @xds/core build && yarn workspace @xds/vega build && yarn workspace @xds/theme-default build && yarn workspace @xds/theme-neutral build && yarn workspace @xds/theme-brutalist build && yarn workspace @xds/theme-daily build && yarn workspace @xds/theme-whatsapp build && yarn workspace @xds/theme-meta build && yarn workspace @xds/theme-matcha build",
+ "build": "yarn workspace @xds/core build && yarn workspace @xds/vega build && yarn workspace @xds/theme-default build && yarn workspace @xds/theme-neutral build && yarn workspace @xds/theme-brutalist build && yarn workspace @xds/theme-daily build && yarn workspace @xds/theme-matcha build",
"dev": "yarn workspace @xds/storybook dev",
"test": "vitest run",
"test:watch": "vitest",
diff --git a/packages/themes/meta/README.md b/packages/themes/meta/README.md
deleted file mode 100644
index befd046675..0000000000
--- a/packages/themes/meta/README.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# @xds/theme-meta
-
-Meta brand identity with blue accent and clean aesthetics. Includes custom icon set.
-> **Note:** This theme is private and not published to npm.
-## Install
-
-```bash
-npm install @xds/theme-meta
-```
-
-## Usage
-
-Wrap your app with `XDSTheme` and pass the theme:
-
-```tsx
-import {XDSTheme} from '@xds/core/theme';
-import {metaTheme} from '@xds/theme-meta/built';
-
-function App() {
- return (
- <XDSTheme theme={metaTheme}>
- {/* your app */}
- </XDSTheme>
- );
-}
-```
-
-### Import paths
-
-| Path | Use case |
-|------|----------|
-| `@xds/theme-meta` | Source build (StyleX compilation via `@xds/build`) |
-| `@xds/theme-meta/built` | Pre-built dist (Tailwind, plain CSS, or no build step) |
-| `@xds/theme-meta/theme.css` | Pre-built CSS file (import in your stylesheet) |
-
-If you're using `@xds/build` for StyleX source compilation, import from the bare path. Otherwise, use `/built`.
-
-### CSS import
-
-Add the theme CSS to your stylesheet:
-
-```css
-@import "@xds/theme-meta/theme.css";
-```
-
-This is required for component-level theme overrides (colors, radii, typography) to take effect.
-
-## Related Packages
-
-| Package | Description |
-|---------|-------------|
-| [`@xds/core`](https://github.com/facebookexperimental/xds/tree/main/packages/core) | Core components and theme system |
-| [`@xds/build`](https://github.com/facebookexperimental/xds/tree/main/packages/build) | Build plugins for StyleX source builds |
-| [`@xds/cli`](https://github.com/facebookexperimental/xds/tree/main/packages/cli) | CLI tooling including `xds docs theme` |
diff --git a/packages/themes/meta/package.json b/packages/themes/meta/package.json
deleted file mode 100644
index 91a575b8a0..0000000000
--- a/packages/themes/meta/package.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "name": "@xds/theme-meta",
- "version": "0.0.13",
- "private": true,
- "description": "Meta theme for XDS components — Meta's brand identity with blue accent and clean aesthetics",
- "author": "Meta Open Source",
- "license": "MIT",
- "homepage": "https://github.com/facebookexperimental/xds#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/facebookexperimental/xds.git",
- "directory": "packages/themes/meta"
- },
- "bugs": {
- "url": "https://github.com/facebookexperimental/xds/issues"
- },
- "keywords": [
- "xds",
- "theme",
- "meta",
- "design-system",
- "design-tokens"
- ],
- "sideEffects": false,
- "main": "./dist/source.js",
- "types": "./dist/source.d.ts",
- "exports": {
- ".": {
- "types": "./dist/source.d.ts",
- "import": "./dist/source.mjs",
- "require": "./dist/source.js"
- },
- "./built": {
- "types": "./dist/meta.d.ts",
- "import": "./dist/meta.js",
- "require": "./dist/meta.js"
- },
- "./theme.css": {
- "types": "./theme.css.d.ts",
- "default": "./dist/theme.css"
- }
- },
- "files": [
- "dist",
- "src"
- ],
- "scripts": {
- "build": "xds theme build src/metaTheme.ts -o dist/theme.css && tsup && tsc --project tsconfig.build.json"
- },
- "dependencies": {
- "@heroicons/react": "^2.2.0"
- },
- "peerDependencies": {
- "@xds/core": "0.0.13",
- "react": ">=19"
- },
- "devDependencies": {
- "@xds/cli": "0.0.13"
- },
- "module": "./dist/source.mjs"
-}
diff --git a/packages/themes/meta/src/icons.tsx b/packages/themes/meta/src/icons.tsx
deleted file mode 100644
index 2a8bc672c4..0000000000
--- a/packages/themes/meta/src/icons.tsx
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- * @file icons.tsx
- * @input Uses @heroicons/react outline and solid icon components, XDSIconRegistry type
- * @output Exports metaIconRegistry for the Meta theme
- * @position Icon configuration for the Meta theme; consumed by index.ts
- *
- * Maps semantic icon names to Heroicons components.
- * Uses the same Heroicons library as the default theme —
- * Meta products use a similar clean outline icon style.
- */
-
-import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
-
-import {
- XMarkIcon,
- ChevronDownIcon,
- ChevronLeftIcon,
- ChevronRightIcon,
- CheckIcon,
- CalendarDaysIcon,
- ClockIcon,
- InformationCircleIcon,
- Bars3Icon,
- EllipsisHorizontalIcon,
- MagnifyingGlassIcon,
- ArrowUpIcon,
- ArrowDownIcon,
- ArrowsUpDownIcon,
- FunnelIcon,
- EyeSlashIcon,
- ViewColumnsIcon,
- ClipboardDocumentIcon,
- WrenchScrewdriverIcon,
- MicrophoneIcon,
- CheckCircleIcon,
- XCircleIcon,
- ExclamationTriangleIcon,
- ArrowTopRightOnSquareIcon,
- StopIcon,
- StopCircleIcon,
-} from '@heroicons/react/24/outline';
-
-const iconProps = {
- width: '1em',
- height: '1em',
- 'aria-hidden': true as const,
-};
-
-export const metaIconRegistry: XDSIconRegistry = {
- close: <XMarkIcon {...iconProps} />,
- chevronDown: <ChevronDownIcon {...iconProps} />,
- chevronLeft: <ChevronLeftIcon {...iconProps} />,
- chevronRight: <ChevronRightIcon {...iconProps} />,
- check: <CheckIcon {...iconProps} />,
- success: <CheckCircleIcon {...iconProps} />,
- error: <XCircleIcon {...iconProps} />,
- warning: <ExclamationTriangleIcon {...iconProps} />,
- info: <InformationCircleIcon {...iconProps} />,
- calendar: <CalendarDaysIcon {...iconProps} />,
- clock: <ClockIcon {...iconProps} />,
- externalLink: <ArrowTopRightOnSquareIcon {...iconProps} />,
- menu: <Bars3Icon {...iconProps} />,
- moreHorizontal: <EllipsisHorizontalIcon {...iconProps} />,
- search: <MagnifyingGlassIcon {...iconProps} />,
- arrowUp: <ArrowUpIcon {...iconProps} />,
- arrowDown: <ArrowDownIcon {...iconProps} />,
- arrowsUpDown: <ArrowsUpDownIcon {...iconProps} />,
- funnel: <FunnelIcon {...iconProps} />,
- eyeSlash: <EyeSlashIcon {...iconProps} />,
- viewColumns: <ViewColumnsIcon {...iconProps} />,
- copy: <ClipboardDocumentIcon {...iconProps} />,
- checkDouble: <CheckIcon {...iconProps} />,
- wrench: <WrenchScrewdriverIcon {...iconProps} />,
- stop: <StopIcon {...iconProps} />,
- microphone: <MicrophoneIcon {...iconProps} />,
-};
diff --git a/packages/themes/meta/src/metaTheme.ts b/packages/themes/meta/src/metaTheme.ts
deleted file mode 100644
index 0ab6207791..0000000000
--- a/packages/themes/meta/src/metaTheme.ts
+++ /dev/null
@@ -1,572 +0,0 @@
-/**
- * Meta Theme for XDS
- *
- * Color tokens derived from CDS (Core Design System) — Meta's internal
- * design system platform. All color values map to the XMDS 3.0 palette.
- *
- * Component overrides use xdsClassName class targeting (#763), pseudo-class
- * selectors (#811), and the defineTheme variants field (#790).
- * No core CSS custom properties needed — all theming is pure defineTheme.
- */
-
-import {defineTheme} from '@xds/core/theme';
-import {metaIconRegistry} from './icons';
-
-export const metaTheme = defineTheme({
- name: 'meta',
-
- // Typography — Figtree font family, default scale
- typography: {
- scale: {base: 15, ratio: 1.2},
- body: {
- family: 'Figtree',
- fallbacks:
- '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif',
- url: 'https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap',
- },
- code: {
- family: 'SF Mono',
- fallbacks: '"Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace',
- },
- },
-
- // Motion — default Meta timing
- motion: {fast: 175, medium: 410, slow: 975, ratio: 0.75},
-
- tokens: {
- // Type workaround: these tokens exist in core but aren't in XDSTokenName yet
- // @ts-expect-error — not in XDSTokenName
- '--color-focus-outline': ['#5D6C7B', '#8C939B'],
- '--elevation-input-hover': 'none',
- // =========================================================================
- // Core Accent — Meta Blue (CDS: PRIMARY_BUTTON_BACKGROUND = BLUE_500)
- // =========================================================================
- '--color-accent': ['#0064E0', '#0064E0'],
- '--color-accent-muted': ['#0064E033', '#0082FB3F'],
- '--color-on-accent': ['#FFFFFF', '#FFFFFF'],
-
- // =========================================================================
- // Surfaces
- // =========================================================================
- '--color-background-surface': ['#FFFFFF', '#1F1F22'],
- '--color-background-body': ['#F2F4F6', '#111112'],
- '--color-background-card': ['#FFFFFF', '#1F1F20'],
- '--color-background-popover': ['#FFFFFF', '#1F1F20'],
- '--color-background-muted': ['#F2F4F6', '#28292C'],
- '--color-overlay': ['#1111121F', '#11111299'],
- '--color-overlay-hover': [
- 'rgba(17, 17, 18, 0.05)',
- 'rgba(242, 244, 246, 0.05)',
- ],
- '--color-overlay-pressed': [
- 'rgba(17, 17, 18, 0.08)',
- 'rgba(242, 244, 246, 0.08)',
- ],
- '--color-neutral': ['rgba(17, 17, 18, 0.06)', 'rgba(242, 244, 246, 0.1)'],
-
- // =========================================================================
- // Text
- // =========================================================================
- '--color-text-primary': ['#111112', '#F3F4F5'],
- '--color-text-secondary': ['#5D6C7B', '#AAAFB5'],
- '--color-text-disabled': ['#96A6B4', '#6F747C'],
- '--color-text-accent': ['#0064E0', '#0064E0'],
- '--color-on-dark': ['#FFFFFF', '#FFFFFF'],
- '--color-on-light': ['#000000', '#000000'],
-
- // =========================================================================
- // Icons
- // =========================================================================
- '--color-icon-primary': ['#111112', '#F2F4F6'],
- '--color-icon-secondary': ['#5D6C7B', '#AAAFB5'],
- '--color-icon-disabled': ['#DDE2E8', '#6F747C'],
- '--color-icon-accent': ['#0064E0', '#0064E0'],
-
- // =========================================================================
- // Status — CDS: NEGATIVE, POSITIVE, WARNING
- // =========================================================================
- '--color-success': ['#147B29', '#3CBC22'],
- '--color-success-muted': [
- 'rgba(20, 123, 41, 0.1)',
- 'rgba(60, 188, 34, 0.15)',
- ],
- '--color-on-success': ['#FFFFFF', '#FFFFFF'],
- '--color-error': ['#D31130', '#FB7D87'],
- '--color-error-muted': [
- 'rgba(211, 17, 48, 0.1)',
- 'rgba(251, 125, 135, 0.15)',
- ],
- '--color-on-error': ['#FFFFFF', '#FFFFFF'],
- '--color-warning': ['#965E03', '#D69804'],
- '--color-warning-muted': [
- 'rgba(150, 94, 3, 0.1)',
- 'rgba(214, 152, 4, 0.15)',
- ],
- '--color-on-warning': ['#0A1317', '#0A1317'],
-
- // =========================================================================
- // Borders
- // =========================================================================
- '--color-border': ['#DDE2E8', '#F2F4F619'],
- '--color-border-emphasized': ['#CCD3DB', '#494D53'],
-
- // =========================================================================
- // Effects
- // =========================================================================
- '--color-skeleton': ['#E7EAED', '#28292C'],
- '--color-shadow': ['rgba(17, 17, 18, 0.12)', 'rgba(17, 17, 18, 0.12)'],
- '--shadow-inset-hover': 'none',
- '--color-tint-hover': ['black', 'white'],
-
- // =========================================================================
- // Divider / Focus / Elevation — CDS overrides
- // =========================================================================
-
- // =========================================================================
- // Named palette — CDS XMDS 3.0 color ramps
- // =========================================================================
- '--color-background-blue': ['#D7E9FF', '#001F4C'],
- '--color-border-blue': ['#0044A3', '#3087FF'],
- '--color-icon-blue': ['#0044A3', '#3087FF'],
- '--color-text-blue': ['#003B8E', '#4D99FF'],
-
- '--color-background-gray': ['#F2F4F6', '#28292C'],
- '--color-border-gray': ['#DFE2E5', '#494D53'],
- '--color-icon-gray': ['#666A72', '#9FA4AB'],
- '--color-text-gray': ['#111112', '#F2F4F6'],
-
- '--color-background-green': ['#C4F8B9', '#053018'],
- '--color-border-green': ['#147B29', '#3CBC22'],
- '--color-icon-green': ['#147B29', '#3CBC22'],
- '--color-text-green': ['#076D29', '#4EC72A'],
-
- '--color-background-red': ['#FEE4E6', '#5A0107'],
- '--color-border-red': ['#D31130', '#FB7D87'],
- '--color-icon-red': ['#D31130', '#FB7D87'],
- '--color-text-red': ['#BE0424', '#FD8E99'],
-
- '--color-background-orange': ['#FFE6CF', '#4E1608'],
- '--color-border-orange': ['#B34A01', '#F88617'],
- '--color-icon-orange': ['#B34A01', '#F88617'],
- '--color-text-orange': ['#A13F04', '#FD9537'],
-
- '--color-background-yellow': ['#FCEC85', '#451E03'],
- '--color-border-yellow': ['#965E03', '#D69804'],
- '--color-icon-yellow': ['#965E03', '#D69804'],
- '--color-text-yellow': ['#8A5001', '#E2A400'],
-
- '--color-background-purple': ['#ECE2FF', '#140036'],
- '--color-border-purple': ['#5828CA', '#9B73FF'],
- '--color-icon-purple': ['#5828CA', '#9B73FF'],
- '--color-text-purple': ['#4D1EB6', '#A985FF'],
-
- '--color-background-pink': ['#FFE1ED', '#520019'],
- '--color-border-pink': ['#C71050', '#FE73A1'],
- '--color-icon-pink': ['#C71050', '#FE73A1'],
- '--color-text-pink': ['#B30543', '#FF85B0'],
-
- '--color-background-cyan': ['#C7F1FF', '#001B2A'],
- '--color-border-cyan': ['#006BA3', '#00AFFA'],
- '--color-icon-cyan': ['#006BA3', '#00AFFA'],
- '--color-text-cyan': ['#005F91', '#21BDFF'],
-
- '--color-background-teal': ['#BCF5F0', '#062D38'],
- '--color-border-teal': ['#08767D', '#0DB7AF'],
- '--color-icon-teal': ['#08767D', '#0DB7AF'],
- '--color-text-teal': ['#0F686F', '#1DC3B9'],
-
- // =========================================================================
- // Radius — Meta-style generous rounding
- // =========================================================================
- '--radius-none': '4px',
- '--radius-inner': '8px',
- '--radius-element': '12px',
- '--radius-container': '16px',
- '--radius-page': '32px',
- '--radius-full': '9999px',
-
- // =========================================================================
- // Text size overrides
- // =========================================================================
- // =========================================================================
- // Element Sizes — aligned to XMDS (32/36/44 vs default 28/32/36)
- // =========================================================================
- '--size-element-sm': '32px',
- '--size-element-md': '36px',
- '--size-element-lg': '44px',
-
- // =========================================================================
- // Typography Scale — aligned to CDS/XMDS
- // CDS base = 15px, Display = 48px/600, H1/H2 = 24px, H3 = 17px
- // Body = 15px, Label = 15px, Supporting = 13px
- // =========================================================================
-
- // Font size scale (15px base × 1.2 ratio)
- '--font-size-xs': '0.6875rem', // 11px — CDS Tertiary Label
- '--font-size-sm': '0.8125rem', // 13px — CDS Secondary Label
- '--font-size-base': '0.9375rem', // 15px — CDS Body
- '--font-size-lg': '1.0625rem', // 17px — CDS Headline 3
- '--font-size-xl': '1.25rem', // 20px
- '--font-size-2xl': '1.5rem', // 24px — CDS Headline 1/2
- '--font-size-3xl': '1.8125rem', // 29px
- '--font-size-4xl': '2.1875rem', // 35px
- '--font-size-5xl': '3rem', // 48px — CDS Display
-
- // Display — CDS: 48px / semibold
- '--text-display-1-size': '3rem',
- '--text-display-1-weight': 'var(--font-weight-semibold)',
- '--text-display-1-leading': '1.1667',
- '--text-display-2-size': '2.1875rem',
- '--text-display-2-weight': 'var(--font-weight-semibold)',
- '--text-display-2-leading': '1.2571',
- '--text-display-3-size': '1.8125rem',
- '--text-display-3-weight': 'var(--font-weight-semibold)',
- '--text-display-3-leading': '1.2414',
-
- // Headings — CDS: H1/H2 = 24px, H3 = 17px
- '--text-heading-1-size': '1.5rem',
- '--text-heading-1-leading': '1.3333',
- '--text-heading-2-size': '1.5rem',
- '--text-heading-2-leading': '1.3333',
-
- // Body — CDS: 15px / 400
- '--text-body-size': '0.9375rem',
- '--text-body-leading': '1.4667',
-
- // Large text — CDS: 17px (Headline 3 size)
- '--text-large-size': '1.0625rem',
- '--text-large-leading': '1.4118',
-
- // Label — CDS: 15px / 500
- '--text-label-size': '0.9375rem',
- '--text-label-leading': '1.4667',
-
- // Supporting — CDS: 13px / 400
- '--text-supporting-size': '0.8125rem',
- '--text-supporting-leading': '1.5385',
- },
-
- components: {
- // =========================================================================
- // Button — pill shape, medium weight, custom muted/outline variants
- // =========================================================================
- button: {
- base: {
- borderRadius: '9999px',
- gap: '4px',
- },
- 'size:sm': {
- paddingInline: '12px',
- },
- 'size:md': {
- paddingInline: '16px',
- },
- 'size:lg': {
- paddingInline: '20px',
- },
- 'variant:primary': {fontWeight: '500'},
- 'variant:secondary': {fontWeight: '500'},
- 'variant:destructive': {
- backgroundColor: 'light-dark(#D31130, #DA2A3E)',
- color: '#FFFFFF',
- fontWeight: '500',
- },
- 'variant:ghost': {fontWeight: '500'},
- 'variant:primary-muted': {
- backgroundColor: 'light-dark(#ECF5FF, #182849)',
- color: 'light-dark(#0457CB, #78BEFF)',
- fontWeight: '500',
- ':hover': {opacity: '0.85'},
- ':active': {opacity: '0.7'},
- },
- 'variant:destructive-muted': {
- backgroundColor: 'light-dark(#FFF0F2, #471B1A)',
- color: 'light-dark(var(--color-error), #FE9DA6)',
- fontWeight: '500',
- ':hover': {opacity: '0.85'},
- ':active': {opacity: '0.7'},
- },
- 'variant:primary-outline': {
- backgroundColor: 'transparent',
- borderWidth: '1px',
- borderStyle: 'solid',
- borderColor: 'light-dark(var(--color-accent), #4BA9FE)',
- color: 'light-dark(var(--color-accent), #4BA9FE)',
- fontWeight: '500',
- ':hover': {
- backgroundColor:
- 'light-dark(rgba(0,100,224,0.06), rgba(75,169,254,0.1))',
- },
- ':active': {opacity: '0.7'},
- },
- 'variant:secondary-outline': {
- backgroundColor: 'transparent',
- borderWidth: '1px',
- borderStyle: 'solid',
- borderColor: 'light-dark(var(--color-border), #525456)',
- color: 'light-dark(var(--color-text-primary), #F3F4F5)',
- fontWeight: '500',
- ':hover': {
- backgroundColor:
- 'light-dark(rgba(0,0,0,0.04), rgba(255,255,255,0.06))',
- },
- ':active': {opacity: '0.7'},
- },
- 'variant:destructive-outline': {
- backgroundColor: 'transparent',
- borderWidth: '1px',
- borderStyle: 'solid',
- borderColor: 'light-dark(var(--color-error), #FB7D87)',
- color: 'light-dark(var(--color-error), #FB7D87)',
- fontWeight: '500',
- ':hover': {
- backgroundColor:
- 'light-dark(rgba(211,17,48,0.06), rgba(251,125,135,0.1))',
- },
- ':active': {opacity: '0.7'},
- },
- },
-
- // =========================================================================
- // Card — 20px padding, 32px radius
- // =========================================================================
- card: {
- base: {
- padding: '20px',
- borderRadius: '32px',
- },
- },
-
- // =========================================================================
- // Section
- // =========================================================================
-
- // =========================================================================
- // Text input — CDS: 16px radius, 16px horizontal padding
- // =========================================================================
- 'text-input': {
- base: {
- borderRadius: '8px',
- paddingInline: '12px',
- paddingBlock: '12px',
- minHeight: '44px',
- },
- 'status:success': {borderColor: '#686A6E'},
- 'status:warning': {borderColor: '#686A6E'},
- 'variant:search': {
- backgroundColor: 'light-dark(#F3F4F5, #28292C)',
- borderColor: 'transparent',
- borderRadius: '9999px',
- },
- },
-
- // =========================================================================
- // Field status — CDS: plain text below input, 12px gap, no pill bg
- // =========================================================================
- 'field-status': {
- base: {
- backgroundColor: 'transparent',
- marginTop: '4px',
- paddingBlockStart: '0',
- paddingBlockEnd: '0',
- paddingInline: '0',
- borderRadius: '0',
- },
- },
-
- // =========================================================================
- // Selector — CDS: 16px radius to match text input
- // =========================================================================
- selector: {
- base: {
- borderRadius: '8px',
- paddingInline: '12px',
- paddingBlock: '12px',
- minHeight: '44px',
- },
- },
-
- // =========================================================================
- // Slider — CDS: 2px track, 24px active handle
- // =========================================================================
- 'slider-track': {
- base: {
- backgroundColor: '#8F9296',
- height: '2px',
- },
- },
-
- // =========================================================================
- // Banner — per-status card bg (#810), primary icon, 32px radius
- // =========================================================================
- banner: {
- base: {
- borderRadius: '16px',
- },
- 'status:info': {backgroundColor: 'var(--color-background-card)'},
- 'status:warning': {backgroundColor: 'var(--color-background-card)'},
- 'status:error': {backgroundColor: 'var(--color-background-card)'},
- 'status:success': {backgroundColor: 'var(--color-background-card)'},
- },
- 'banner-icon': {
- base: {color: 'var(--color-icon-primary)'},
- },
-
- // =========================================================================
- // Badge — subtle pastel backgrounds
- // =========================================================================
- badge: {
- base: {
- fontWeight: '500',
- borderRadius: '20px',
- paddingInline: '8px',
- paddingBlock: '6px',
- },
- 'variant:info': {
- backgroundColor: 'light-dark(#DBECFF, #14367E)',
- color: 'var(--color-text-primary)',
- },
- 'variant:success': {
- backgroundColor: 'light-dark(#DAF0D4, #154321)',
- color: 'var(--color-text-primary)',
- },
- 'variant:warning': {
- backgroundColor: 'light-dark(#FAEBA4, #5B2F05)',
- color: 'var(--color-text-primary)',
- },
- 'variant:error': {
- backgroundColor: 'light-dark(#FEE4E6, #73161A)',
- color: 'var(--color-text-primary)',
- },
- },
-
- // =========================================================================
- // Radio — ring style via pseudo-class overrides (#811)
- // =========================================================================
- radio: {
- base: {
- borderWidth: '2.5px',
- '--color-border-emphasized': '#8F9296',
- },
- checked: {
- backgroundColor: 'var(--color-background-surface)',
- borderColor: 'var(--color-accent)',
- },
- },
- 'radio-dot': {
- base: {
- backgroundColor: 'var(--color-accent)',
- width: '12px',
- height: '12px',
- },
- },
-
- // =========================================================================
- // Checkbox — thicker border, pseudo-class hover (#811)
- // =========================================================================
- checkbox: {
- base: {
- borderWidth: '2px',
- borderRadius: '7px',
- '--color-border-emphasized': '#8F9296',
- },
- },
-
- // =========================================================================
- // Switch — gray track, pseudo-class hover (#811)
- // =========================================================================
-
- switch: {
- base: {
- '--color-background-gray': '#8F9296',
- },
- },
- 'switch-thumb': {
- base: {
- boxShadow: '0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15)',
- },
- },
-
- // =========================================================================
- // Divider — opaque gray instead of transparent blue-gray
- // =========================================================================
- divider: {
- base: {
- backgroundColor: 'light-dark(#DDE2E8, #3E4042)',
- },
- },
-
- // =========================================================================
- // Tabs — CDS: 1px underline, primary text when active, 12px padding
- // =========================================================================
- tab: {
- base: {
- paddingInline: '12px',
- },
- },
-
- // =========================================================================
- // Calendar — selected date via state class (#763)
- // =========================================================================
- 'calendar-day': {
- selected: {backgroundColor: 'var(--color-accent)'},
- },
-
- // =========================================================================
- // Empty state — heading 1 size
- // =========================================================================
- 'emptystate-title': {
- base: {fontSize: '1.75rem'},
- },
-
- // =========================================================================
- // Dialog — custom bg, 32px radius
- // =========================================================================
- dialog: {
- base: {
- backgroundColor: 'light-dark(var(--color-background-surface), #1F1F20)',
- borderRadius: '32px',
- },
- },
-
- // =========================================================================
- // Layout — dialog internals: no borders, no body padding
- // =========================================================================
- 'layout-header': {
- base: {borderBlockEndWidth: '0'},
- },
- 'layout-content': {
- base: {paddingBlockStart: '0', paddingBlockEnd: '0'},
- },
- 'layout-footer': {
- base: {borderBlockStartWidth: '0'},
- },
-
- // =========================================================================
- // Popover / Menu — generous radius
- // =========================================================================
- popover: {
- base: {
- borderRadius: '16px',
- padding: '16px',
- },
- },
- 'dropdown-menu': {
- base: {
- borderRadius: '16px',
- padding: '8px',
- },
- },
- 'more-menu': {
- base: {
- borderRadius: '16px',
- padding: '8px',
- },
- },
- tooltip: {
- base: {borderRadius: '16px'},
- },
- },
-
- icons: metaIconRegistry,
-});
diff --git a/packages/themes/meta/src/source.ts b/packages/themes/meta/src/source.ts
deleted file mode 100644
index bfc1da7eb1..0000000000
--- a/packages/themes/meta/src/source.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export {metaTheme} from './metaTheme';
-export {metaIconRegistry} from './icons';
diff --git a/packages/themes/meta/theme.css.d.ts b/packages/themes/meta/theme.css.d.ts
deleted file mode 100644
index cb0ff5c3b5..0000000000
--- a/packages/themes/meta/theme.css.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/packages/themes/meta/tsconfig.build.json b/packages/themes/meta/tsconfig.build.json
deleted file mode 100644
index 03d4647cd5..0000000000
--- a/packages/themes/meta/tsconfig.build.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "extends": "../../../tsconfig.json",
- "compilerOptions": {
- "outDir": "./dist",
- "rootDir": "./src",
- "noEmit": false,
- "declaration": true,
- "emitDeclarationOnly": true
- },
- "include": [
- "src"
- ]
-}
diff --git a/packages/themes/meta/tsup.config.ts b/packages/themes/meta/tsup.config.ts
deleted file mode 100644
index c5231d2a55..0000000000
--- a/packages/themes/meta/tsup.config.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import {defineConfig} from 'tsup';
-
-export default defineConfig({
- entry: ['src/source.ts', 'src/icons.tsx'],
- format: ['cjs', 'esm'],
- dts: false,
- clean: false, // Don't clean — xds theme build already put theme files in dist/
- external: ['@xds/core', 'react', '@heroicons/react'],
-});
diff --git a/packages/themes/whatsapp/CHANGELOG.md b/packages/themes/whatsapp/CHANGELOG.md
deleted file mode 100644
index aba46acffe..0000000000
--- a/packages/themes/whatsapp/CHANGELOG.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# @xds/theme-whatsapp
-
-## 0.0.8
-
-### Patch Changes
-
-- Initial release — WhatsApp theme for XDS
diff --git a/packages/themes/whatsapp/README.md b/packages/themes/whatsapp/README.md
deleted file mode 100644
index 8429bbb4e5..0000000000
--- a/packages/themes/whatsapp/README.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# @xds/theme-whatsapp
-
-WhatsApp brand identity — green accent, warm grays, Roboto, rounded surfaces. Includes custom icon set.
-> **Note:** This theme is private and not published to npm.
-## Install
-
-```bash
-npm install @xds/theme-whatsapp
-```
-
-## Usage
-
-Wrap your app with `XDSTheme` and pass the theme:
-
-```tsx
-import {XDSTheme} from '@xds/core/theme';
-import {whatsappTheme} from '@xds/theme-whatsapp/built';
-
-function App() {
- return (
- <XDSTheme theme={whatsappTheme}>
- {/* your app */}
- </XDSTheme>
- );
-}
-```
-
-### Import paths
-
-| Path | Use case |
-|------|----------|
-| `@xds/theme-whatsapp` | Source build (StyleX compilation via `@xds/build`) |
-| `@xds/theme-whatsapp/built` | Pre-built dist (Tailwind, plain CSS, or no build step) |
-| `@xds/theme-whatsapp/theme.css` | Pre-built CSS file (import in your stylesheet) |
-
-If you're using `@xds/build` for StyleX source compilation, import from the bare path. Otherwise, use `/built`.
-
-### CSS import
-
-Add the theme CSS to your stylesheet:
-
-```css
-@import "@xds/theme-whatsapp/theme.css";
-```
-
-This is required for component-level theme overrides (colors, radii, typography) to take effect.
-
-## Related Packages
-
-| Package | Description |
-|---------|-------------|
-| [`@xds/core`](https://github.com/facebookexperimental/xds/tree/main/packages/core) | Core components and theme system |
-| [`@xds/build`](https://github.com/facebookexperimental/xds/tree/main/packages/build) | Build plugins for StyleX source builds |
-| [`@xds/cli`](https://github.com/facebookexperimental/xds/tree/main/packages/cli) | CLI tooling including `xds docs theme` |
diff --git a/packages/themes/whatsapp/package.json b/packages/themes/whatsapp/package.json
deleted file mode 100644
index 3ba49e5cea..0000000000
--- a/packages/themes/whatsapp/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "name": "@xds/theme-whatsapp",
- "version": "0.0.13",
- "private": true,
- "description": "WhatsApp theme for XDS — green accent, warm grays, Roboto, rounded surfaces",
- "author": "Meta Open Source",
- "license": "MIT",
- "homepage": "https://github.com/facebookexperimental/xds#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/facebookexperimental/xds.git",
- "directory": "packages/themes/whatsapp"
- },
- "bugs": {
- "url": "https://github.com/facebookexperimental/xds/issues"
- },
- "keywords": [
- "xds",
- "theme",
- "whatsapp",
- "design-system",
- "design-tokens"
- ],
- "sideEffects": false,
- "main": "./dist/source.js",
- "module": "./dist/source.mjs",
- "types": "./dist/source.d.ts",
- "exports": {
- ".": {
- "types": "./dist/source.d.ts",
- "import": "./dist/source.mjs",
- "require": "./dist/source.js"
- },
- "./built": {
- "types": "./dist/whatsapp.d.ts",
- "import": "./dist/whatsapp.js",
- "require": "./dist/whatsapp.js"
- },
- "./theme.css": {
- "types": "./theme.css.d.ts",
- "default": "./dist/theme.css"
- }
- },
- "files": [
- "dist",
- "src"
- ],
- "scripts": {
- "build": "xds theme build src/whatsappTheme.ts -o dist/theme.css && tsup && tsc --project tsconfig.build.json"
- },
- "peerDependencies": {
- "@xds/core": "0.0.13",
- "react": ">=19"
- },
- "devDependencies": {
- "@xds/cli": "0.0.13"
- }
-}
diff --git a/packages/themes/whatsapp/src/icons.tsx b/packages/themes/whatsapp/src/icons.tsx
deleted file mode 100644
index 4ce41874c5..0000000000
--- a/packages/themes/whatsapp/src/icons.tsx
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- * WhatsApp theme icon registry
- *
- * Reuses Heroicons (same as the default theme). WhatsApp internally uses
- * Material Design-style icons (WDS icons), but those aren't open source.
- * Heroicons provide a clean, consistent alternative.
- */
-
-import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
-
-import {
- XMarkIcon,
- ChevronDownIcon,
- ChevronLeftIcon,
- ChevronRightIcon,
- CheckIcon,
- CalendarDaysIcon,
- ClockIcon,
- InformationCircleIcon,
- Bars3Icon,
- EllipsisHorizontalIcon,
- MagnifyingGlassIcon,
- ArrowUpIcon,
- ArrowDownIcon,
- ArrowsUpDownIcon,
- FunnelIcon,
- EyeSlashIcon,
- ViewColumnsIcon,
- ClipboardDocumentIcon,
- WrenchScrewdriverIcon,
- MicrophoneIcon,
-} from '@heroicons/react/24/outline';
-
-import {
- CheckCircleIcon,
- XCircleIcon,
- ExclamationTriangleIcon,
- ArrowTopRightOnSquareIcon,
- StopIcon,
- StopCircleIcon,
-} from '@heroicons/react/24/solid';
-
-const iconProps = {
- width: '1em',
- height: '1em',
- 'aria-hidden': true as const,
-};
-
-export const whatsappIconRegistry: XDSIconRegistry = {
- close: <XMarkIcon {...iconProps} />,
- chevronDown: <ChevronDownIcon {...iconProps} />,
- chevronLeft: <ChevronLeftIcon {...iconProps} />,
- chevronRight: <ChevronRightIcon {...iconProps} />,
- check: <CheckIcon {...iconProps} />,
- success: <CheckCircleIcon {...iconProps} />,
- error: <XCircleIcon {...iconProps} />,
- warning: <ExclamationTriangleIcon {...iconProps} />,
- info: <InformationCircleIcon {...iconProps} />,
- calendar: <CalendarDaysIcon {...iconProps} />,
- clock: <ClockIcon {...iconProps} />,
- externalLink: <ArrowTopRightOnSquareIcon {...iconProps} />,
- menu: <Bars3Icon {...iconProps} />,
- moreHorizontal: <EllipsisHorizontalIcon {...iconProps} />,
- search: <MagnifyingGlassIcon {...iconProps} />,
- arrowUp: <ArrowUpIcon {...iconProps} />,
- arrowDown: <ArrowDownIcon {...iconProps} />,
- arrowsUpDown: <ArrowsUpDownIcon {...iconProps} />,
- funnel: <FunnelIcon {...iconProps} />,
- eyeSlash: <EyeSlashIcon {...iconProps} />,
- viewColumns: <ViewColumnsIcon {...iconProps} />,
- copy: <ClipboardDocumentIcon {...iconProps} />,
- checkDouble: <CheckIcon {...iconProps} />,
- wrench: <WrenchScrewdriverIcon {...iconProps} />,
- stop: <StopIcon {...iconProps} />,
- microphone: <MicrophoneIcon {...iconProps} />,
-};
diff --git a/packages/themes/whatsapp/src/source.ts b/packages/themes/whatsapp/src/source.ts
deleted file mode 100644
index 7aee7a9699..0000000000
--- a/packages/themes/whatsapp/src/source.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export {whatsappTheme} from './whatsappTheme';
-export {whatsappIconRegistry} from './icons';
diff --git a/packages/themes/whatsapp/src/whatsappTheme.ts b/packages/themes/whatsapp/src/whatsappTheme.ts
deleted file mode 100644
index 8bbb0fd3cf..0000000000
--- a/packages/themes/whatsapp/src/whatsappTheme.ts
+++ /dev/null
@@ -1,445 +0,0 @@
-/**
- * WhatsApp Theme for XDS
- *
- * Derived from WhatsApp's internal design system (WDS). Colors are mapped
- * from WDS semantic tokens (WDSThemes.js) to XDS token names. Typography
- * uses Roboto — WhatsApp's primary typeface. Radius is slightly rounder
- * than XDS defaults to match WhatsApp's soft, approachable feel.
- *
- * Color palette source: WDS BaseColor + systemThemeTokenValue
- * Light mode: warm grays (warmGray50–800) for surfaces, green500 accent
- * Dark mode: neutral grays (neutralGray850–1000) for surfaces, green450 accent
- *
- * Key WDS design decisions preserved:
- * - Alpha-based text colors (blackAlpha60 / whiteAlpha60 for secondary)
- * - Warm gray tint in light mode surfaces (not pure white backgrounds)
- * - Green accent that shifts slightly between light/dark (500 → 450)
- * - on-accent flips: white in light mode, near-black in dark mode
- * - Pill-shaped primary buttons
- * - Generous border radius (16px containers, 8px elements)
- */
-
-import {defineTheme} from '@xds/core/theme';
-import {whatsappIconRegistry} from './icons';
-
-export const whatsappTheme = defineTheme({
- name: 'whatsapp',
-
- // Typography: Roboto — WhatsApp's primary typeface across all platforms.
- // WDS uses a non-geometric type scale (Body1=16, Body2=14, Body3=12,
- // Headline1=24, Headline2=22, LargeTitle1=32, LargeTitle2=28).
- // base=14 ratio=1.2 produces a close approximation.
- typography: {
- scale: {base: 14, ratio: 1.2},
- body: {
- family: 'Roboto',
- fallbacks:
- '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif',
- url: 'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap',
- },
- heading: {
- weight: 'medium',
- },
- code: {
- family: 'Roboto Mono',
- fallbacks: '"SF Mono", Monaco, Consolas, monospace',
- url: 'https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600;700&display=swap',
- },
- },
-
- // Radius: WhatsApp uses generously rounded surfaces — doubled radius scale.
- radius: {base: 4, multiplier: 2},
-
- // Motion: WhatsApp feels snappy but not jarring.
- // Slightly faster than XDS default, with ease-out for natural deceleration.
- motion: {fast: 150, medium: 350, slow: 825, ratio: 0.75},
-
- tokens: {
- // =========================================================================
- // Colors — derived from WDS systemThemeTokenValue (WDSThemes.js)
- // =========================================================================
-
- // Core accent: WDS green500 (light) / green450 (dark)
- '--color-accent': ['#1DAA61', '#21C063'],
- '--color-accent-muted': [
- 'rgba(29, 170, 97, 0.2)',
- 'rgba(33, 192, 99, 0.25)',
- ],
-
- // On-accent: WDS flips contrast — white on green (light), black on green (dark)
- '--color-on-accent': ['#FFFFFF', '#0A0A0A'],
- '--color-on-success': ['#FFFFFF', '#0A0A0A'],
- '--color-on-error': ['#FFFFFF', '#0A0A0A'],
- '--color-on-warning': ['#0A0A0A', '#0A0A0A'],
- '--color-on-dark': ['#FFFFFF', '#FFFFFF'],
- '--color-on-light': ['#000000', '#000000'],
-
- // Neutral: WDS surface-highlight (warmGray300Alpha15 / whiteAlpha10)
- '--color-neutral':
- 'light-dark(rgba(194, 189, 184, 0.15), rgba(255, 255, 255, 0.1))',
-
- // Surfaces: WDS uses warm grays in light, neutral grays in dark
- // surface-default: whiteOpaque / neutralGray900
- '--color-background-surface': ['#FFFFFF', '#161717'],
- // background-wash: warmGray75 / neutralGray900
- '--color-background-body': ['#F7F5F3', '#161717'],
- // surface-elevated-default: whiteOpaque / neutralGray850
- '--color-background-card': ['#FFFFFF', '#1D1F1F'],
- // surface-elevated-default (same as card for popovers)
- '--color-background-popover': ['#FFFFFF', '#1D1F1F'],
- // background-muted: warmGray75 / neutralGray850
- '--color-background-muted': ['#F7F5F3', '#1D1F1F'],
-
- // Overlay: WDS background-dimmer
- '--color-overlay': ['rgba(0, 0, 0, 0.32)', 'rgba(0, 0, 0, 0.32)'],
- '--color-overlay-hover': [
- 'rgba(0, 0, 0, 0.05)',
- 'rgba(255, 255, 255, 0.05)',
- ],
- '--color-overlay-pressed': [
- 'rgba(0, 0, 0, 0.2)',
- 'rgba(255, 255, 255, 0.2)',
- ],
-
- // Text: WDS content-default (neutralGray1000/neutralGray50),
- // content-deemphasized (blackAlpha60/whiteAlpha60),
- // content-disabled (neutralGray300/neutralGray700)
- '--color-text-primary': ['#0A0A0A', '#FAFAFA'],
- '--color-text-secondary': [
- 'rgba(0, 0, 0, 0.6)',
- 'rgba(255, 255, 255, 0.6)',
- ],
- '--color-text-disabled': ['#BDBDBD', '#424445'],
- // content-action-emphasized: green600 / green450
- '--color-text-accent': ['#1B8755', '#21C063'],
-
- // Icons: follow same pattern as text
- '--color-icon-accent': ['#1DAA61', '#21C063'],
- '--color-icon-primary': ['#0A0A0A', '#FAFAFA'],
- '--color-icon-secondary': [
- 'rgba(0, 0, 0, 0.6)',
- 'rgba(255, 255, 255, 0.6)',
- ],
- '--color-icon-disabled': ['#BDBDBD', '#424445'],
-
- // Status: WDS secondary-negative (red), secondary-positive (green),
- // secondary-warning (yellow)
- '--color-success': ['#1DAA61', '#71EB85'],
- '--color-success-muted': [
- 'rgba(29, 170, 97, 0.2)',
- 'rgba(113, 235, 133, 0.25)',
- ],
- '--color-error': ['#EA0038', '#FB5061'],
- '--color-error-muted': ['rgba(234, 0, 56, 0.2)', 'rgba(251, 80, 97, 0.25)'],
- '--color-warning': ['#FFB938', '#FFD279'],
- '--color-warning-muted': [
- 'rgba(255, 185, 56, 0.2)',
- 'rgba(255, 210, 121, 0.25)',
- ],
-
- // Border: WDS lines-divider (blackAlpha10/whiteAlpha10),
- // lines-outline-default (neutralGray400/neutralGray500)
- '--color-border': ['rgba(0, 0, 0, 0.1)', 'rgba(255, 255, 255, 0.1)'],
- '--color-border-emphasized': ['#959393', '#757778'],
-
- // Effects
- '--color-skeleton': ['#EEEEEE', '#424445'],
- '--color-shadow': ['rgba(0, 0, 0, 0.1)', 'rgba(0, 0, 0, 0.3)'],
- '--color-tint-hover': ['black', 'white'],
-
- // =========================================================================
- // Semantic color palette — mapped from WDS BaseColor
- // =========================================================================
-
- // Blue (WDS cobalt)
- '--color-background-blue': [
- 'rgba(0, 123, 252, 0.2)',
- 'rgba(0, 123, 252, 0.2)',
- ],
- '--color-border-blue': ['#007BFC', '#53A6FD'],
- '--color-icon-blue': ['#0063CB', '#53A6FD'],
- '--color-text-blue': ['#073D76', '#99CAFE'],
-
- // Cyan (WDS skyBlue)
- '--color-background-cyan': [
- 'rgba(0, 157, 226, 0.2)',
- 'rgba(0, 157, 226, 0.2)',
- ],
- '--color-border-cyan': ['#009DE2', '#53BDEB'],
- '--color-icon-cyan': ['#027EB5', '#53BDEB'],
- '--color-text-cyan': ['#074B6A', '#93D7F5'],
-
- // Gray (WDS warmGray/neutralGray)
- '--color-background-gray': [
- 'rgba(10, 10, 10, 0.05)',
- 'rgba(255, 255, 255, 0.1)',
- ],
- '--color-border-gray': ['#9F9891', '#757778'],
- '--color-icon-gray': ['#7C7771', '#858586'],
- '--color-text-gray': ['#0A0A0A', '#FAFAFA'],
-
- // Green (WDS green — the signature WhatsApp green)
- '--color-background-green': [
- 'rgba(29, 170, 97, 0.2)',
- 'rgba(29, 170, 97, 0.2)',
- ],
- '--color-border-green': ['#1DAA61', '#71EB85'],
- '--color-icon-green': ['#1DAA61', '#71EB85'],
- '--color-text-green': ['#15603E', '#ACFCAC'],
-
- // Orange (WDS orange)
- '--color-background-orange': [
- 'rgba(250, 101, 51, 0.2)',
- 'rgba(250, 101, 51, 0.2)',
- ],
- '--color-border-orange': ['#FA6533', '#FC9775'],
- '--color-icon-orange': ['#C4532D', '#FC9775'],
- '--color-text-orange': ['#6B3424', '#FDC1AD'],
-
- // Pink (WDS pink)
- '--color-background-pink': [
- 'rgba(255, 46, 116, 0.2)',
- 'rgba(255, 46, 116, 0.2)',
- ],
- '--color-border-pink': ['#FF2E74', '#FF72A1'],
- '--color-icon-pink': ['#D42A66', '#FF72A1'],
- '--color-text-pink': ['#6D1E3E', '#FFABC7'],
-
- // Purple (WDS purple)
- '--color-background-purple': [
- 'rgba(127, 102, 255, 0.2)',
- 'rgba(127, 102, 255, 0.2)',
- ],
- '--color-border-purple': ['#7F66FF', '#A791FF'],
- '--color-icon-purple': ['#5E47DE', '#A791FF'],
- '--color-text-purple': ['#3A327B', '#D1C4FF'],
-
- // Red (WDS red)
- '--color-background-red': [
- 'rgba(234, 0, 56, 0.2)',
- 'rgba(251, 80, 97, 0.2)',
- ],
- '--color-border-red': ['#EA0038', '#FB5061'],
- '--color-icon-red': ['#B80531', '#FB5061'],
- '--color-text-red': ['#61182E', '#FA99A4'],
-
- // Teal (WDS teal)
- '--color-background-teal': [
- 'rgba(2, 166, 152, 0.2)',
- 'rgba(2, 166, 152, 0.2)',
- ],
- '--color-border-teal': ['#02A698', '#42C7B8'],
- '--color-icon-teal': ['#028377', '#42C7B8'],
- '--color-text-teal': ['#074D4A', '#95DBD4'],
-
- // Yellow (WDS yellow)
- '--color-background-yellow': [
- 'rgba(255, 185, 56, 0.2)',
- 'rgba(255, 210, 121, 0.2)',
- ],
- '--color-border-yellow': ['#FFB938', '#FFD279'],
- '--color-icon-yellow': ['#C58730', '#FFD279'],
- '--color-text-yellow': ['#6D4E26', '#FFE4AF'],
-
- // =========================================================================
- // Element sizes — WDS button heights: small=32px, medium=40px, large=56px
- // These tokens are used by buttons, inputs, selects, and other elements.
- // =========================================================================
- '--size-element-sm': '32px',
- '--size-element-md': '40px',
- '--size-element-lg': '56px',
-
- // =========================================================================
- // Shadows — soft, WhatsApp-style elevation
- // =========================================================================
- '--shadow-low':
- '0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 6px light-dark(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2))',
- '--shadow-med':
- '0 2px 6px rgba(0, 0, 0, 0.08), 0 4px 12px light-dark(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.25))',
- // WDS popoverShadow: 0 12px 16px -4px rgb(10 10 10 / 0.1)
- '--shadow-high':
- '0 4px 8px rgba(0, 0, 0, 0.06), 0 12px 16px -4px light-dark(rgba(10, 10, 10, 0.1), rgba(0, 0, 0, 0.35))',
- },
-
- components: {
- // =========================================================================
- // Button — derived from WDSButton + WDSButtonColor*Config
- //
- // WDS variants: filled / tonal / outline / borderless
- // XDS variants: primary / secondary / ghost / destructive
- //
- // Mapping:
- // primary → WDS filled default (accent bg, on-accent text)
- // secondary → WDS tonal default (accent-deemphasized bg, accent-emphasized text)
- // ghost → WDS borderless default (transparent bg, accent-emphasized text)
- // destructive → WDS filled destructive (negative bg, on-accent text)
- //
- // Key WDS button behaviors preserved:
- // - Pill shape (borderRadius: 9999px) on all variants
- // - 40px medium height (WDS medium button = 40px)
- // - Body2Emphasized label (14px, weight 500)
- // - Filled buttons scale on hover (1.04) and press (0.97)
- // - Bouncy spring transition: 150ms cubic-bezier(0.175, 0.885, 0.32, 1.275)
- // - Focus ring: accent color, 2px solid, 2px offset
- // =========================================================================
- button: {
- // =======================================================================
- // Base — shared across all WDS button variants
- // - Pill shape (borderRadiusCircle = 9999px)
- // - Body2Emphasized label (14px, weight 500)
- // - Bouncy spring transition for hover/press transforms
- // - Size-specific padding: sm=16px, md=24px, lg=28px
- // =======================================================================
- base: {
- borderRadius: '9999px',
- fontWeight: '500',
- paddingInline: '24px',
- transition:
- 'background-image 150ms cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 150ms cubic-bezier(0.175, 0.885, 0.32, 1.275)',
- },
- 'size:sm': {
- paddingInline: '16px',
- },
- 'size:lg': {
- paddingInline: '28px',
- },
-
- // =======================================================================
- // primary → WDS "filled default"
- // bg: accent, text: on-accent, scale hover/press
- // =======================================================================
- 'variant:primary': {
- ':hover': {transform: 'scale(1.04)'},
- ':active': {transform: 'scale(0.97)'},
- },
-
- // =======================================================================
- // secondary → WDS "tonal default"
- // bg: accent-deemphasized (green100/green800)
- // text: accent-emphasized (green700/green100)
- // =======================================================================
- 'variant:secondary': {
- backgroundColor: 'light-dark(#D9FDD3, #103529)',
- color: 'light-dark(#15603E, #D9FDD3)',
- },
-
- // =======================================================================
- // ghost → WDS "borderless default"
- // bg: transparent, text: content-action-emphasized (green600/green450)
- // =======================================================================
- 'variant:ghost': {
- color: 'light-dark(#1B8755, #21C063)',
- },
-
- // =======================================================================
- // destructive → WDS "filled destructive"
- // bg: secondary-negative (red400/red300), text: on-accent, scale hover/press
- // =======================================================================
- 'variant:destructive': {
- ':hover': {transform: 'scale(1.04)'},
- ':active': {transform: 'scale(0.97)'},
- },
-
- // =======================================================================
- // NEW: outline → WDS "outline default"
- // bg: transparent, 1px border (lines-outline-deemphasized)
- // text: content-action-emphasized (green600/green450)
- // =======================================================================
- 'variant:outline': {
- backgroundColor: 'transparent',
- borderWidth: '1px',
- borderStyle: 'solid',
- borderColor: 'light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.1))',
- color: 'light-dark(#1B8755, #21C063)',
- },
-
- // =======================================================================
- // NEW: tonal-destructive → WDS "tonal destructive"
- // bg: secondary-negative-deemphasized (red75/red800)
- // text: secondary-negative-emphasized (red500/red200)
- // =======================================================================
- 'variant:tonal-destructive': {
- backgroundColor: 'light-dark(#FDE8EB, #321622)',
- color: 'light-dark(#B80531, #FA99A4)',
- },
-
- // =======================================================================
- // NEW: outline-destructive → WDS "outline destructive"
- // bg: transparent, 1px border (lines-outline-deemphasized)
- // text: secondary-negative-emphasized (red500/red200)
- // =======================================================================
- 'variant:outline-destructive': {
- backgroundColor: 'transparent',
- borderWidth: '1px',
- borderStyle: 'solid',
- borderColor: 'light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.1))',
- color: 'light-dark(#B80531, #FA99A4)',
- },
-
- // =======================================================================
- // NEW: ghost-destructive → WDS "borderless destructive"
- // bg: transparent, text: secondary-negative-emphasized (red500/red200)
- // =======================================================================
- 'variant:ghost-destructive': {
- backgroundColor: 'transparent',
- color: 'light-dark(#B80531, #FA99A4)',
- },
- },
-
- // =========================================================================
- // Badge — rounded, medium weight
- // =========================================================================
- badge: {
- base: {
- fontWeight: '500',
- },
- },
-
- // =========================================================================
- // Card — clean, no heavy borders, elevation via shadow
- // =========================================================================
- card: {
- base: {
- borderColor:
- 'light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.06))',
- },
- },
-
- // =========================================================================
- // Divider — subtle, WDS-style thin divider (lines-divider token)
- // =========================================================================
- divider: {
- base: {
- borderTopColor:
- 'light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1))',
- },
- },
-
- // =========================================================================
- // TextInput — derived from WDSTextFieldVariants.web.js
- //
- // WDS web textfield:
- // height: 40px (covered by --size-element-md token)
- // borderRadius: borderRadiusSingle = 8px (covered by radius multiplier)
- // border: 1px solid lines-outline-default
- // focus: 2px outline, accent (green) color
- // hover (unfocused): surface-highlight background
- // caret: accent color
- // padding: spacingSinglePlus (12px) inline
- // disabled: 38% opacity + cursor not-allowed
- // error: secondary-negative outline color
- // =========================================================================
- 'text-input': {
- base: {
- borderColor: 'light-dark(#959393, #757778)',
- paddingInline: '12px',
- caretColor: 'light-dark(#1DAA61, #21C063)',
- ':focus-within': {
- outlineColor: 'light-dark(#1DAA61, #21C063)',
- },
- },
- },
- },
-
- icons: whatsappIconRegistry,
-});
diff --git a/packages/themes/whatsapp/theme.css.d.ts b/packages/themes/whatsapp/theme.css.d.ts
deleted file mode 100644
index cb0ff5c3b5..0000000000
--- a/packages/themes/whatsapp/theme.css.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export {};
diff --git a/packages/themes/whatsapp/tsconfig.build.json b/packages/themes/whatsapp/tsconfig.build.json
deleted file mode 100644
index 03d4647cd5..0000000000
--- a/packages/themes/whatsapp/tsconfig.build.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "extends": "../../../tsconfig.json",
- "compilerOptions": {
- "outDir": "./dist",
- "rootDir": "./src",
- "noEmit": false,
- "declaration": true,
- "emitDeclarationOnly": true
- },
- "include": [
- "src"
- ]
-}
diff --git a/packages/themes/whatsapp/tsup.config.ts b/packages/themes/whatsapp/tsup.config.ts
deleted file mode 100644
index c5231d2a55..0000000000
--- a/packages/themes/whatsapp/tsup.config.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import {defineConfig} from 'tsup';
-
-export default defineConfig({
- entry: ['src/source.ts', 'src/icons.tsx'],
- format: ['cjs', 'esm'],
- dts: false,
- clean: false, // Don't clean — xds theme build already put theme files in dist/
- external: ['@xds/core', 'react', '@heroicons/react'],
-});