An open source design system that's fully customizable and agent ready
TypeScript
feat(theme-daily): add Daily theme with Figtree font, Lucide icons (#1201)
rubyycheungac066d357cb6
diff --git a/apps/sandbox/next.config.mjs b/apps/sandbox/next.config.mjsindex d5a53a654f..fe32ba179b 100644--- a/apps/sandbox/next.config.mjs+++ b/apps/sandbox/next.config.mjs@@ -27,6 +27,7 @@ const nextConfig = {'@xds/theme-neutral','@xds/theme-brutalist','@xds/theme-meta',+ '@xds/theme-daily',],images: {unoptimized: true,diff --git a/apps/sandbox/package.json b/apps/sandbox/package.jsonindex deba042677..330c96859a 100644--- a/apps/sandbox/package.json+++ b/apps/sandbox/package.json@@ -19,6 +19,7 @@"@xds/theme-brutalist": "*","@xds/theme-meta": "*","@xds/theme-whatsapp": "*",+ "@xds/theme-daily": "*","next": "^15.5.14","react": "^19.2.4","react-dom": "^19.2.4"diff --git a/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsxindex 21984bede1..6eb51b4183 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsx@@ -27,7 +27,6 @@ import {XDSSlider} from '@xds/core/Slider';import {XDSCalendar} from '@xds/core/Calendar';import {XDSToken} from '@xds/core/Token';-const styles = stylex.create({row: {display: 'flex',@@ -96,7 +95,14 @@ function Sparkline({values}: {values: number[]}) {export default function ExampleCardsPage() {const {themeName, setThemeName, mode, setMode} = useThemeControls();- const themeOptions = ['Default', 'Neutral', 'Brutalist', 'Meta', 'WhatsApp'];+ const themeOptions = [+ 'Default',+ 'Neutral',+ 'Brutalist',+ 'Meta',+ 'WhatsApp',+ 'Daily',+ ];const modeOptions = ['Light', 'Dark'];const [email, setEmail] = useState('[email protected]');@@ -125,8 +131,16 @@ export default function ExampleCardsPage() {return (<>- <div style={{display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: '12px 16px'}}>- <XDSHeading level={3}>{themeName.charAt(0).toUpperCase() + themeName.slice(1)}</XDSHeading>+ <div+ style={{+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'space-between',+ padding: '12px 16px',+ }}>+ <XDSHeading level={3}>+ {themeName.charAt(0).toUpperCase() + themeName.slice(1)}+ </XDSHeading><XDSHStack gap={2}><XDSSelectorlabel="Theme"@@ -147,13 +161,23 @@ export default function ExampleCardsPage() {</XDSHStack></div><XDSDivider />- <div style={{columnCount: 4, columnGap: 24, padding: 24, backgroundColor: 'var(--color-background-muted)', minHeight: '100%'}}>+ <div+ style={{+ columnCount: 4,+ columnGap: 24,+ padding: 24,+ backgroundColor: 'var(--color-background-muted)',+ minHeight: '100%',+ }}>{/* Contribution History */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.row)}>- <XDSText type="label" weight="bold">Contribution History</XDSText>+ <XDSText type="label" weight="bold">+ Contribution History+ </XDSText><XDSBadge label="+2% vs last month" variant="success" /></div><XDSText type="supporting" color="secondary">@@ -178,27 +202,42 @@ export default function ExampleCardsPage() {<XDSDivider /><div {...stylex.props(styles.row)}><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">UPCOMING</XDSText>+ <XDSText type="supporting" color="secondary">+ UPCOMING+ </XDSText><XDSText type="label">May 25, 2024</XDSText>- <XDSText type="supporting" color="secondary">$1,000 scheduled</XDSText>+ <XDSText type="supporting" color="secondary">+ $1,000 scheduled+ </XDSText></XDSVStack><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">AUTO-SAVE PLAN</XDSText>+ <XDSText type="supporting" color="secondary">+ AUTO-SAVE PLAN+ </XDSText><XDSText type="label">Accelerated</XDSText>- <XDSText type="supporting" color="secondary">Recurring weekly</XDSText>+ <XDSText type="supporting" color="secondary">+ Recurring weekly+ </XDSText></XDSVStack></div>- <XDSButton label="View Full Report" variant="primary" xstyle={styles.fullWidth} />+ <XDSButton+ label="View Full Report"+ variant="primary"+ xstyle={styles.fullWidth}+ /></XDSVStack></XDSCard></div>{/* Payout Threshold */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSText type="label" weight="bold">Payout Threshold</XDSText>+ <XDSText type="label" weight="bold">+ Payout Threshold+ </XDSText><XDSButton label="×" variant="ghost" size="sm" /></div><XDSText type="supporting" color="secondary">@@ -206,7 +245,11 @@ export default function ExampleCardsPage() {</XDSText><XDSSelectorlabel="Preferred Currency"- options={['USD — United States Dollar', 'EUR — Euro', 'GBP — British Pound']}+ options={[+ 'USD — United States Dollar',+ 'EUR — Euro',+ 'GBP — British Pound',+ ]}value="USD — United States Dollar"onChange={() => {}}/>@@ -214,7 +257,7 @@ export default function ExampleCardsPage() {<XDSText type="label">Minimum Payout Amount</XDSText><XDSHeading level={2}>$2500.00</XDSHeading><XDSText type="supporting" color="secondary">- $50 (MIN) $10,000 (MAX)+ $50 (MIN) $10,000 (MAX)</XDSText></XDSVStack><XDSTextInput@@ -223,38 +266,57 @@ export default function ExampleCardsPage() {value={notes}onChange={setNotes}/>- <XDSButton label="Save Threshold" variant="primary" xstyle={styles.fullWidth} />+ <XDSButton+ label="Save Threshold"+ variant="primary"+ xstyle={styles.fullWidth}+ /></XDSVStack></XDSCard></div>{/* Savings Targets */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSText type="label" weight="bold">Savings Targets</XDSText>+ <XDSText type="label" weight="bold">+ Savings Targets+ </XDSText><XDSButton label="New Goal" variant="primary" size="sm" /></div><XDSText type="supporting" color="secondary">Active milestones for 2024</XDSText><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">RETIREMENT</XDSText>+ <XDSText type="supporting" color="secondary">+ RETIREMENT+ </XDSText><XDSHeading level={2}>$420,000</XDSHeading><XDSProgressBar label="Retirement" value={65} /><div {...stylex.props(styles.row)}>- <XDSText type="supporting" color="secondary">65% achieved</XDSText>- <XDSText type="supporting" color="secondary">$273,000</XDSText>+ <XDSText type="supporting" color="secondary">+ 65% achieved+ </XDSText>+ <XDSText type="supporting" color="secondary">+ $273,000+ </XDSText></div></XDSVStack><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">REAL ESTATE</XDSText>+ <XDSText type="supporting" color="secondary">+ REAL ESTATE+ </XDSText><XDSHeading level={2}>$85,000</XDSHeading><XDSProgressBar label="Real Estate" value={32} /><div {...stylex.props(styles.row)}>- <XDSText type="supporting" color="secondary">32% achieved</XDSText>- <XDSText type="supporting" color="secondary">$27,200</XDSText>+ <XDSText type="supporting" color="secondary">+ 32% achieved+ </XDSText>+ <XDSText type="supporting" color="secondary">+ $27,200+ </XDSText></div></XDSVStack><XDSText type="supporting" color="secondary">@@ -265,10 +327,13 @@ export default function ExampleCardsPage() {</div>{/* Buy Investment */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}>- <XDSText type="label" weight="bold">Buy Investment</XDSText>+ <XDSText type="label" weight="bold">+ Buy Investment+ </XDSText><XDSTextInputlabel="Amount to Invest"value="1,000.00"@@ -286,25 +351,37 @@ export default function ExampleCardsPage() {<XDSDivider /><div {...stylex.props(styles.row)}><XDSText type="body">Estimated Shares</XDSText>- <XDSText type="body" weight="bold">1.95</XDSText>+ <XDSText type="body" weight="bold">+ 1.95+ </XDSText></div><div {...stylex.props(styles.row)}><XDSText type="body">Buying Power</XDSText>- <XDSText type="body" weight="bold">$12,450.00</XDSText>+ <XDSText type="body" weight="bold">+ $12,450.00+ </XDSText></div>- <XDSButton label="Review Order" variant="primary" xstyle={styles.fullWidth} />+ <XDSButton+ label="Review Order"+ variant="primary"+ xstyle={styles.fullWidth}+ /><XDSText type="supporting" color="secondary">- Trades are typically executed within minutes during market hours.+ Trades are typically executed within minutes during market+ hours.</XDSText></XDSVStack></XDSCard></div>{/* Account Access */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}>- <XDSText type="label" weight="bold">Account Access</XDSText>+ <XDSText type="label" weight="bold">+ Account Access+ </XDSText><XDSText type="supporting" color="secondary">Update your credentials or re-authenticate.</XDSText>@@ -319,7 +396,11 @@ export default function ExampleCardsPage() {value="password123"onChange={() => {}}/>- <XDSButton label="Update Security" variant="primary" xstyle={styles.fullWidth} />+ <XDSButton+ label="Update Security"+ variant="primary"+ xstyle={styles.fullWidth}+ /><XDSVStack gap={2}><XDSHStack gap={2} vAlign="center"><XDSStatusDot variant="warning" label="Warning" />@@ -334,39 +415,62 @@ export default function ExampleCardsPage() {</div>{/* Payout Preferences */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSText type="label" weight="bold">Payout Preferences</XDSText>+ <XDSText type="label" weight="bold">+ Payout Preferences+ </XDSText><XDSButton label="×" variant="ghost" size="sm" /></div>- <XDSText type="supporting" color="secondary">Receiving Method</XDSText>+ <XDSText type="supporting" color="secondary">+ Receiving Method+ </XDSText><XDSTextInputlabel="Account Holder Name"value="Synthetic Horizons Music LLC"onChange={() => {}}/>- <XDSRadioList label="Receiving Method" value="bank" onChange={() => {}}>- <XDSRadioListItem value="bank" label="Bank Transfer — SWIFT / IBAN" />- <XDSRadioListItem value="paypal" label="PayPal — Instant Payout" />+ <XDSRadioList+ label="Receiving Method"+ value="bank"+ onChange={() => {}}>+ <XDSRadioListItem+ value="bank"+ label="Bank Transfer — SWIFT / IBAN"+ />+ <XDSRadioListItem+ value="paypal"+ label="PayPal — Instant Payout"+ /></XDSRadioList><XDSTextInputlabel="IBAN / Account Number"value="DE89 3704 0044 ..."onChange={() => {}}/>- <XDSButton label="Save Payout Settings" variant="primary" xstyle={styles.fullWidth} />+ <XDSButton+ label="Save Payout Settings"+ variant="primary"+ xstyle={styles.fullWidth}+ /></XDSVStack></XDSCard></div>{/* Stock Performance */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}>- <XDSText type="label" weight="bold">Stock Performance</XDSText>- <XDSText type="supporting" color="secondary">6-month price history.</XDSText>+ <XDSText type="label" weight="bold">+ Stock Performance+ </XDSText>+ <XDSText type="supporting" color="secondary">+ 6-month price history.+ </XDSText><XDSSelectorlabel="Ticker"options={['VOO', 'AAPL', 'GOOGL', 'MSFT']}@@ -375,21 +479,31 @@ export default function ExampleCardsPage() {isLabelHidden/><div {...stylex.props(styles.chart)}>- {[30, 45, 38, 52, 48, 55, 42, 60, 58, 65, 50, 70].map((h, i) => (- <div key={i} {...stylex.props(styles.bar)} style={{height: h}} />- ))}+ {[30, 45, 38, 52, 48, 55, 42, 60, 58, 65, 50, 70].map(+ (h, i) => (+ <div+ key={i}+ {...stylex.props(styles.bar)}+ style={{height: h}}+ />+ ),+ )}</div></XDSVStack></XDSCard></div>{/* Distribute Track */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}>- <XDSText type="label" weight="bold">Distribute Track</XDSText>+ <XDSText type="label" weight="bold">+ Distribute Track+ </XDSText><XDSText type="supporting" color="secondary">- Upload your first master and start reaching listeners on Spotify, Apple Music and more.+ Upload your first master and start reaching listeners on+ Spotify, Apple Music and more.</XDSText><XDSHStack gap={2}><XDSButton label="Create Release" variant="primary" size="sm" />@@ -400,71 +514,125 @@ export default function ExampleCardsPage() {</div>{/* Clearinghouse Balance */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}>- <XDSText type="supporting" color="secondary">Clearhouse Balance</XDSText>+ <XDSText type="supporting" color="secondary">+ Clearhouse Balance+ </XDSText><XDSHeading level={1}>$0.00</XDSHeading><XDSHStack gap={2} vAlign="center"><div {...stylex.props(styles.dot)} />- <XDSText type="supporting" color="secondary">Pending Setup</XDSText>+ <XDSText type="supporting" color="secondary">+ Pending Setup+ </XDSText></XDSHStack><XDSDivider /><div {...stylex.props(styles.row)}><XDSText type="body">Net Royalties</XDSText>- <XDSText type="body" weight="bold">$0.00</XDSText>+ <XDSText type="body" weight="bold">+ $0.00+ </XDSText></div><div {...stylex.props(styles.row)}><XDSText type="body">Processing Fee</XDSText>- <XDSText type="body" weight="bold">-$0.00</XDSText>+ <XDSText type="body" weight="bold">+ -$0.00+ </XDSText></div><XDSDivider /><div {...stylex.props(styles.row)}><XDSText type="body">Total Ready to Claim</XDSText>- <XDSText type="body" weight="bold">$0.00 USD</XDSText>+ <XDSText type="body" weight="bold">+ $0.00 USD+ </XDSText></div><XDSText type="supporting" color="secondary">- Once your bank is connected, balances over $10.00 are automatically eligible for monthly distribution on the 15th of each month.+ Once your bank is connected, balances over $10.00 are+ automatically eligible for monthly distribution on the 15th of+ each month.</XDSText></XDSVStack></XDSCard></div>{/* Recent Transactions */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.row)}><XDSVStack gap={1}>- <XDSText type="label" weight="bold">Recent Transactions</XDSText>+ <XDSText type="label" weight="bold">+ Recent Transactions+ </XDSText><XDSText type="supporting" color="secondary">Your latest account activity.</XDSText></XDSVStack>- <XDSLink label="View All" href="#">View All</XDSLink>+ <XDSLink label="View All" href="#">+ View All+ </XDSLink></div><XDSDivider />{[- {name: 'Blue Bottle Coffee', cat: 'Food & Drink', date: 'Today, 10:24 AM', amt: '-$6.50', initials: 'BB'},- {name: 'Whole Foods Market', cat: 'Groceries', date: 'Yesterday', amt: '-$142.30', initials: 'WF'},- {name: 'Stripe Payout', cat: 'Income', date: 'Oct 12', amt: '+$4,200.00', initials: 'SP'},- {name: 'Uber Technologies', cat: 'Transport', date: 'Oct 11', amt: '-$24.10', initials: 'UT'},- {name: 'Netflix Subscription', cat: 'Entertainment', date: 'Oct 10', amt: '-$19.99', initials: 'NS'},+ {+ name: 'Blue Bottle Coffee',+ cat: 'Food & Drink',+ date: 'Today, 10:24 AM',+ amt: '-$6.50',+ initials: 'BB',+ },+ {+ name: 'Whole Foods Market',+ cat: 'Groceries',+ date: 'Yesterday',+ amt: '-$142.30',+ initials: 'WF',+ },+ {+ name: 'Stripe Payout',+ cat: 'Income',+ date: 'Oct 12',+ amt: '+$4,200.00',+ initials: 'SP',+ },+ {+ name: 'Uber Technologies',+ cat: 'Transport',+ date: 'Oct 11',+ amt: '-$24.10',+ initials: 'UT',+ },+ {+ name: 'Netflix Subscription',+ cat: 'Entertainment',+ date: 'Oct 10',+ amt: '-$19.99',+ initials: 'NS',+ },].map((txn, i) => (<div key={i}><div {...stylex.props(styles.row)}><XDSHStack gap={3} vAlign="center"><XDSAvatar name={txn.initials} size="small" /><XDSVStack gap={0}>- <XDSText type="body" weight="bold">{txn.name}</XDSText>- <XDSText type="supporting" color="secondary">{txn.cat}</XDSText>+ <XDSText type="body" weight="bold">+ {txn.name}+ </XDSText>+ <XDSText type="supporting" color="secondary">+ {txn.cat}+ </XDSText></XDSVStack></XDSHStack><XDSVStack gap={0} style={{alignItems: 'flex-end'}}><XDSText type="body" weight="bold">{txn.amt}</XDSText>- <XDSText type="supporting" color="secondary">{txn.date}</XDSText>+ <XDSText type="supporting" color="secondary">+ {txn.date}+ </XDSText></XDSVStack></div>{i < 4 && <XDSDivider />}@@ -475,33 +643,67 @@ export default function ExampleCardsPage() {</div>{/* Card Balance */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.row)}><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Card Balance</XDSText>+ <XDSText type="supporting" color="secondary">+ Card Balance+ </XDSText><XDSHeading level={3}>US$12.94</XDSHeading>- <XDSText type="supporting" color="secondary">US$ 1,337.06 Available</XDSText>+ <XDSText type="supporting" color="secondary">+ US$ 1,337.06 Available+ </XDSText></XDSVStack><XDSVStack gap={0} style={{alignItems: 'flex-end'}}>- <XDSText type="supporting" color="secondary">Payment Due</XDSText>+ <XDSText type="supporting" color="secondary">+ Payment Due+ </XDSText><XDSHeading level={3}>1 Apr</XDSHeading>- <XDSLink label="Pay Early" href="#">Pay Early</XDSLink>+ <XDSLink label="Pay Early" href="#">+ Pay Early+ </XDSLink></XDSVStack></div>- <XDSText type="supporting" color="secondary">Yearly Activity</XDSText>+ <XDSText type="supporting" color="secondary">+ Yearly Activity+ </XDSText><XDSHStack gap={2} vAlign="center">- <XDSText type="supporting" color="secondary">+US$0.25 Daily Cash</XDSText>+ <XDSText type="supporting" color="secondary">+ +US$0.25 Daily Cash+ </XDSText></XDSHStack><div {...stylex.props(styles.chart)}>- {[20, 35, 15, 45, 30, 50, 25, 40, 55, 35, 45, 30].map((h, i) => (- <div key={i} {...stylex.props(styles.bar)} style={{height: h}} />- ))}+ {[20, 35, 15, 45, 30, 50, 25, 40, 55, 35, 45, 30].map(+ (h, i) => (+ <div+ key={i}+ {...stylex.props(styles.bar)}+ style={{height: h}}+ />+ ),+ )}</div><XDSHStack gap={2}>- {['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'].map((m, i) => (- <XDSText key={i} type="supporting" color="secondary">{m}</XDSText>+ {[+ 'J',+ 'F',+ 'M',+ 'A',+ 'M',+ 'J',+ 'J',+ 'A',+ 'S',+ 'O',+ 'N',+ 'D',+ ].map((m, i) => (+ <XDSText key={i} type="supporting" color="secondary">+ {m}+ </XDSText>))}</XDSHStack></XDSVStack>@@ -509,29 +711,50 @@ export default function ExampleCardsPage() {</div>{/* Power Usage */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}>- <XDSText type="label" weight="bold">Power Usage</XDSText>- <XDSText type="supporting" color="secondary">Whole Home</XDSText>+ <XDSText type="label" weight="bold">+ Power Usage+ </XDSText>+ <XDSText type="supporting" color="secondary">+ Whole Home+ </XDSText><div {...stylex.props(styles.chart)}>- {[60, 45, 70, 55, 40, 65, 50, 35, 55, 45, 60, 50].map((h, i) => (- <div key={i} {...stylex.props(styles.bar)} style={{height: h}} />- ))}+ {[60, 45, 70, 55, 40, 65, 50, 35, 55, 45, 60, 50].map(+ (h, i) => (+ <div+ key={i}+ {...stylex.props(styles.bar)}+ style={{height: h}}+ />+ ),+ )}</div><XDSDivider /><div {...stylex.props(styles.row)}><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Currently Using</XDSText>- <XDSText type="label" weight="bold">3.4 kW</XDSText>+ <XDSText type="supporting" color="secondary">+ Currently Using+ </XDSText>+ <XDSText type="label" weight="bold">+ 3.4 kW+ </XDSText></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Solar Gen</XDSText>- <XDSText type="label" weight="bold" color="active">+1.2 kW</XDSText>+ <XDSText type="supporting" color="secondary">+ Solar Gen+ </XDSText>+ <XDSText type="label" weight="bold" color="active">+ +1.2 kW+ </XDSText></XDSVStack></div><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">Battery Level</XDSText>+ <XDSText type="supporting" color="secondary">+ Battery Level+ </XDSText><XDSProgressBar label="Battery" value={85} hasValueLabel /></XDSVStack></XDSVStack>@@ -539,12 +762,16 @@ export default function ExampleCardsPage() {</div>{/* Explore Catalog */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}>- <XDSText type="label" weight="bold">Explore Catalog</XDSText>+ <XDSText type="label" weight="bold">+ Explore Catalog+ </XDSText><XDSText type="supporting" color="secondary">- Check your ISRC codes, metadata, and visual assets before going live.+ Check your ISRC codes, metadata, and visual assets before going+ live.</XDSText><XDSButton label="View Catalog" variant="primary" size="sm" /></XDSVStack>@@ -552,11 +779,14 @@ export default function ExampleCardsPage() {</div>{/* Transfer Funds */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSText type="label" weight="bold">Transfer Funds</XDSText>+ <XDSText type="label" weight="bold">+ Transfer Funds+ </XDSText><XDSButton label="×" variant="ghost" size="sm" /></div><XDSText type="supporting" color="secondary">@@ -570,8 +800,14 @@ export default function ExampleCardsPage() {<XDSSelectorlabel="From Account"options={[- {value: 'checking', label: 'Main Checking (...8401) — $12,450.00'},- {value: 'savings', label: 'High Yield Savings (...1992) — $42,100.00'},+ {+ value: 'checking',+ label: 'Main Checking (...8401) — $12,450.00',+ },+ {+ value: 'savings',+ label: 'High Yield Savings (...1992) — $42,100.00',+ },]}value={fromAccount}onChange={setFromAccount}@@ -579,8 +815,14 @@ export default function ExampleCardsPage() {<XDSSelectorlabel="To Account"options={[- {value: 'savings', label: 'High Yield Savings (...1992) — $42,100.00'},- {value: 'checking', label: 'Main Checking (...8401) — $12,450.00'},+ {+ value: 'savings',+ label: 'High Yield Savings (...1992) — $42,100.00',+ },+ {+ value: 'checking',+ label: 'Main Checking (...8401) — $12,450.00',+ },]}value={toAccount}onChange={setToAccount}@@ -588,28 +830,42 @@ export default function ExampleCardsPage() {<XDSDivider /><div {...stylex.props(styles.row)}><XDSText type="body">Estimated arrival:</XDSText>- <XDSText type="body" weight="bold">Today, Apr 14</XDSText>+ <XDSText type="body" weight="bold">+ Today, Apr 14+ </XDSText></div><div {...stylex.props(styles.row)}><XDSText type="body">Transaction fee:</XDSText>- <XDSText type="body" weight="bold">$0.00</XDSText>+ <XDSText type="body" weight="bold">+ $0.00+ </XDSText></div><div {...stylex.props(styles.row)}><XDSText type="body">Total amount:</XDSText>- <XDSText type="body" weight="bold">$1,200.00</XDSText>+ <XDSText type="body" weight="bold">+ $1,200.00+ </XDSText></div>- <XDSButton label="Confirm Transfer" variant="primary" xstyle={styles.fullWidth} />+ <XDSButton+ label="Confirm Transfer"+ variant="primary"+ xstyle={styles.fullWidth}+ /></XDSVStack></XDSCard></div>{/* Set a New Milestone */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}>- <XDSText type="label" weight="bold">Set a new milestone</XDSText>+ <XDSText type="label" weight="bold">+ Set a new milestone+ </XDSText><XDSText type="supporting" color="secondary">- Define your financial target and we'll help you pace your savings.+ Define your financial target and we'll help you pace your+ savings.</XDSText><XDSTextInputlabel="Goal Name"@@ -638,12 +894,16 @@ export default function ExampleCardsPage() {</div>{/* Connect Bank */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}>- <XDSText type="label" weight="bold">Connect Bank</XDSText>+ <XDSText type="label" weight="bold">+ Connect Bank+ </XDSText><XDSText type="supporting" color="secondary">- Link your payment method to receive monthly royalty distributions automatically.+ Link your payment method to receive monthly royalty+ distributions automatically.</XDSText><XDSButton label="Set Up Payouts" variant="primary" size="sm" /></XDSVStack>@@ -651,11 +911,14 @@ export default function ExampleCardsPage() {</div>{/* Preferences */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSText type="label" weight="bold">Preferences</XDSText>+ <XDSText type="label" weight="bold">+ Preferences+ </XDSText><XDSButton label="×" variant="ghost" size="sm" /></div><XDSText type="supporting" color="secondary">@@ -663,7 +926,11 @@ export default function ExampleCardsPage() {</XDSText><XDSSelectorlabel="Default Currency"- options={['USD — United States Dollar', 'EUR — Euro', 'GBP — British Pound']}+ options={[+ 'USD — United States Dollar',+ 'EUR — Euro',+ 'GBP — British Pound',+ ]}value="USD — United States Dollar"onChange={() => {}}/>@@ -673,7 +940,8 @@ export default function ExampleCardsPage() {onChange={setPublicStats}/><XDSText type="supporting" color="secondary">- Allow others to see your total stream count and listening activity+ Allow others to see your total stream count and listening+ activity</XDSText><XDSSwitchlabel="Email Notifications"@@ -693,11 +961,14 @@ export default function ExampleCardsPage() {</div>{/* Settings Navigation */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSHStack gap={6}><XDSVStack gap={3} style={{flex: 1}}>- <XDSText type="label" weight="bold" color="secondary">Overview</XDSText>+ <XDSText type="label" weight="bold" color="secondary">+ Overview+ </XDSText>{[{name: 'Dashboard', color: 'info' as const},{name: 'Transactions', color: 'info' as const},@@ -714,7 +985,9 @@ export default function ExampleCardsPage() {))}</XDSVStack><XDSVStack gap={3} style={{flex: 1}}>- <XDSText type="label" weight="bold" color="secondary">Account</XDSText>+ <XDSText type="label" weight="bold" color="secondary">+ Account+ </XDSText>{[{name: 'Profile', color: 'info' as const},{name: 'Billing', color: 'info' as const},@@ -735,29 +1008,56 @@ export default function ExampleCardsPage() {</div>{/* Payments Navigation */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}><XDSHStack gap={2} vAlign="center">- <XDSText type="supporting" color="secondary">Home</XDSText>- <XDSText type="supporting" color="secondary">›</XDSText>- <XDSText type="supporting" color="secondary">...</XDSText>- <XDSText type="supporting" color="secondary">›</XDSText>+ <XDSText type="supporting" color="secondary">+ Home+ </XDSText>+ <XDSText type="supporting" color="secondary">+ ›+ </XDSText>+ <XDSText type="supporting" color="secondary">+ ...+ </XDSText>+ <XDSText type="supporting" color="secondary">+ ›+ </XDSText><XDSText type="label">Payments</XDSText></XDSHStack><XDSDivider />{[- {title: 'Change transfer limit', desc: 'Adjust how much you can send from your balance.'},- {title: 'Scheduled transfers', desc: 'Set up a transfer to send at a later date.'},- {title: 'Direct Debits', desc: 'Set up and manage regular payments.'},- {title: 'Recurring card payments', desc: 'Manage your repeated card transactions.'},+ {+ title: 'Change transfer limit',+ desc: 'Adjust how much you can send from your balance.',+ },+ {+ title: 'Scheduled transfers',+ desc: 'Set up a transfer to send at a later date.',+ },+ {+ title: 'Direct Debits',+ desc: 'Set up and manage regular payments.',+ },+ {+ title: 'Recurring card payments',+ desc: 'Manage your repeated card transactions.',+ },].map((item, i) => (<div key={i} {...stylex.props(styles.row)}><XDSVStack gap={1}>- <XDSText type="body" weight="bold">{item.title}</XDSText>- <XDSText type="supporting" color="secondary">{item.desc}</XDSText>+ <XDSText type="body" weight="bold">+ {item.title}+ </XDSText>+ <XDSText type="supporting" color="secondary">+ {item.desc}+ </XDSText></XDSVStack>- <XDSText type="body" color="secondary">›</XDSText>+ <XDSText type="body" color="secondary">+ ›+ </XDSText></div>))}</XDSVStack>@@ -765,7 +1065,8 @@ export default function ExampleCardsPage() {</div>{/* FAQ / Settings Tabs */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}><XDSTabList value={settingsTab} onChange={setSettingsTab}>@@ -779,40 +1080,63 @@ export default function ExampleCardsPage() {How do I set up a custom financial goal?</XDSText><XDSText type="body" color="secondary">- Click New Goal from the Savings Targets card. Choose a category, set a target amount and date, and we'll calculate the monthly contribution needed.+ Click New Goal from the Savings Targets card. Choose a+ category, set a target amount and date, and we'll+ calculate the monthly contribution needed.</XDSText><XDSDivider />- <XDSText type="label" weight="bold">Can I track multiple goals at once?</XDSText>+ <XDSText type="label" weight="bold">+ Can I track multiple goals at once?+ </XDSText><XDSDivider />- <XDSText type="label" weight="bold">How are monthly contributions calculated?</XDSText>+ <XDSText type="label" weight="bold">+ How are monthly contributions calculated?+ </XDSText><XDSDivider />- <XDSButton label="Contact Support" variant="secondary" xstyle={styles.fullWidth} />+ <XDSButton+ label="Contact Support"+ variant="secondary"+ xstyle={styles.fullWidth}+ /></XDSVStack></XDSVStack></XDSCard></div>{/* Upcoming Payments */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}>- <XDSText type="label" weight="bold">Upcoming Payments</XDSText>+ <XDSText type="label" weight="bold">+ Upcoming Payments+ </XDSText><XDSText type="supporting" color="secondary">Select a date to view scheduled payments.</XDSText><XDSCalendar /><XDSDivider />{[- {name: 'Netflix Subscription', date: 'Apr 15, 2024', amt: '$19.99'},+ {+ name: 'Netflix Subscription',+ date: 'Apr 15, 2024',+ amt: '$19.99',+ },{name: 'Rent Payment', date: 'Apr 1, 2024', amt: '$2,400.00'},{name: 'Auto Insurance', date: 'Apr 22, 2024', amt: '$186.00'},].map((p, i) => (<div key={i} {...stylex.props(styles.row)}><XDSVStack gap={0}>- <XDSText type="body" weight="bold">{p.name}</XDSText>- <XDSText type="supporting" color="secondary">{p.date}</XDSText>+ <XDSText type="body" weight="bold">+ {p.name}+ </XDSText>+ <XDSText type="supporting" color="secondary">+ {p.date}+ </XDSText></XDSVStack>- <XDSText type="body" weight="bold">{p.amt}</XDSText>+ <XDSText type="body" weight="bold">+ {p.amt}+ </XDSText></div>))}</XDSVStack>@@ -820,29 +1144,40 @@ export default function ExampleCardsPage() {</div>{/* QR Code / Mobile Connect */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.placeholder)}>- <XDSText type="body" color="secondary">QR Code</XDSText>+ <XDSText type="body" color="secondary">+ QR Code+ </XDSText></div><XDSText type="label" weight="bold">Scan to connect your mobile device</XDSText><XDSText type="supporting" color="secondary">- Open the Ledger mobile app and scan this code to link your device.+ Open the Ledger mobile app and scan this code to link your+ device.</XDSText>- <XDSButton label="Got it" variant="secondary" xstyle={styles.fullWidth} />+ <XDSButton+ label="Got it"+ variant="secondary"+ xstyle={styles.fullWidth}+ /></XDSVStack></XDSCard></div>{/* Q2 Dividend Income */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.row)}>- <XDSText type="label" weight="bold">Q2 Dividend Income</XDSText>+ <XDSText type="label" weight="bold">+ Q2 Dividend Income+ </XDSText><XDSButton label="×" variant="ghost" size="sm" /></div><XDSText type="supporting" color="secondary">@@ -857,12 +1192,18 @@ export default function ExampleCardsPage() {].map((d, i) => (<div key={i} {...stylex.props(styles.row)}><XDSVStack gap={0}>- <XDSText type="body" weight="bold">{d.name}</XDSText>- <XDSText type="supporting" color="secondary">{d.shares}</XDSText>+ <XDSText type="body" weight="bold">+ {d.name}+ </XDSText>+ <XDSText type="supporting" color="secondary">+ {d.shares}+ </XDSText></XDSVStack><XDSHStack gap={2} vAlign="center"><Sparkline values={[8, 12, 6, 15, 10, 18]} />- <XDSText type="body" weight="bold">{d.amt}</XDSText>+ <XDSText type="body" weight="bold">+ {d.amt}+ </XDSText></XDSHStack></div>))}@@ -871,51 +1212,81 @@ export default function ExampleCardsPage() {</div>{/* Savings Target Progress */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}><XDSHeading level={2}>$24,000</XDSHeading>- <XDSText type="supporting" color="secondary">80% of $30,000</XDSText>+ <XDSText type="supporting" color="secondary">+ 80% of $30,000+ </XDSText><XDSProgressBar label="Savings Progress" value={80} /><XDSDivider /><div {...stylex.props(styles.row)}><XDSText type="body">Projected Finish</XDSText>- <XDSText type="body" weight="bold">October 2024</XDSText>+ <XDSText type="body" weight="bold">+ October 2024+ </XDSText></div><div {...stylex.props(styles.row)}><XDSText type="body">Monthly Average</XDSText>- <XDSText type="body" weight="bold">$1,250</XDSText>+ <XDSText type="body" weight="bold">+ $1,250+ </XDSText></div><div {...stylex.props(styles.row)}><XDSText type="body">Top Contributor</XDSText>- <XDSText type="body" weight="bold">Auto-Transfer</XDSText>+ <XDSText type="body" weight="bold">+ Auto-Transfer+ </XDSText></div></XDSVStack></XDSCard></div>{/* Dollar-Cost Averaging */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}>- <XDSText type="label" weight="bold">Dollar-Cost Averaging</XDSText>+ <XDSText type="label" weight="bold">+ Dollar-Cost Averaging+ </XDSText><XDSText type="supporting" color="secondary">A strategy for building wealth over time.</XDSText><XDSText type="body" color="secondary">- Over time, this smooths out the average cost of your investments. When prices drop, your fixed amount buys more shares. When prices rise, you buy fewer. The result is a lower average cost per share compared to lump-sum investing during volatile periods.+ Over time, this smooths out the average cost of your+ investments. When prices drop, your fixed amount buys more+ shares. When prices rise, you buy fewer. The result is a lower+ average cost per share compared to lump-sum investing during+ volatile periods.</XDSText></XDSVStack></XDSCard></div>{/* Cover Art / Upload */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}>- <XDSText type="supporting" color="secondary">COVER ART</XDSText>- <img src="https://images.unsplash.com/photo-1470225620780-dba8ba36b745?w=400&h=400&fit=crop" alt="Cover art" style={{width: '100%', height: 160, objectFit: 'cover', borderRadius: 8}} />- <XDSText type="label" weight="bold">Upload Artwork</XDSText>+ <XDSText type="supporting" color="secondary">+ COVER ART+ </XDSText>+ <img+ src="https://images.unsplash.com/photo-1470225620780-dba8ba36b745?w=400&h=400&fit=crop"+ alt="Cover art"+ style={{+ width: '100%',+ height: 160,+ objectFit: 'cover',+ borderRadius: 8,+ }}+ />+ <XDSText type="label" weight="bold">+ Upload Artwork+ </XDSText><XDSText type="supporting" color="secondary">Minimum 3000 × 3000px — JPEG or PNG only</XDSText>@@ -924,13 +1295,18 @@ export default function ExampleCardsPage() {</div>{/* Front Door (Smart Home) */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.row)}><XDSVStack gap={0}>- <XDSText type="label" weight="bold">Front Door</XDSText>- <XDSText type="supporting" color="secondary">Smart Lock Pro</XDSText>+ <XDSText type="label" weight="bold">+ Front Door+ </XDSText>+ <XDSText type="supporting" color="secondary">+ Smart Lock Pro+ </XDSText></XDSVStack><XDSHStack gap={2} vAlign="center"><XDSText type="supporting">Locked</XDSText>@@ -945,7 +1321,8 @@ export default function ExampleCardsPage() {</div>{/* Stock Holdings */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}><XDSTextInput@@ -962,23 +1339,55 @@ export default function ExampleCardsPage() {</XDSHStack><XDSDivider />{[- {ticker: 'VOO', name: 'Vanguard S&P 500 ETF', info: '112 SHARES · JAN 2021', type: 'ETF', value: '$48,230.40'},- {ticker: 'VIG', name: 'Vanguard Dividend Appreciation', info: '450 SHARES · MAR 2022', type: 'ETF', value: '$26,033.79'},- {ticker: 'AAPL', name: 'Apple Inc.', info: '85 SHARES · NOV 2020', type: 'Stock', value: '$18,488.90'},- {ticker: 'O', name: 'Realty Income Corp', info: '320 SHARES · JUN 2023', type: 'REIT', value: '$15,136.59'},+ {+ ticker: 'VOO',+ name: 'Vanguard S&P 500 ETF',+ info: '112 SHARES · JAN 2021',+ type: 'ETF',+ value: '$48,230.40',+ },+ {+ ticker: 'VIG',+ name: 'Vanguard Dividend Appreciation',+ info: '450 SHARES · MAR 2022',+ type: 'ETF',+ value: '$26,033.79',+ },+ {+ ticker: 'AAPL',+ name: 'Apple Inc.',+ info: '85 SHARES · NOV 2020',+ type: 'Stock',+ value: '$18,488.90',+ },+ {+ ticker: 'O',+ name: 'Realty Income Corp',+ info: '320 SHARES · JUN 2023',+ type: 'REIT',+ value: '$15,136.59',+ },].map((s, i) => (<div key={i}><div {...stylex.props(styles.row)}><XDSHStack gap={3} vAlign="center"><XDSAvatar name={s.ticker} size="small" /><XDSVStack gap={0}>- <XDSText type="body" weight="bold">{s.name}</XDSText>- <XDSText type="supporting" color="secondary">{s.info}</XDSText>+ <XDSText type="body" weight="bold">+ {s.name}+ </XDSText>+ <XDSText type="supporting" color="secondary">+ {s.info}+ </XDSText></XDSVStack></XDSHStack><XDSVStack gap={0} style={{alignItems: 'flex-end'}}>- <XDSText type="supporting" color="secondary">{s.type}</XDSText>- <XDSText type="body" weight="bold">{s.value}</XDSText>+ <XDSText type="supporting" color="secondary">+ {s.type}+ </XDSText>+ <XDSText type="body" weight="bold">+ {s.value}+ </XDSText></XDSVStack></div>{i < 3 && <XDSDivider />}@@ -989,14 +1398,19 @@ export default function ExampleCardsPage() {</div>{/* Kitchen Island (Smart Home) */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSText type="label" weight="bold">Kitchen Island</XDSText>+ <XDSText type="label" weight="bold">+ Kitchen Island+ </XDSText><XDSSwitch label="On" value={true} onChange={() => {}} /></div>- <XDSText type="supporting" color="secondary">Hue Color Ambient</XDSText>+ <XDSText type="supporting" color="secondary">+ Hue Color Ambient+ </XDSText><XDSHStack gap={2}>{['Cooking', 'Dining', 'Nightlight', 'Focus'].map(m => (<XDSToken key={m} label={m} />@@ -1017,17 +1431,21 @@ export default function ExampleCardsPage() {</div>{/* Living Room (Smart Home) */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}>- <XDSText type="label" weight="bold">Living Room</XDSText>- <XDSText type="supporting" color="secondary">Roller Shades</XDSText>- <div {...stylex.props(styles.placeholder)} style={{height: 100}} />- <XDSSlider- label="Position"- value={50}- onChange={() => {}}+ <XDSText type="label" weight="bold">+ Living Room+ </XDSText>+ <XDSText type="supporting" color="secondary">+ Roller Shades+ </XDSText>+ <div+ {...stylex.props(styles.placeholder)}+ style={{height: 100}}/>+ <XDSSlider label="Position" value={50} onChange={() => {}} /><XDSHStack gap={3}><XDSButton label="Open" variant="ghost" size="sm" /><XDSButton label="Half" variant="ghost" size="sm" />@@ -1038,14 +1456,33 @@ export default function ExampleCardsPage() {</div>{/* Social Links */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}>- <XDSText type="label" weight="bold">Social Links</XDSText>- <XDSTextInput label="Spotify Artist URL" value={spotifyUrl} onChange={setSpotifyUrl} />- <XDSTextInput label="Instagram Handle" value={igHandle} onChange={setIgHandle} />- <XDSTextInput label="SoundCloud URL" value={scUrl} onChange={setScUrl} />- <XDSTextInput label="Website" value={website} onChange={setWebsite} />+ <XDSText type="label" weight="bold">+ Social Links+ </XDSText>+ <XDSTextInput+ label="Spotify Artist URL"+ value={spotifyUrl}+ onChange={setSpotifyUrl}+ />+ <XDSTextInput+ label="Instagram Handle"+ value={igHandle}+ onChange={setIgHandle}+ />+ <XDSTextInput+ label="SoundCloud URL"+ value={scUrl}+ onChange={setScUrl}+ />+ <XDSTextInput+ label="Website"+ value={website}+ onChange={setWebsite}+ /><XDSHStack gap={3}><XDSButton label="Discard" variant="ghost" /><XDSButton label="Save Changes" variant="primary" />@@ -1055,42 +1492,85 @@ export default function ExampleCardsPage() {</div>{/* Notifications */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={4}>- <XDSText type="label" weight="bold">Notifications</XDSText>+ <XDSText type="label" weight="bold">+ Notifications+ </XDSText><XDSText type="supporting" color="secondary">Choose what you want to be notified about.</XDSText>- <XDSCheckboxInput label="Select all" value={selectAll} onChange={setSelectAll} />+ <XDSCheckboxInput+ label="Select all"+ value={selectAll}+ onChange={setSelectAll}+ /><XDSDivider />- <XDSCheckboxInput label="Transaction alerts" value={txnAlerts} onChange={setTxnAlerts} />- <XDSText type="supporting" color="secondary">Deposits, withdrawals, and transfers.</XDSText>- <XDSCheckboxInput label="Security alerts" value={secAlerts} onChange={setSecAlerts} />- <XDSText type="supporting" color="secondary">Login attempts and account changes.</XDSText>- <XDSCheckboxInput label="Goal milestones" value={goalMilestones} onChange={setGoalMilestones} />- <XDSText type="supporting" color="secondary">Updates at 25%, 50%, 75%, and 100%.</XDSText>- <XDSCheckboxInput label="Market updates" value={marketUpdates} onChange={setMarketUpdates} />- <XDSText type="supporting" color="secondary">Daily portfolio summary and price alerts.</XDSText>- <XDSButton label="Save Preferences" variant="primary" xstyle={styles.fullWidth} />+ <XDSCheckboxInput+ label="Transaction alerts"+ value={txnAlerts}+ onChange={setTxnAlerts}+ />+ <XDSText type="supporting" color="secondary">+ Deposits, withdrawals, and transfers.+ </XDSText>+ <XDSCheckboxInput+ label="Security alerts"+ value={secAlerts}+ onChange={setSecAlerts}+ />+ <XDSText type="supporting" color="secondary">+ Login attempts and account changes.+ </XDSText>+ <XDSCheckboxInput+ label="Goal milestones"+ value={goalMilestones}+ onChange={setGoalMilestones}+ />+ <XDSText type="supporting" color="secondary">+ Updates at 25%, 50%, 75%, and 100%.+ </XDSText>+ <XDSCheckboxInput+ label="Market updates"+ value={marketUpdates}+ onChange={setMarketUpdates}+ />+ <XDSText type="supporting" color="secondary">+ Daily portfolio summary and price alerts.+ </XDSText>+ <XDSButton+ label="Save Preferences"+ variant="primary"+ xstyle={styles.fullWidth}+ /></XDSVStack></XDSCard></div>{/* Syncing Accounts */}- <div style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}>+ <div+ style={{breakInside: 'avoid', marginBottom: 24, overflow: 'hidden'}}><XDSCard><XDSVStack gap={3}><XDSHStack gap={3} vAlign="center"><XDSSpinner size="sm" /><XDSVStack gap={1}>- <XDSText type="label" weight="bold">Syncing your accounts</XDSText>+ <XDSText type="label" weight="bold">+ Syncing your accounts+ </XDSText><XDSText type="supporting" color="secondary">- We're pulling in your latest transactions. This usually takes a few seconds.+ We're pulling in your latest transactions. This usually+ takes a few seconds.</XDSText></XDSVStack></XDSHStack>- <XDSButton label="Cancel" variant="ghost" xstyle={styles.fullWidth} />+ <XDSButton+ label="Cancel"+ variant="ghost"+ xstyle={styles.fullWidth}+ /></XDSVStack></XDSCard></div>diff --git a/apps/sandbox/src/app/SandboxNav.tsx b/apps/sandbox/src/app/SandboxNav.tsxindex 466a399f6b..70e06d73d0 100644--- a/apps/sandbox/src/app/SandboxNav.tsx+++ b/apps/sandbox/src/app/SandboxNav.tsx@@ -55,6 +55,7 @@ function SandboxHeader() {{label: 'Brutalist', onClick: () => setThemeName('brutalist')},{label: 'Meta', onClick: () => setThemeName('meta')},{label: 'WhatsApp', onClick: () => setThemeName('whatsapp')},+ {label: 'Daily', onClick: () => setThemeName('daily')},];const modeItems = [diff --git a/apps/sandbox/src/app/layout.tsx b/apps/sandbox/src/app/layout.tsxindex e7e090b295..34fc9d98ea 100644--- a/apps/sandbox/src/app/layout.tsx+++ b/apps/sandbox/src/app/layout.tsx@@ -10,6 +10,7 @@ import type {Metadata} from 'next';* 4. @xds/theme-neutral/theme.css → @layer xds-theme (neutral theme)* 5. @xds/theme-brutalist/theme.css → @layer xds-theme (brutalist theme)* 6. @xds/theme-meta/theme.css → @layer xds-theme (meta theme)+ * 7. @xds/theme-daily/theme.css → @layer xds-theme (daily theme)** All theme CSS files are in @layer xds-theme and scoped via* @scope ([data-xds-theme="name"]), so only the active theme's rules apply.@@ -23,6 +24,7 @@ import '@xds/theme-default/theme.css';import '@xds/theme-neutral/theme.css';import '@xds/theme-brutalist/theme.css';import '@xds/theme-meta/theme.css';+import '@xds/theme-daily/theme.css';import {Providers} from './providers';export const metadata: Metadata = {@@ -33,6 +35,12 @@ export const metadata: Metadata = {export default function RootLayout({children}: {children: React.ReactNode}) {return (<html lang="en">+ <head>+ <link+ rel="stylesheet"+ href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap"+ />+ </head><body><Providers>{children}</Providers></body>diff --git a/apps/sandbox/src/app/providers.tsx b/apps/sandbox/src/app/providers.tsxindex e029212cc3..12f9bda6cc 100644--- a/apps/sandbox/src/app/providers.tsx+++ b/apps/sandbox/src/app/providers.tsx@@ -7,6 +7,7 @@ import {neutralTheme} from '@xds/theme-neutral';import {brutalistTheme} from '@xds/theme-brutalist';import {metaTheme} from '@xds/theme-meta';import {whatsappTheme} from '@xds/theme-whatsapp';+import {dailyTheme} from '@xds/theme-daily';import type {XDSDefinedTheme, ThemeMode} from '@xds/core/theme';const themes: Record<string, XDSDefinedTheme> = {@@ -15,6 +16,7 @@ const themes: Record<string, XDSDefinedTheme> = {brutalist: brutalistTheme,meta: metaTheme,whatsapp: whatsappTheme,+ daily: dailyTheme,};type ThemeContextValue = {diff --git a/apps/storybook/.storybook/preview.tsx b/apps/storybook/.storybook/preview.tsxindex 57d725b213..a35669fa01 100644--- a/apps/storybook/.storybook/preview.tsx+++ b/apps/storybook/.storybook/preview.tsx@@ -4,7 +4,6 @@ import {XDSTheme} from '@xds/core';import {defaultTheme} from '@xds/theme-default';import {neutralTheme} from '@xds/theme-neutral';import {brutalistTheme} from '@xds/theme-brutalist';-// Import the base reset stylesheetimport '@xds/core/reset.css';diff --git a/package.json b/package.jsonindex 0e399cbb9c..e2857de07b 100644--- a/package.json+++ b/package.json@@ -9,7 +9,7 @@"internal/*"],"scripts": {- "build": "yarn workspace @xds/core build && yarn workspace @xds/theme-default build && yarn workspace @xds/theme-neutral build && yarn workspace @xds/theme-brutalist build && yarn workspace @xds/theme-whatsapp build && yarn workspace @xds/theme-meta build",+ "build": "yarn workspace @xds/core 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","dev": "yarn workspace @xds/storybook dev","test": "vitest run","test:watch": "vitest",diff --git a/packages/core/src/theme/XDSTheme.tsx b/packages/core/src/theme/XDSTheme.tsxindex 1af1fdecc7..f8fb665cf7 100644--- a/packages/core/src/theme/XDSTheme.tsx+++ b/packages/core/src/theme/XDSTheme.tsx@@ -176,9 +176,17 @@ function useThemeFontLoading(theme: XDSDefinedTheme): void {const newLinks: HTMLLinkElement[] = [];for (const font of theme.fonts) {- // Check if font is already loaded- const isLoaded = document.fonts.check(`16px "${font.family}"`);- if (isLoaded) continue;+ // Check if this specific font family has a loaded @font-face+ // NOTE: document.fonts.check() is unreliable here — it returns true+ // when ANY font in the fallback stack can render the text, even if+ // the requested family isn't actually loaded. Instead, check if a+ // FontFace with this family name exists in the FontFaceSet.+ const hasFontFace = [...document.fonts].some(+ f =>+ f.family.replace(/["']/g, '') === font.family &&+ f.status === 'loaded',+ );+ if (hasFontFace) continue;// Check if we already injected a link for this URLconst existing = document.head.querySelector(diff --git a/packages/themes/daily/package.json b/packages/themes/daily/package.jsonnew file mode 100644index 0000000000..54e438b1d0--- /dev/null+++ b/packages/themes/daily/package.json@@ -0,0 +1,36 @@+{+ "name": "@xds/theme-daily",+ "version": "0.0.1",+ "private": false,+ "description": "Daily theme for XDS components — warm, productivity-focused (Lucide icons)",+ "license": "MIT",+ "sideEffects": false,+ "main": "./dist/index.js",+ "types": "./dist/index.d.ts",+ "exports": {+ ".": {+ "types": "./dist/index.d.ts",+ "import": "./dist/index.mjs",+ "require": "./dist/index.js"+ },+ "./theme.css": "./dist/theme.css"+ },+ "files": [+ "dist",+ "src"+ ],+ "scripts": {+ "build": "xds theme build src/dailyTheme.ts -o dist/theme.css && tsup && rm -f dist/daily.js dist/daily.d.ts"+ },+ "dependencies": {+ "lucide-react": "^0.575.0"+ },+ "peerDependencies": {+ "@xds/core": "*",+ "react": ">=19"+ },+ "devDependencies": {+ "@xds/cli": "*"+ },+ "module": "./dist/index.mjs"+}diff --git a/packages/themes/daily/src/dailyTheme.ts b/packages/themes/daily/src/dailyTheme.tsnew file mode 100644index 0000000000..e3d3a7febd--- /dev/null+++ b/packages/themes/daily/src/dailyTheme.ts@@ -0,0 +1,22 @@+import {defineTheme} from '@xds/core/theme';+import {dailyIconRegistry} from './icons';++export const dailyTheme = defineTheme({+ name: 'daily',+ typography: {+ body: {+ family: 'Figtree',+ fallbacks:+ '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',+ url: 'https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap',+ },+ },+ tokens: {+ '--color-background-body': '#F9FAFA',+ '--radius-inner': '8px',+ '--radius-element': '12px',+ '--radius-container': '16px',+ '--radius-page': '32px',+ },+ icons: dailyIconRegistry,+});diff --git a/packages/themes/daily/src/icons.tsx b/packages/themes/daily/src/icons.tsxnew file mode 100644index 0000000000..fbe6b26d34--- /dev/null+++ b/packages/themes/daily/src/icons.tsx@@ -0,0 +1,59 @@+import React from 'react';+import type {XDSIconRegistry} from '@xds/core/Icon';++import {+ X,+ ChevronDown,+ ChevronLeft,+ ChevronRight,+ Check,+ CheckCircle,+ XCircle,+ AlertTriangle,+ Info,+ Calendar,+ Clock,+ ExternalLink,+ Menu,+ MoreHorizontal,+ Search,+ ArrowUp,+ ArrowDown,+ ArrowUpDown,+ Filter,+ EyeOff,+ Columns,+ Copy,+ CheckCheck,+} from 'lucide-react';++const iconProps = {+ size: '1em',+ 'aria-hidden': true as const,+};++export const dailyIconRegistry: XDSIconRegistry = {+ close: <X {...iconProps} />,+ chevronDown: <ChevronDown {...iconProps} />,+ chevronLeft: <ChevronLeft {...iconProps} />,+ chevronRight: <ChevronRight {...iconProps} />,+ check: <Check {...iconProps} />,+ checkCircle: <CheckCircle {...iconProps} />,+ xCircle: <XCircle {...iconProps} />,+ warning: <AlertTriangle {...iconProps} />,+ info: <Info {...iconProps} />,+ calendar: <Calendar {...iconProps} />,+ clock: <Clock {...iconProps} />,+ externalLink: <ExternalLink {...iconProps} />,+ menu: <Menu {...iconProps} />,+ moreHorizontal: <MoreHorizontal {...iconProps} />,+ search: <Search {...iconProps} />,+ arrowUp: <ArrowUp {...iconProps} />,+ arrowDown: <ArrowDown {...iconProps} />,+ arrowsUpDown: <ArrowUpDown {...iconProps} />,+ funnel: <Filter {...iconProps} />,+ eyeSlash: <EyeOff {...iconProps} />,+ viewColumns: <Columns {...iconProps} />,+ copy: <Copy {...iconProps} />,+ checkDouble: <CheckCheck {...iconProps} />,+};diff --git a/packages/themes/daily/src/index.ts b/packages/themes/daily/src/index.tsnew file mode 100644index 0000000000..f71d318fd7--- /dev/null+++ b/packages/themes/daily/src/index.ts@@ -0,0 +1,2 @@+export {dailyTheme} from './dailyTheme';+export {dailyIconRegistry} from './icons';diff --git a/packages/themes/daily/tsup.config.ts b/packages/themes/daily/tsup.config.tsnew file mode 100644index 0000000000..d2efee8f89--- /dev/null+++ b/packages/themes/daily/tsup.config.ts@@ -0,0 +1,9 @@+import {defineConfig} from 'tsup';++export default defineConfig({+ entry: ['src/index.ts'],+ format: ['cjs', 'esm'],+ dts: true,+ clean: false, // Don't clean — xds build-theme already put theme.css in dist/+ external: ['@xds/core', 'react', 'lucide-react'],+});