Skip to content

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

TypeScript

feat(docsite): add Library Overview homepage and What's New changelog (#1699)

rubyycheungd58c5993872f
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx
index 52745593aa..1325d3815a 100644
--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx
@@ -1,6 +1,7 @@
'use client';
-import React, {useState} from 'react';
+import React, {useState, useEffect, useMemo} from 'react';
+import {useSearchParams} from 'next/navigation';
import * as stylex from '@stylexjs/stylex';
import {XDSAppShell} from '@xds/core/AppShell';
import {XDSTopNav, XDSTopNavHeading} from '@xds/core/TopNav';
@@ -20,7 +21,21 @@ import {
FullscreenIcon,
SearchIcon,
ProfileIcon,
+ PaletteIcon,
+ GridIcon,
+ CodeIcon,
+ UploadIcon,
+ SparklesIcon,
+ HeartIcon,
+ TerminalIcon,
+ ChatIcon,
+ ChartsIcon,
+ DownloadIcon,
} from './docsite-icons';
+import {XDSBadge} from '@xds/core/Badge';
+import {XDSIcon} from '@xds/core/Icon';
+import {XDSDivider} from '@xds/core/Divider';
+import {XDSTabList, XDSTab} from '@xds/core/TabList';
import {COMPONENT_PREVIEWS} from './ComponentPreviews';
import {SEARCH_COMMANDS, basePath} from './constants';
import {
@@ -36,6 +51,1153 @@ const localStyles = stylex.create({
},
});
+// ---------------------------------------------------------------------------
+// Library overview data
+// ---------------------------------------------------------------------------
+
+const FOUNDATION_ITEMS: {
+ title: string;
+ description: string;
+ visual: React.ReactNode;
+}[] = [
+ {
+ title: 'Colors',
+ description:
+ 'Semantic color tokens for surfaces, text, borders, and accents.',
+ visual: (
+ <div style={{display: 'flex', gap: 6}}>
+ {['#0066FF', '#111111', '#6B7280', '#DC2626', '#059669', '#D97706'].map(
+ c => (
+ <div
+ key={c}
+ style={{
+ width: 28,
+ height: 28,
+ borderRadius: 6,
+ backgroundColor: c,
+ }}
+ />
+ ),
+ )}
+ </div>
+ ),
+ },
+ {
+ title: 'Typography',
+ description:
+ 'Type scale from display headings down to captions and labels.',
+ visual: (
+ <div style={{display: 'flex', alignItems: 'baseline', gap: 10}}>
+ <span style={{fontSize: 32, fontWeight: 700, lineHeight: 1}}>Ag</span>
+ <span
+ style={{fontSize: 18, fontWeight: 600, lineHeight: 1, opacity: 0.6}}>
+ Ag
+ </span>
+ <span
+ style={{fontSize: 13, fontWeight: 400, lineHeight: 1, opacity: 0.4}}>
+ Ag
+ </span>
+ </div>
+ ),
+ },
+ {
+ title: 'Spacing',
+ description:
+ 'Consistent 4px-based spacing scale for padding, margins, and gaps.',
+ visual: (
+ <div style={{display: 'flex', alignItems: 'flex-end', gap: 4}}>
+ {[4, 8, 12, 16, 24, 32].map(s => (
+ <div
+ key={s}
+ style={{
+ width: 16,
+ height: s,
+ borderRadius: 3,
+ backgroundColor: 'var(--color-icon-accent, #0066FF)',
+ opacity: 0.15 + (s / 32) * 0.85,
+ }}
+ />
+ ))}
+ </div>
+ ),
+ },
+ {
+ title: 'Radius',
+ description: 'Border radius tokens from sharp corners to fully rounded.',
+ visual: (
+ <div style={{display: 'flex', gap: 8, alignItems: 'center'}}>
+ {[2, 6, 10, 16, 999].map(r => (
+ <div
+ key={r}
+ style={{
+ width: 32,
+ height: 32,
+ borderRadius: r,
+ border: '2px solid var(--color-border-default, #d0d0d0)',
+ backgroundColor: 'var(--color-background-muted, #f5f5f5)',
+ }}
+ />
+ ))}
+ </div>
+ ),
+ },
+ {
+ title: 'Motion',
+ description: 'Duration and easing curves for transitions and animations.',
+ visual: (
+ <div style={{display: 'flex', gap: 6, alignItems: 'center'}}>
+ {['150ms', '250ms', '400ms'].map((d, i) => (
+ <div key={d} style={{textAlign: 'center'}}>
+ <div
+ style={{
+ width: 24 + i * 6,
+ height: 4,
+ borderRadius: 2,
+ backgroundColor: 'var(--color-icon-accent, #0066FF)',
+ opacity: 0.4 + i * 0.25,
+ }}
+ />
+ <span
+ style={{
+ fontSize: 10,
+ color: 'var(--color-text-secondary)',
+ marginTop: 4,
+ display: 'block',
+ fontFamily: 'monospace',
+ }}>
+ {d}
+ </span>
+ </div>
+ ))}
+ </div>
+ ),
+ },
+ {
+ title: 'Elevation',
+ description:
+ 'Shadow tokens for layered surfaces, cards, popovers, and dialogs.',
+ visual: (
+ <div style={{display: 'flex', gap: 10, alignItems: 'center'}}>
+ {[
+ '0 1px 2px rgba(0,0,0,0.06)',
+ '0 2px 8px rgba(0,0,0,0.1)',
+ '0 8px 24px rgba(0,0,0,0.14)',
+ ].map((shadow, i) => (
+ <div
+ key={i}
+ style={{
+ width: 32,
+ height: 24,
+ borderRadius: 6,
+ backgroundColor: '#fff',
+ boxShadow: shadow,
+ }}
+ />
+ ))}
+ </div>
+ ),
+ },
+];
+
+const LIBRARY_PACKAGES: {
+ name: string;
+ description: string;
+ version?: string;
+ status: 'Stable' | 'Published' | 'Experimental';
+ iconType: 'core' | 'charts' | 'chat' | 'cli';
+}[] = [
+ {
+ name: '@xds/core',
+ description:
+ 'Core UI component library with 60+ accessible, themeable React components built on StyleX.',
+ version: '0.0.12',
+ status: 'Stable',
+ iconType: 'core',
+ },
+ {
+ name: '@xds/vega',
+ description:
+ 'Chart and data visualization components. Bar, line, area, pie, and more — built for dashboards and analytics.',
+ status: 'Stable',
+ iconType: 'charts',
+ },
+ {
+ name: '@xds/chat',
+ description:
+ 'Conversational UI components for AI assistants, messaging, and chat interfaces with thread support.',
+ status: 'Stable',
+ iconType: 'chat',
+ },
+ {
+ name: '@xds/cli',
+ description:
+ 'CLI for scaffolding projects, theming, templates, swizzling components, and agent docs.',
+ version: '0.0.12',
+ status: 'Stable',
+ iconType: 'cli',
+ },
+];
+
+const RESOURCE_ITEMS: {
+ title: string;
+ description: string;
+ icon: React.ComponentType<React.SVGProps<SVGSVGElement>>;
+ iconBg: string;
+ iconColor: string;
+}[] = [
+ {
+ title: 'Figma Library',
+ description: 'Design files, tokens, and component specs for designers.',
+ icon: PaletteIcon,
+ iconBg: '#F3E8FF',
+ iconColor: '#7C3AED',
+ },
+ {
+ title: 'NPM Packages',
+ description: 'Published packages on the npm registry under the @xds scope.',
+ icon: DownloadIcon,
+ iconBg: '#FEE2E2',
+ iconColor: '#DC2626',
+ },
+ {
+ title: 'AI / Agent Docs',
+ description:
+ 'AGENTS.md and CLI docs for using XDS with AI coding assistants.',
+ icon: SparklesIcon,
+ iconBg: '#FEF3C7',
+ iconColor: '#D97706',
+ },
+ {
+ title: 'Contributing',
+ description: 'How to contribute components, themes, and templates to XDS.',
+ icon: HeartIcon,
+ iconBg: '#FCE7F3',
+ iconColor: '#EC4899',
+ },
+];
+
+const OSS_FEATURES: {title: string; desc: string}[] = [
+ {
+ title: 'TypeScript + StyleX',
+ desc: 'Full type safety and atomic CSS — catch errors at build time, ship zero-runtime styles.',
+ },
+ {
+ title: 'Open source (MIT)',
+ desc: 'Use it anywhere, commercial or personal. No licensing concerns.',
+ },
+ {
+ title: 'Modern component architecture',
+ desc: 'Composable APIs with slots, render props, and controlled/uncontrolled patterns.',
+ },
+ {
+ title: 'Source-level distribution',
+ desc: 'Import source directly — tree-shake, customize, and debug without fighting bundled dist.',
+ },
+ {
+ title: 'Themeable via @xds/theme-*',
+ desc: 'Swap entire visual identities with a single theme package. Colors, typography, radius, icons — all configurable.',
+ },
+ {
+ title: 'CLI tooling & agent docs',
+ desc: 'Scaffold projects, generate templates, and feed component docs to AI coding assistants.',
+ },
+ {
+ title: 'Fork & swizzle any component',
+ desc: 'Run xds swizzle to eject any component into your codebase. You own the code, no lock-in.',
+ },
+];
+
+const WWW_FEATURES: {title: string; desc: string}[] = [
+ {
+ title: 'Flow types',
+ desc: "Type system used across Meta's internal codebase.",
+ },
+ {
+ title: 'Internal to Meta monorepo',
+ desc: "Lives inside Meta's monorepo, not available externally.",
+ },
+ {
+ title: 'Pre-built dist/ artifacts',
+ desc: 'Ships compiled bundles rather than source code.',
+ },
+ {
+ title: 'Legacy component patterns',
+ desc: 'Older API conventions carried forward for backward compatibility.',
+ },
+ {
+ title: 'Maintained by XDS www team',
+ desc: 'Separate team handles updates and internal integrations.',
+ },
+ {
+ title: 'Tight Nest platform integration',
+ desc: "Deep hooks into Meta's internal Nest platform and toolchain.",
+ },
+];
+
+// ---------------------------------------------------------------------------
+// LibraryOverview component
+// ---------------------------------------------------------------------------
+
+// ---------------------------------------------------------------------------
+// What's New changelog data (GitHub Changelog style)
+// ---------------------------------------------------------------------------
+
+type ChangelogType = 'Release' | 'Improvement' | 'Fix' | 'Breaking';
+
+const CHANGELOG_ENTRIES: {
+ date: string;
+ type: ChangelogType;
+ title: string;
+ tags: string[];
+}[] = [
+ // April 2026
+ {
+ date: 'Apr.18',
+ type: 'Release',
+ title:
+ '@xds/chat package with message bubbles, thread view, and AI composer',
+ tags: ['chat', '@xds/chat'],
+ },
+ {
+ date: 'Apr.18',
+ type: 'Release',
+ title:
+ '@xds/vega charts: Bar, Line, Area, and Pie components for dashboards',
+ tags: ['charts', '@xds/vega'],
+ },
+ {
+ date: 'Apr.18',
+ type: 'Release',
+ title: 'Calendar component with single date and date range selection',
+ tags: ['core', 'form'],
+ },
+ {
+ date: 'Apr.16',
+ type: 'Improvement',
+ title:
+ 'Dialog entry animations now use @starting-style instead of JS state',
+ tags: ['core', 'animation'],
+ },
+ {
+ date: 'Apr.14',
+ type: 'Fix',
+ title: 'Popover focus trap no longer breaks with nested popovers',
+ tags: ['core', 'accessibility'],
+ },
+ {
+ date: 'Apr.10',
+ type: 'Improvement',
+ title: 'Button loading state preserves width to prevent layout shift',
+ tags: ['core'],
+ },
+ {
+ date: 'Apr.08',
+ type: 'Improvement',
+ title: 'TextInput now supports startIcon and endIcon slots',
+ tags: ['core', 'form'],
+ },
+ {
+ date: 'Apr.04',
+ type: 'Release',
+ title: 'xds swizzle command for ejecting components into your codebase',
+ tags: ['cli', '@xds/cli'],
+ },
+ {
+ date: 'Apr.04',
+ type: 'Release',
+ title: 'xds template command for scaffolding full page layouts',
+ tags: ['cli', '@xds/cli'],
+ },
+ {
+ date: 'Apr.04',
+ type: 'Release',
+ title: 'Agent docs generation via xds docs for AI coding assistants',
+ tags: ['cli', '@xds/cli'],
+ },
+ {
+ date: 'Apr.02',
+ type: 'Fix',
+ title: 'Table sort indicator alignment on narrow columns',
+ tags: ['core'],
+ },
+ // March 2026
+ {
+ date: 'Mar.20',
+ type: 'Release',
+ title:
+ 'Theme packages: @xds/theme-default, @xds/theme-neutral, @xds/theme-daily',
+ tags: ['themes'],
+ },
+ {
+ date: 'Mar.20',
+ type: 'Release',
+ title: 'CommandPalette with fuzzy search and keyboard navigation',
+ tags: ['core'],
+ },
+ {
+ date: 'Mar.20',
+ type: 'Release',
+ title: 'PowerSearch component for advanced filter-based search interfaces',
+ tags: ['core', 'form'],
+ },
+ {
+ date: 'Mar.18',
+ type: 'Improvement',
+ title: 'SideNav collapse animation is smoother with CSS transitions',
+ tags: ['core', 'animation'],
+ },
+ {
+ date: 'Mar.15',
+ type: 'Fix',
+ title: 'DropdownMenu keyboard navigation skipping disabled items',
+ tags: ['core', 'accessibility'],
+ },
+ {
+ date: 'Mar.12',
+ type: 'Breaking',
+ title:
+ 'XDSThemeProvider: theme prop now accepts a theme package instead of a config object',
+ tags: ['core', 'themes'],
+ },
+ {
+ date: 'Mar.05',
+ type: 'Release',
+ title: 'MultiSelector component for multi-value tokenized selection',
+ tags: ['core', 'form'],
+ },
+ {
+ date: 'Mar.05',
+ type: 'Release',
+ title: 'Tokenizer component for tag-style multi-value inputs',
+ tags: ['core', 'form'],
+ },
+ {
+ date: 'Mar.05',
+ type: 'Release',
+ title: 'FormLayout component for structured form field arrangement',
+ tags: ['core', 'form'],
+ },
+ {
+ date: 'Mar.03',
+ type: 'Improvement',
+ title:
+ 'All form components now announce validation errors to screen readers',
+ tags: ['core', 'accessibility'],
+ },
+ {
+ date: 'Mar.01',
+ type: 'Fix',
+ title:
+ 'CheckboxInput indeterminate state not rendering correctly in Safari',
+ tags: ['core', 'form'],
+ },
+ // February 2026
+ {
+ date: 'Feb.18',
+ type: 'Release',
+ title:
+ 'AppShell component for foundational page layout with header, sidebar, and content',
+ tags: ['core', 'layout'],
+ },
+ {
+ date: 'Feb.18',
+ type: 'Release',
+ title: 'TopNav with mega menu support and responsive mobile drawer',
+ tags: ['core', 'navigation'],
+ },
+ {
+ date: 'Feb.18',
+ type: 'Release',
+ title: 'Breadcrumbs component with overflow truncation',
+ tags: ['core', 'navigation'],
+ },
+ {
+ date: 'Feb.14',
+ type: 'Improvement',
+ title: 'Card hover state uses CSS transitions instead of JS state',
+ tags: ['core'],
+ },
+ {
+ date: 'Feb.10',
+ type: 'Improvement',
+ title: 'Slider supports keyboard step, page-step, and home/end shortcuts',
+ tags: ['core', 'accessibility'],
+ },
+ {
+ date: 'Feb.05',
+ type: 'Fix',
+ title: 'Stack gap prop not applying when direction changes at breakpoints',
+ tags: ['core', 'layout'],
+ },
+];
+
+const CHANGELOG_TYPE_STYLES: Record<
+ ChangelogType,
+ {bg: string; color: string}
+> = {
+ Release: {bg: '#D1FAE5', color: '#065F46'},
+ Improvement: {bg: '#DBEAFE', color: '#1E40AF'},
+ Fix: {bg: '#FEF3C7', color: '#92400E'},
+ Breaking: {bg: '#FEE2E2', color: '#991B1B'},
+};
+
+const CHANGELOG_FILTERS: ChangelogType[] = [
+ 'Release',
+ 'Improvement',
+ 'Fix',
+ 'Breaking',
+];
+
+function groupByMonth(entries: typeof CHANGELOG_ENTRIES) {
+ const months: {label: string; items: typeof CHANGELOG_ENTRIES}[] = [];
+ const map = new Map<string, typeof CHANGELOG_ENTRIES>();
+ for (const e of entries) {
+ const month = e.date.split('.')[0];
+ const key =
+ month === 'Apr'
+ ? 'April 2026'
+ : month === 'Mar'
+ ? 'March 2026'
+ : month === 'Feb'
+ ? 'February 2026'
+ : month;
+ if (!map.has(key)) {
+ map.set(key, []);
+ months.push({label: key, items: map.get(key)!});
+ }
+ map.get(key)!.push(e);
+ }
+ return months;
+}
+
+// ---------------------------------------------------------------------------
+// WhatsNewPage component
+// ---------------------------------------------------------------------------
+
+function WhatsNewPage() {
+ const [activeFilter, setActiveFilter] = useState<ChangelogType | 'All'>(
+ 'All',
+ );
+
+ const filtered =
+ activeFilter === 'All'
+ ? CHANGELOG_ENTRIES
+ : CHANGELOG_ENTRIES.filter(e => e.type === activeFilter);
+
+ const months = groupByMonth(filtered);
+
+ return (
+ <div style={{maxWidth: 960, margin: '0 auto', padding: '32px 40px'}}>
+ <XDSStack direction="vertical" gap={2}>
+ <XDSText type="display-1">What&#39;s New</XDSText>
+ <XDSText type="body" color="secondary">
+ Latest updates, new components, improvements, and breaking changes.
+ </XDSText>
+ </XDSStack>
+
+ {/* Filter tabs */}
+ <div style={{marginTop: 24, marginBottom: 40}}>
+ <XDSTabList
+ value={activeFilter}
+ onChange={v => setActiveFilter(v as ChangelogType | 'All')}
+ size="sm">
+ <XDSTab value="All" label="All" />
+ {CHANGELOG_FILTERS.map(filter => (
+ <XDSTab key={filter} value={filter} label={filter} />
+ ))}
+ </XDSTabList>
+ </div>
+
+ {/* Entries grouped by month */}
+ {months.map(month => (
+ <div key={month.label} style={{marginBottom: 48}}>
+ {/* Month header */}
+ <XDSStack
+ direction="horizontal"
+ gap={2}
+ vAlign="center"
+ style={{marginBottom: 20}}>
+ <XDSHeading level={2}>{month.label}</XDSHeading>
+ </XDSStack>
+
+ {/* Entry list */}
+ {month.items.map((entry, i) => {
+ const typeStyle = CHANGELOG_TYPE_STYLES[entry.type];
+ const MAX_VISIBLE_TAGS = 2;
+ const visibleTags = entry.tags.slice(0, MAX_VISIBLE_TAGS);
+ const overflowCount = entry.tags.length - MAX_VISIBLE_TAGS;
+ return (
+ <div key={`${entry.date}-${i}`}>
+ <div style={{padding: '20px 0'}}>
+ {/* Line 1: date + badge */}
+ <XDSStack
+ direction="horizontal"
+ gap={3}
+ vAlign="center"
+ style={{marginBottom: 8}}>
+ <XDSText
+ type="supporting"
+ color="secondary"
+ style={{
+ fontFamily: 'monospace',
+ fontSize: 12,
+ textTransform: 'uppercase',
+ letterSpacing: '0.04em',
+ }}>
+ {entry.date}
+ </XDSText>
+ <XDSBadge
+ label={entry.type}
+ variant={
+ entry.type === 'Release'
+ ? 'success'
+ : entry.type === 'Improvement'
+ ? 'info'
+ : entry.type === 'Fix'
+ ? 'warning'
+ : 'error'
+ }
+ />
+ </XDSStack>
+
+ {/* Line 2: title (left) + tags (right) */}
+ <div
+ style={{
+ display: 'flex',
+ alignItems: 'baseline',
+ gap: 24,
+ }}>
+ <XDSText
+ type="body"
+ weight="bold"
+ style={{flex: 1, minWidth: 0}}>
+ {entry.title}
+ </XDSText>
+ <XDSStack
+ direction="horizontal"
+ gap={2}
+ vAlign="center"
+ style={{flexShrink: 0}}>
+ {visibleTags.map(tag => (
+ <XDSText
+ key={tag}
+ type="supporting"
+ color="secondary"
+ style={{
+ fontSize: 11,
+ textTransform: 'uppercase',
+ letterSpacing: '0.06em',
+ fontFamily: 'monospace',
+ }}>
+ {tag}
+ </XDSText>
+ ))}
+ {overflowCount > 0 && (
+ <XDSText
+ type="supporting"
+ color="secondary"
+ style={{
+ fontSize: 11,
+ fontFamily: 'monospace',
+ }}>
+ ... +{overflowCount}
+ </XDSText>
+ )}
+ </XDSStack>
+ </div>
+ </div>
+ {i < month.items.length - 1 && <XDSDivider />}
+ </div>
+ );
+ })}
+ </div>
+ ))}
+ </div>
+ );
+}
+
+// ---------------------------------------------------------------------------
+// LibraryOverview component
+// ---------------------------------------------------------------------------
+
+function LibraryOverview({
+ onGetStarted,
+ onSelectComponent,
+}: {
+ onGetStarted: () => void;
+ onSelectComponent: (key: string) => void;
+}) {
+ const totalComponents = COMPONENT_CATEGORIES.reduce(
+ (sum, cat) => sum + cat.items.length,
+ 0,
+ );
+
+ return (
+ <div style={{maxWidth: 1200, margin: '0 auto', padding: '32px 40px'}}>
+ {/* ── Section 1: Hero ── */}
+ <div
+ style={{
+ marginBottom: 64,
+ backgroundColor: 'var(--color-background-accent-muted, #e3f2fd)',
+ borderRadius: 24,
+ padding: '64px 60px',
+ display: 'flex',
+ alignItems: 'center',
+ gap: 48,
+ overflow: 'hidden',
+ minHeight: 340,
+ }}>
+ <div style={{flex: 1, minWidth: 0}}>
+ <XDSText type="supporting" color="secondary">
+ XDS Design System
+ </XDSText>
+ <div style={{marginTop: 8}}>
+ <XDSText type="display-1">Build products faster with XDS.</XDSText>
+ </div>
+ <div style={{marginTop: 16, maxWidth: 540}}>
+ <XDSText type="large" color="secondary">
+ XDS is an open-source React component library born from years of
+ building internal tools at Meta. Built with TypeScript and StyleX,
+ it provides 60+ accessible, themeable components for shipping
+ polished UIs fast.
+ </XDSText>
+ </div>
+ <div style={{marginTop: 28, display: 'flex', gap: 12}}>
+ <XDSButton
+ label="Get started"
+ variant="primary"
+ size="lg"
+ onClick={onGetStarted}
+ />
+ <XDSButton
+ label="Find inspiration"
+ variant="secondary"
+ size="lg"
+ onClick={() => onSelectComponent('button')}
+ />
+ </div>
+ <div
+ style={{
+ marginTop: 32,
+ display: 'flex',
+ gap: 32,
+ }}>
+ {[
+ {value: `${totalComponents}+`, label: 'Components'},
+ {value: '6', label: 'Themes'},
+ {value: 'MIT', label: 'License'},
+ ].map(stat => (
+ <div key={stat.label}>
+ <XDSText
+ type="body"
+ style={{fontWeight: 700, display: 'block'}}>
+ {stat.value}
+ </XDSText>
+ <XDSText type="supporting" color="secondary">
+ {stat.label}
+ </XDSText>
+ </div>
+ ))}
+ </div>
+ </div>
+ <div
+ style={{
+ flex: '0 0 320px',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ opacity: 0.08,
+ }}>
+ <svg width="280" height="148" viewBox="0 0 46 24" fill="currentColor">
+ <path d="M2.4239 15.8011C2.03945 16.3796 1.66972 16.9538 1.3147 17.524C0.707427 18.4992 1.42354 19.7348 2.57241 19.7348C3.13302 19.7348 3.64463 19.4209 3.91525 18.93C4.29391 18.243 4.71274 17.5352 5.17173 16.8066C5.38894 16.4618 5.60743 16.12 5.82721 15.7812C6.25251 15.1254 6.46516 14.7976 6.76252 14.68C6.99255 14.5891 7.27368 14.5899 7.50317 14.6822C7.79984 14.8014 8.00881 15.1278 8.42675 15.7804C8.64287 16.1179 8.85732 16.46 9.07008 16.8066C9.52175 17.534 9.93823 18.2339 10.3195 18.9063C10.6075 19.4141 11.1428 19.7348 11.7266 19.7348C12.9476 19.7348 13.7063 18.4203 13.0547 17.3877C12.7332 16.8781 12.3991 16.3639 12.0525 15.8453C11.3983 14.8527 10.7379 13.8906 10.0714 12.9592C9.81687 12.6036 9.68962 12.4258 9.64377 12.2384C9.60589 12.0836 9.60492 11.9307 9.64085 11.7754C9.68435 11.5874 9.80856 11.4091 10.057 11.0526C10.7093 10.1164 11.3596 9.15781 12.0078 8.1768C12.3869 7.60474 12.7521 7.03681 13.1035 6.47298C13.71 5.49987 12.9962 4.26519 11.8496 4.26519C11.2943 4.26519 10.7868 4.57405 10.5169 5.05923C10.1399 5.73688 9.72461 6.43721 9.27114 7.16022C9.06143 7.49458 8.8505 7.82569 8.63835 8.15358C8.21478 8.80819 8.003 9.1355 7.70554 9.25334C7.47561 9.34442 7.19397 9.34375 6.96448 9.25156C6.66759 9.13229 6.45853 8.80578 6.04043 8.15276C5.83116 7.82591 5.62351 7.49506 5.41747 7.16022C4.97918 6.44793 4.5738 5.76096 4.20132 5.0993C3.9136 4.58821 3.37617 4.26519 2.78967 4.26519C1.56624 4.26519 0.805692 5.58299 1.45419 6.62041C1.76588 7.11903 2.08912 7.6231 2.4239 8.1326C3.0752 9.10994 3.73263 10.059 4.3962 10.9796C4.65373 11.337 4.7825 11.5156 4.82882 11.7042C4.86709 11.86 4.86797 12.0139 4.83149 12.1702C4.78732 12.3593 4.66122 12.5385 4.40903 12.897C3.74526 13.8406 3.08355 14.8086 2.4239 15.8011Z" />
+ <path
+ fillRule="evenodd"
+ clipRule="evenodd"
+ d="M22.4734 4.26519C20.4471 4.26519 19.434 4.26519 18.6657 4.67201C18.0456 5.00031 17.5385 5.50739 17.2102 6.12744C16.8034 6.89579 16.8034 7.90892 16.8034 9.9352V14.0648C16.8034 16.0911 16.8034 17.1042 17.2102 17.8726C17.5385 18.4926 18.0456 18.9997 18.6657 19.328C19.434 19.7348 20.4471 19.7348 22.4734 19.7348H23.2039C24.8496 19.7348 26.2644 19.4033 27.4485 18.7403C28.6399 18.07 29.5559 17.1529 30.1963 15.989C30.8367 14.825 31.1569 13.4954 31.1569 12C31.1569 10.5046 30.8367 9.17495 30.1963 8.01105C29.5559 6.84714 28.6399 5.9337 27.4485 5.27072C26.2644 4.60037 24.8496 4.26519 23.2039 4.26519H22.4734ZM20.0092 8.74707C20.0092 8.16814 20.0092 7.87867 20.1255 7.65914C20.2193 7.48198 20.3641 7.33711 20.5413 7.24331C20.7608 7.12707 21.0503 7.12707 21.6292 7.12707H23.1927C24.6522 7.12707 25.7916 7.57274 26.6107 8.46409C27.4299 9.34807 27.8394 10.5267 27.8394 12C27.8394 13.4659 27.4299 14.6446 26.6107 15.5359C25.7916 16.4273 24.6522 16.8729 23.1927 16.8729H21.6292C21.0503 16.8729 20.7608 16.8729 20.5413 16.7567C20.3641 16.6629 20.2193 16.518 20.1255 16.3409C20.0092 16.1213 20.0092 15.8319 20.0092 15.2529V8.74707Z"
+ />
+ <path d="M35.4666 19.2376C36.6134 19.7459 37.9501 20 39.4767 20H39.8006C41.7144 20 43.2261 19.5801 44.3357 18.7403C45.4452 17.9006 46 16.7403 46 15.2597C46 14.3757 45.8213 13.6501 45.4638 13.0829C45.1064 12.5083 44.6559 12.0589 44.1123 11.7348C43.5761 11.4033 43.0325 11.1565 42.4814 10.9945C41.9304 10.8324 41.4575 10.7145 41.0628 10.6409L38.706 10.1878C38.0283 10.0552 37.4698 9.87477 37.0305 9.64641C36.5985 9.41068 36.3826 9.02762 36.3826 8.49724C36.3826 7.96685 36.6395 7.55064 37.1533 7.24862C37.6671 6.93923 38.3857 6.78453 39.3091 6.78453H39.6219C40.3964 6.78453 41.1224 6.93186 41.8001 7.22652C42.0982 7.35474 42.3899 7.5234 42.6754 7.73251C43.326 8.20923 44.2444 8.27802 44.8243 7.71734C45.34 7.21868 45.4053 6.39786 44.8761 5.91349C44.3498 5.43171 43.7638 5.03698 43.1181 4.72928C42.1054 4.24309 40.9511 4 39.6554 4H39.3315C38.0953 4 37.0156 4.19521 36.0922 4.58564C35.1762 4.97606 34.4613 5.52486 33.9475 6.23204C33.4411 6.93186 33.188 7.76059 33.188 8.71823C33.188 9.49171 33.3406 10.1436 33.6459 10.674C33.9587 11.2044 34.3571 11.6354 34.8411 11.9669C35.3326 12.2983 35.8539 12.5599 36.4049 12.7514C36.956 12.9355 37.4698 13.0718 37.9464 13.1602L40.3033 13.6243C40.6905 13.698 41.074 13.8011 41.4538 13.9337C41.841 14.0589 42.1612 14.2431 42.4144 14.4862C42.6676 14.7293 42.7942 15.0608 42.7942 15.4807C42.7942 16.6151 41.7814 17.1823 39.7559 17.1823H39.4432C38.49 17.1823 37.615 17.0055 36.8182 16.6519C36.4847 16.4994 36.1665 16.3134 35.8635 16.0938C35.17 15.5911 34.1857 15.5241 33.5784 16.1282C33.0651 16.6388 32.9912 17.4631 33.5198 17.9578C34.0797 18.4818 34.7287 18.9083 35.4666 19.2376Z" />
+ </svg>
+ </div>
+ </div>
+
+ {/* ── Section 2: Foundations ── */}
+ <div style={{marginBottom: 64}}>
+ <XDSText type="display-2">Foundations</XDSText>
+ <div style={{marginTop: 8, marginBottom: 24}}>
+ <XDSText type="body" color="secondary">
+ The design tokens and primitives that every component is built on.
+ </XDSText>
+ </div>
+ <div
+ style={{
+ display: 'grid',
+ gridTemplateColumns: 'repeat(3, 1fr)',
+ gap: 16,
+ }}>
+ {FOUNDATION_ITEMS.map(item => (
+ <XDSCard key={item.title} padding={0}>
+ <div style={{padding: '24px 24px 20px'}}>
+ <div
+ style={{
+ height: 52,
+ marginBottom: 16,
+ display: 'flex',
+ alignItems: 'center',
+ }}>
+ {item.visual}
+ </div>
+ <XDSText
+ type="body"
+ style={{fontWeight: 700, display: 'block'}}>
+ {item.title}
+ </XDSText>
+ <div style={{marginTop: 4}}>
+ <XDSText type="supporting" color="secondary">
+ {item.description}
+ </XDSText>
+ </div>
+ </div>
+ </XDSCard>
+ ))}
+ </div>
+ </div>
+
+ {/* ── Section 3: Libraries & Packages ── */}
+ <div style={{marginBottom: 64}}>
+ <XDSText type="display-2">Libraries &amp; Packages</XDSText>
+ <div style={{marginTop: 8, marginBottom: 24}}>
+ <XDSText type="body" color="secondary">
+ Install what you need. All packages are published to npm under the{' '}
+ <span style={{fontFamily: 'monospace'}}>@xds</span> scope.
+ </XDSText>
+ </div>
+ <div
+ style={{
+ display: 'grid',
+ gridTemplateColumns: 'repeat(2, 1fr)',
+ gap: 16,
+ }}>
+ {LIBRARY_PACKAGES.map(pkg => {
+ const ICON_MAP: Record<
+ string,
+ React.ComponentType<React.SVGProps<SVGSVGElement>>
+ > = {
+ core: CodeIcon,
+ charts: ChartsIcon,
+ chat: ChatIcon,
+ cli: TerminalIcon,
+ };
+ const IconComp = ICON_MAP[pkg.iconType] ?? CodeIcon;
+ return (
+ <XDSCard key={pkg.name} padding={0}>
+ <div
+ style={{
+ padding: 24,
+ display: 'flex',
+ flexDirection: 'column',
+ gap: 16,
+ height: '100%',
+ }}>
+ <div
+ style={{
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'space-between',
+ }}>
+ <div
+ style={{
+ width: 44,
+ height: 44,
+ borderRadius: 12,
+ backgroundColor:
+ 'var(--color-background-accent-muted, #DBEAFE)',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ }}>
+ <XDSIcon icon={IconComp} size="md" color="accent" />
+ </div>
+ <XDSBadge
+ label={pkg.status}
+ variant={
+ pkg.status === 'Stable'
+ ? 'success'
+ : pkg.status === 'Experimental'
+ ? 'warning'
+ : 'info'
+ }
+ />
+ </div>
+ <div style={{flex: 1}}>
+ <div
+ style={{
+ display: 'flex',
+ alignItems: 'baseline',
+ gap: 8,
+ }}>
+ <XDSText
+ type="body"
+ style={{
+ fontWeight: 700,
+ fontFamily: 'monospace',
+ fontSize: 14,
+ }}>
+ {pkg.name}
+ </XDSText>
+ {pkg.version && (
+ <XDSText
+ type="supporting"
+ color="secondary"
+ style={{fontFamily: 'monospace', fontSize: 12}}>
+ v{pkg.version}
+ </XDSText>
+ )}
+ </div>
+ <div style={{marginTop: 6}}>
+ <XDSText type="supporting" color="secondary">
+ {pkg.description}
+ </XDSText>
+ </div>
+ </div>
+ </div>
+ </XDSCard>
+ );
+ })}
+ </div>
+ </div>
+
+ {/* ── Section 3: Resources ── */}
+ <div style={{marginBottom: 64}}>
+ <XDSText type="display-2">Resources</XDSText>
+ <div style={{marginTop: 8, marginBottom: 24}}>
+ <XDSText type="body" color="secondary">
+ Everything you need to design, build, and contribute.
+ </XDSText>
+ </div>
+ <div
+ style={{
+ display: 'grid',
+ gridTemplateColumns: 'repeat(auto-fill, minmax(320px, 1fr))',
+ gap: 16,
+ }}>
+ {RESOURCE_ITEMS.map(resource => {
+ const IconComp = resource.icon;
+ return (
+ <XDSCard key={resource.title} padding={0}>
+ <div
+ style={{
+ padding: 24,
+ display: 'flex',
+ gap: 16,
+ alignItems: 'flex-start',
+ cursor: 'pointer',
+ }}>
+ <div
+ style={{
+ width: 44,
+ height: 44,
+ borderRadius: 12,
+ backgroundColor: resource.iconBg,
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ flexShrink: 0,
+ }}>
+ <XDSIcon icon={IconComp} size="md" color="accent" />
+ </div>
+ <div style={{flex: 1, minWidth: 0}}>
+ <XDSText
+ type="body"
+ style={{fontWeight: 700, display: 'block'}}>
+ {resource.title}
+ </XDSText>
+ <div style={{marginTop: 4}}>
+ <XDSText type="supporting" color="secondary">
+ {resource.description}
+ </XDSText>
+ </div>
+ </div>
+ <XDSIcon
+ icon={ExternalLinkIcon}
+ size="sm"
+ color="secondary"
+ />
+ </div>
+ </XDSCard>
+ );
+ })}
+ </div>
+ </div>
+
+ {/* ── Section 4: XDS OSS vs XDS WWW ── */}
+ <div style={{marginBottom: 64}}>
+ <XDSText type="display-2">XDS Open Source vs XDS WWW</XDSText>
+ <div style={{marginTop: 8, marginBottom: 24, maxWidth: 680}}>
+ <XDSText type="body" color="secondary">
+ XDS exists in two forms. This library is the open-source version,
+ which ports the design value from Meta&#39;s internal system with a
+ modern, open architecture. Every component can be forked or swizzled
+ — you own the code.
+ </XDSText>
+ </div>
+ <div
+ style={{
+ display: 'grid',
+ gridTemplateColumns: 'repeat(auto-fit, minmax(340px, 1fr))',
+ gap: 16,
+ }}>
+ {/* OSS card */}
+ <XDSCard padding={0}>
+ <div style={{padding: 28}}>
+ <div
+ style={{
+ display: 'flex',
+ alignItems: 'center',
+ gap: 10,
+ marginBottom: 8,
+ }}>
+ <div
+ style={{
+ width: 10,
+ height: 10,
+ borderRadius: '50%',
+ backgroundColor: '#059669',
+ flexShrink: 0,
+ }}
+ />
+ <XDSHeading level={3}>XDS Open Source</XDSHeading>
+ </div>
+ <XDSText
+ type="supporting"
+ color="secondary"
+ style={{
+ fontFamily: 'monospace',
+ display: 'block',
+ marginBottom: 16,
+ }}>
+ @xds/core
+ </XDSText>
+ <XDSDivider />
+ <div
+ style={{
+ marginTop: 16,
+ display: 'flex',
+ flexDirection: 'column',
+ gap: 16,
+ }}>
+ {OSS_FEATURES.map(feature => (
+ <div
+ key={feature.title}
+ style={{
+ display: 'flex',
+ gap: 12,
+ }}>
+ <div
+ style={{
+ width: 6,
+ height: 6,
+ borderRadius: '50%',
+ backgroundColor: '#059669',
+ flexShrink: 0,
+ marginTop: 7,
+ }}
+ />
+ <div>
+ <XDSText
+ type="body"
+ style={{fontWeight: 600, display: 'block'}}>
+ {feature.title}
+ </XDSText>
+ <XDSText type="supporting" color="secondary">
+ {feature.desc}
+ </XDSText>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </XDSCard>
+ {/* WWW card */}
+ <XDSCard padding={0}>
+ <div style={{padding: 28}}>
+ <div
+ style={{
+ display: 'flex',
+ alignItems: 'center',
+ gap: 10,
+ marginBottom: 8,
+ }}>
+ <div
+ style={{
+ width: 10,
+ height: 10,
+ borderRadius: '50%',
+ backgroundColor: '#6B7280',
+ flexShrink: 0,
+ }}
+ />
+ <XDSHeading level={3}>XDS WWW (Internal)</XDSHeading>
+ </div>
+ <XDSText
+ type="supporting"
+ color="secondary"
+ style={{
+ fontFamily: 'monospace',
+ display: 'block',
+ marginBottom: 16,
+ }}>
+ @xds/core
+ </XDSText>
+ <XDSDivider />
+ <div
+ style={{
+ marginTop: 16,
+ display: 'flex',
+ flexDirection: 'column',
+ gap: 16,
+ }}>
+ {WWW_FEATURES.map(feature => (
+ <div
+ key={feature.title}
+ style={{
+ display: 'flex',
+ gap: 12,
+ }}>
+ <div
+ style={{
+ width: 6,
+ height: 6,
+ borderRadius: '50%',
+ backgroundColor: '#6B7280',
+ flexShrink: 0,
+ marginTop: 7,
+ }}
+ />
+ <div>
+ <XDSText
+ type="body"
+ style={{fontWeight: 600, display: 'block'}}>
+ {feature.title}
+ </XDSText>
+ <XDSText type="supporting" color="secondary">
+ {feature.desc}
+ </XDSText>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </XDSCard>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+// ---------------------------------------------------------------------------
+// XDS wordmark SVG
+// ---------------------------------------------------------------------------
+
const XDS_WORDMARK = (
<svg
width="46"
@@ -69,14 +1231,46 @@ export function DocsView({
v: 'craft' | 'explore' | 'docs' | 'profile' | 'theme',
) => void;
}) {
- const [activeNav, setActiveNav] = useState('button');
+ const searchParams = useSearchParams();
+
+ const [activeNav, setActiveNav] = useState(() => {
+ const tab = searchParams.get('tab');
+ const component = searchParams.get('component');
+ if (tab === 'whats-new' || tab === 'getting-started') return tab;
+ if (component) return component;
+ return 'button';
+ });
const [_showCode, _setShowCode] = useState(true);
const [_activeRightNav, _setActiveRightNav] = useState('usage');
- const [selectedComponent, setSelectedComponent] = useState(
- null as string | null,
+ const [selectedComponent, setSelectedComponent] = useState<string | null>(
+ () => {
+ const tab = searchParams.get('tab');
+ const component = searchParams.get('component');
+ if (tab === 'whats-new' || tab === 'getting-started') return tab;
+ if (component) return component;
+ return null;
+ },
);
const [isSearchOpen, setIsSearchOpen] = useState(false);
+ useEffect(() => {
+ const params = new URLSearchParams();
+ params.set('page', 'docs');
+
+ if (selectedComponent === 'whats-new') {
+ params.set('tab', 'whats-new');
+ } else if (selectedComponent === 'getting-started') {
+ params.set('tab', 'getting-started');
+ } else if (selectedComponent !== null) {
+ params.set('component', selectedComponent);
+ }
+
+ const qs = params.toString();
+ if (qs === window.location.search.slice(1)) return;
+ const url = `/pages/docsite/?${qs}`;
+ window.history.replaceState(window.history.state, '', url);
+ }, [selectedComponent]);
+
const headingMenu = (
<>
<XDSNavMenuItem label="Craft" onClick={() => setActiveView('craft')} />
@@ -100,6 +1294,48 @@ export function DocsView({
menu={headingMenu}
/>
}
+ centerContent={
+ <div style={{display: 'flex', gap: 4}}>
+ {[
+ {
+ label: 'Home',
+ isActive: selectedComponent === null,
+ onClick: () => {
+ setSelectedComponent(null);
+ },
+ },
+ {
+ label: 'Getting Started',
+ isActive:
+ selectedComponent !== null &&
+ activeNav === 'getting-started',
+ onClick: () => {
+ setSelectedComponent('getting-started');
+ setActiveNav('getting-started');
+ },
+ },
+ {
+ label: "What's New",
+ isActive: selectedComponent === 'whats-new',
+ onClick: () => {
+ setSelectedComponent('whats-new');
+ setActiveNav('whats-new');
+ },
+ },
+ ].map(item => (
+ <XDSButton
+ key={item.label}
+ label={item.label}
+ variant="ghost"
+ size="sm"
+ onClick={item.onClick}
+ style={{
+ fontWeight: item.isActive ? 700 : 400,
+ }}
+ />
+ ))}
+ </div>
+ }
endContent={
<XDSStack direction="horizontal" gap={2}>
<XDSButton
@@ -128,16 +1364,6 @@ export function DocsView({
isSelected={selectedComponent === null}
onClick={() => setSelectedComponent(null)}
/>
- <XDSSideNavItem
- label="Getting started"
- isSelected={
- selectedComponent !== null && activeNav === 'getting-started'
- }
- onClick={() => {
- setSelectedComponent('getting-started');
- setActiveNav('getting-started');
- }}
- />
</XDSSideNavSection>
{COMPONENT_CATEGORIES.map(category => (
@@ -161,97 +1387,18 @@ export function DocsView({
}>
{/* MAIN CONTENT */}
{selectedComponent === null ? (
- <div style={{maxWidth: 1200, margin: '0 auto', padding: '32px 40px'}}>
- {/* Page header — hero banner */}
- <div
- style={{
- marginBottom: 48,
- backgroundColor:
- 'var(--color-background-accent-muted, #e3f2fd)',
- borderRadius: 24,
- padding: 60,
- display: 'flex',
- alignItems: 'center',
- gap: 48,
- overflow: 'hidden',
- minHeight: 320,
- }}>
- <div style={{flex: 1, minWidth: 0}}>
- <XDSText type="supporting" color="secondary">
- XDS Design System
- </XDSText>
- <div style={{marginTop: 8}}>
- <XDSText type="display-1">Web overview</XDSText>
- </div>
- <div style={{marginTop: 16}}>
- <XDSText type="large" color="secondary">
- XDS Web React is an open-source UI library created by the
- XDS Design Team to help developers quickly build beautiful,
- accessible products.
- </XDSText>
- </div>
- <div style={{marginTop: 24}}>
- <XDSButton
- label="Get started"
- variant="primary"
- size="lg"
- onClick={() => {
- setSelectedComponent('getting-started');
- setActiveNav('getting-started');
- }}
- />
- </div>
- </div>
- <div style={{flex: 1}} />
- </div>
-
- {/* Category sections */}
- {COMPONENT_CATEGORIES.map(category => (
- <div key={category.label} style={{marginBottom: 64}}>
- <div style={{marginBottom: 16}}>
- <XDSText type="display-2">{category.label}</XDSText>
- </div>
- <div
- style={{
- display: 'grid',
- gridTemplateColumns:
- 'repeat(auto-fill, minmax(260px, 1fr))',
- gap: 32,
- }}>
- {category.items.map(item => (
- <div
- key={item.key}
- onClick={() => {
- setSelectedComponent(item.key);
- setActiveNav(item.key);
- }}
- style={{cursor: 'pointer'}}>
- <XDSCard
- variant="muted"
- padding={0}
- minHeight={160}
- xstyle={localStyles.previewCard}
- />
- <div style={{paddingTop: 12}}>
- <XDSText
- type="body"
- style={{
- fontWeight: 700,
- display: 'block',
- marginBottom: 4,
- }}>
- {item.name}
- </XDSText>
- <XDSText type="supporting" color="secondary">
- {item.desc}
- </XDSText>
- </div>
- </div>
- ))}
- </div>
- </div>
- ))}
- </div>
+ <LibraryOverview
+ onGetStarted={() => {
+ setSelectedComponent('getting-started');
+ setActiveNav('getting-started');
+ }}
+ onSelectComponent={(key: string) => {
+ setSelectedComponent(key);
+ setActiveNav(key);
+ }}
+ />
+ ) : selectedComponent === 'whats-new' ? (
+ <WhatsNewPage />
) : (
<div style={{maxWidth: 840, margin: '0 auto', padding: '32px 40px'}}>
{/* Header */}
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 28799eec73..fd7058c81a 100644
--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/docsite-icons.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/docsite-icons.tsx
@@ -38,9 +38,16 @@ export {
StopIcon,
StarIcon,
CheckBadgeIcon as VerifiedIcon,
+ ChatBubbleLeftRightIcon as ChatIcon,
+ ChartBarIcon as ChartsIcon,
} from '@heroicons/react/24/outline';
-export {BookmarkIcon as BookmarkFilledIcon, HeartIcon as HeartFilledIcon, StarIcon as StarFilledIcon, CheckBadgeIcon as VerifiedFilledIcon} from '@heroicons/react/24/solid';
+export {
+ BookmarkIcon as BookmarkFilledIcon,
+ HeartIcon as HeartFilledIcon,
+ StarIcon as StarFilledIcon,
+ CheckBadgeIcon as VerifiedFilledIcon,
+} from '@heroicons/react/24/solid';
// Brand logos for theme picker
@@ -51,16 +58,41 @@ export function MetaLogo(props: React.SVGProps<SVGSVGElement>) {
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
+ 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
+ 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" />
+ <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>
);
}
@@ -71,18 +103,39 @@ export function WhatsAppLogo(props: React.SVGProps<SVGSVGElement>) {
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
+ 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" />
+ <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" fill="none" stroke="currentColor" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" {...props}>
+ <svg
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth={2}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ {...props}>
<path d="M12 17v5" />
<path d="M9 2h6l-1 7h4l-2 4H8L6 9h4z" />
</svg>
@@ -97,13 +150,19 @@ export const PinFilledIcon = (props: React.SVGProps<SVGSVGElement>) => (
export const ThreadsLogo = (props: React.SVGProps<SVGSVGElement>) => (
<svg aria-label="Threads" viewBox="0 0 192 192" {...props}>
- <path d="M141.537 88.9883C140.71 88.5919 139.87 88.2104 139.019 87.8451C137.537 60.5382 122.616 44.905 97.5619 44.745C97.4484 44.7443 97.3355 44.7443 97.222 44.7443C82.2364 44.7443 69.7731 51.1409 62.102 62.7807L75.881 72.2328C81.6116 63.5383 90.6052 61.6848 97.2286 61.6848C97.3051 61.6848 97.3819 61.6848 97.4576 61.6855C105.707 61.7381 111.932 64.1366 115.961 68.814C118.893 72.2193 120.854 76.925 121.825 82.8638C114.511 81.6207 106.601 81.2385 98.145 81.7233C74.3247 83.0954 59.0111 96.9879 60.0396 116.292C60.5615 126.084 65.4397 134.508 73.775 140.011C80.8224 144.663 89.899 146.938 99.3323 146.423C111.79 145.74 121.563 140.987 128.381 132.296C133.559 125.696 136.834 117.143 138.28 106.366C144.217 109.949 148.617 114.664 151.047 120.332C155.179 129.967 155.42 145.8 142.501 158.708C131.182 170.016 117.576 174.908 97.0135 175.059C74.2042 174.89 56.9538 167.575 45.7381 153.317C35.2355 139.966 29.8077 120.682 29.6052 96C29.8077 71.3178 35.2355 52.0336 45.7381 38.6827C56.9538 24.4249 74.2039 17.11 97.0132 16.9405C119.988 17.1113 137.539 24.4614 149.184 38.788C154.894 45.8136 159.199 54.6488 162.037 64.9503L178.184 60.6422C174.744 47.9622 169.331 37.0357 161.965 27.974C147.036 9.60668 125.202 0.195148 97.0695 0H96.9569C68.8816 0.19447 47.2921 9.6418 32.7883 28.0793C19.8819 44.4864 13.2244 67.3157 13.0007 95.9325L13 96L13.0007 96.0675C13.2244 124.684 19.8819 147.514 32.7883 163.921C47.2921 182.358 68.8816 191.806 96.9569 192H97.0695C122.03 191.827 139.624 185.292 154.118 170.811C173.081 151.866 172.51 128.119 166.26 113.541C161.776 103.087 153.227 94.5962 141.537 88.9883ZM98.4405 129.507C88.0005 130.095 77.1544 125.409 76.6196 115.372C76.2232 107.93 81.9158 99.626 99.0812 98.6368C101.047 98.5234 102.976 98.468 104.871 98.468C111.106 98.468 116.939 99.0737 122.242 100.233C120.264 124.935 108.662 128.946 98.4405 129.507Z" fill="#000" />
+ <path
+ d="M141.537 88.9883C140.71 88.5919 139.87 88.2104 139.019 87.8451C137.537 60.5382 122.616 44.905 97.5619 44.745C97.4484 44.7443 97.3355 44.7443 97.222 44.7443C82.2364 44.7443 69.7731 51.1409 62.102 62.7807L75.881 72.2328C81.6116 63.5383 90.6052 61.6848 97.2286 61.6848C97.3051 61.6848 97.3819 61.6848 97.4576 61.6855C105.707 61.7381 111.932 64.1366 115.961 68.814C118.893 72.2193 120.854 76.925 121.825 82.8638C114.511 81.6207 106.601 81.2385 98.145 81.7233C74.3247 83.0954 59.0111 96.9879 60.0396 116.292C60.5615 126.084 65.4397 134.508 73.775 140.011C80.8224 144.663 89.899 146.938 99.3323 146.423C111.79 145.74 121.563 140.987 128.381 132.296C133.559 125.696 136.834 117.143 138.28 106.366C144.217 109.949 148.617 114.664 151.047 120.332C155.179 129.967 155.42 145.8 142.501 158.708C131.182 170.016 117.576 174.908 97.0135 175.059C74.2042 174.89 56.9538 167.575 45.7381 153.317C35.2355 139.966 29.8077 120.682 29.6052 96C29.8077 71.3178 35.2355 52.0336 45.7381 38.6827C56.9538 24.4249 74.2039 17.11 97.0132 16.9405C119.988 17.1113 137.539 24.4614 149.184 38.788C154.894 45.8136 159.199 54.6488 162.037 64.9503L178.184 60.6422C174.744 47.9622 169.331 37.0357 161.965 27.974C147.036 9.60668 125.202 0.195148 97.0695 0H96.9569C68.8816 0.19447 47.2921 9.6418 32.7883 28.0793C19.8819 44.4864 13.2244 67.3157 13.0007 95.9325L13 96L13.0007 96.0675C13.2244 124.684 19.8819 147.514 32.7883 163.921C47.2921 182.358 68.8816 191.806 96.9569 192H97.0695C122.03 191.827 139.624 185.292 154.118 170.811C173.081 151.866 172.51 128.119 166.26 113.541C161.776 103.087 153.227 94.5962 141.537 88.9883ZM98.4405 129.507C88.0005 130.095 77.1544 125.409 76.6196 115.372C76.2232 107.93 81.9158 99.626 99.0812 98.6368C101.047 98.5234 102.976 98.468 104.871 98.468C111.106 98.468 116.939 99.0737 122.242 100.233C120.264 124.935 108.662 128.946 98.4405 129.507Z"
+ fill="#000"
+ />
</svg>
);
export const FacebookLogo = (props: React.SVGProps<SVGSVGElement>) => (
<svg viewBox="0 0 24 24" fill="none" {...props}>
- <path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z" fill="#1877F2" />
+ <path
+ d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
+ fill="#1877F2"
+ />
</svg>
);
@@ -112,7 +171,11 @@ export const FacebookLogo = (props: React.SVGProps<SVGSVGElement>) => (
export const DefaultThemeIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg viewBox="0 0 46 24" fill="currentColor" {...props}>
<path d="M2.4239 15.8011C2.03945 16.3796 1.66972 16.9538 1.3147 17.524C0.707427 18.4992 1.42354 19.7348 2.57241 19.7348C3.13302 19.7348 3.64463 19.4209 3.91525 18.93C4.29391 18.243 4.71274 17.5352 5.17173 16.8066C5.38894 16.4618 5.60743 16.12 5.82721 15.7812C6.25251 15.1254 6.46516 14.7976 6.76252 14.68C6.99255 14.5891 7.27368 14.5899 7.50317 14.6822C7.79984 14.8014 8.00881 15.1278 8.42675 15.7804C8.64287 16.1179 8.85732 16.46 9.07008 16.8066C9.52175 17.534 9.93823 18.2339 10.3195 18.9063C10.6075 19.4141 11.1428 19.7348 11.7266 19.7348C12.9476 19.7348 13.7063 18.4203 13.0547 17.3877C12.7332 16.8781 12.3991 16.3639 12.0525 15.8453C11.3983 14.8527 10.7379 13.8906 10.0714 12.9592C9.81687 12.6036 9.68962 12.4258 9.64377 12.2384C9.60589 12.0836 9.60492 11.9307 9.64085 11.7754C9.68435 11.5874 9.80856 11.4091 10.057 11.0526C10.7093 10.1164 11.3596 9.15781 12.0078 8.1768C12.3869 7.60474 12.7521 7.03681 13.1035 6.47298C13.71 5.49987 12.9962 4.26519 11.8496 4.26519C11.2943 4.26519 10.7868 4.57405 10.5169 5.05923C10.1399 5.73688 9.72461 6.43721 9.27114 7.16022C9.06143 7.49458 8.8505 7.82569 8.63835 8.15358C8.21478 8.80819 8.003 9.1355 7.70554 9.25334C7.47561 9.34442 7.19397 9.34375 6.96448 9.25156C6.66759 9.13229 6.45853 8.80578 6.04043 8.15276C5.83116 7.82591 5.62351 7.49506 5.41747 7.16022C4.97918 6.44793 4.5738 5.76096 4.20132 5.0993C3.9136 4.58821 3.37617 4.26519 2.78967 4.26519C1.56624 4.26519 0.805692 5.58299 1.45419 6.62041C1.76588 7.11903 2.08912 7.6231 2.4239 8.1326C3.0752 9.10994 3.73263 10.059 4.3962 10.9796C4.65373 11.337 4.7825 11.5156 4.82882 11.7042C4.86709 11.86 4.86797 12.0139 4.83149 12.1702C4.78732 12.3593 4.66122 12.5385 4.40903 12.897C3.74526 13.8406 3.08355 14.8086 2.4239 15.8011Z" />
- <path fillRule="evenodd" clipRule="evenodd" d="M22.4734 4.26519C20.4471 4.26519 19.434 4.26519 18.6657 4.67201C18.0456 5.00031 17.5385 5.50739 17.2102 6.12744C16.8034 6.89579 16.8034 7.90892 16.8034 9.9352V14.0648C16.8034 16.0911 16.8034 17.1042 17.2102 17.8726C17.5385 18.4926 18.0456 18.9997 18.6657 19.328C19.434 19.7348 20.4471 19.7348 22.4734 19.7348H23.2039C24.8496 19.7348 26.2644 19.4033 27.4485 18.7403C28.6399 18.07 29.5559 17.1529 30.1963 15.989C30.8367 14.825 31.1569 13.4954 31.1569 12C31.1569 10.5046 30.8367 9.17495 30.1963 8.01105C29.5559 6.84714 28.6399 5.9337 27.4485 5.27072C26.2644 4.60037 24.8496 4.26519 23.2039 4.26519H22.4734ZM20.0092 8.74707C20.0092 8.16814 20.0092 7.87867 20.1255 7.65914C20.2193 7.48198 20.3641 7.33711 20.5413 7.24331C20.7608 7.12707 21.0503 7.12707 21.6292 7.12707H23.1927C24.6522 7.12707 25.7916 7.57274 26.6107 8.46409C27.4299 9.34807 27.8394 10.5267 27.8394 12C27.8394 13.4659 27.4299 14.6446 26.6107 15.5359C25.7916 16.4273 24.6522 16.8729 23.1927 16.8729H21.6292C21.0503 16.8729 20.7608 16.8729 20.5413 16.7567C20.3641 16.6629 20.2193 16.518 20.1255 16.3409C20.0092 16.1213 20.0092 15.8319 20.0092 15.2529V8.74707Z" />
+ <path
+ fillRule="evenodd"
+ clipRule="evenodd"
+ d="M22.4734 4.26519C20.4471 4.26519 19.434 4.26519 18.6657 4.67201C18.0456 5.00031 17.5385 5.50739 17.2102 6.12744C16.8034 6.89579 16.8034 7.90892 16.8034 9.9352V14.0648C16.8034 16.0911 16.8034 17.1042 17.2102 17.8726C17.5385 18.4926 18.0456 18.9997 18.6657 19.328C19.434 19.7348 20.4471 19.7348 22.4734 19.7348H23.2039C24.8496 19.7348 26.2644 19.4033 27.4485 18.7403C28.6399 18.07 29.5559 17.1529 30.1963 15.989C30.8367 14.825 31.1569 13.4954 31.1569 12C31.1569 10.5046 30.8367 9.17495 30.1963 8.01105C29.5559 6.84714 28.6399 5.9337 27.4485 5.27072C26.2644 4.60037 24.8496 4.26519 23.2039 4.26519H22.4734ZM20.0092 8.74707C20.0092 8.16814 20.0092 7.87867 20.1255 7.65914C20.2193 7.48198 20.3641 7.33711 20.5413 7.24331C20.7608 7.12707 21.0503 7.12707 21.6292 7.12707H23.1927C24.6522 7.12707 25.7916 7.57274 26.6107 8.46409C27.4299 9.34807 27.8394 10.5267 27.8394 12C27.8394 13.4659 27.4299 14.6446 26.6107 15.5359C25.7916 16.4273 24.6522 16.8729 23.1927 16.8729H21.6292C21.0503 16.8729 20.7608 16.8729 20.5413 16.7567C20.3641 16.6629 20.2193 16.518 20.1255 16.3409C20.0092 16.1213 20.0092 15.8319 20.0092 15.2529V8.74707Z"
+ />
<path d="M35.4666 19.2376C36.6134 19.7459 37.9501 20 39.4767 20H39.8006C41.7144 20 43.2261 19.5801 44.3357 18.7403C45.4452 17.9006 46 16.7403 46 15.2597C46 14.3757 45.8213 13.6501 45.4638 13.0829C45.1064 12.5083 44.6559 12.0589 44.1123 11.7348C43.5761 11.4033 43.0325 11.1565 42.4814 10.9945C41.9304 10.8324 41.4575 10.7145 41.0628 10.6409L38.706 10.1878C38.0283 10.0552 37.4698 9.87477 37.0305 9.64641C36.5985 9.41068 36.3826 9.02762 36.3826 8.49724C36.3826 7.96685 36.6395 7.55064 37.1533 7.24862C37.6671 6.93923 38.3857 6.78453 39.3091 6.78453H39.6219C40.3964 6.78453 41.1224 6.93186 41.8001 7.22652C42.0982 7.35474 42.3899 7.5234 42.6754 7.73251C43.326 8.20923 44.2444 8.27802 44.8243 7.71734C45.34 7.21868 45.4053 6.39786 44.8761 5.91349C44.3498 5.43171 43.7638 5.03698 43.1181 4.72928C42.1054 4.24309 40.9511 4 39.6554 4H39.3315C38.0953 4 37.0156 4.19521 36.0922 4.58564C35.1762 4.97606 34.4613 5.52486 33.9475 6.23204C33.4411 6.93186 33.188 7.76059 33.188 8.71823C33.188 9.49171 33.3406 10.1436 33.6459 10.674C33.9587 11.2044 34.3571 11.6354 34.8411 11.9669C35.3326 12.2983 35.8539 12.5599 36.4049 12.7514C36.956 12.9355 37.4698 13.0718 37.9464 13.1602L40.3033 13.6243C40.6905 13.698 41.074 13.8011 41.4538 13.9337C41.841 14.0589 42.1612 14.2431 42.4144 14.4862C42.6676 14.7293 42.7942 15.0608 42.7942 15.4807C42.7942 16.6151 41.7814 17.1823 39.7559 17.1823H39.4432C38.49 17.1823 37.615 17.0055 36.8182 16.6519C36.4847 16.4994 36.1665 16.3134 35.8635 16.0938C35.17 15.5911 34.1857 15.5241 33.5784 16.1282C33.0651 16.6388 32.9912 17.4631 33.5198 17.9578C34.0797 18.4818 34.7287 18.9083 35.4666 19.2376Z" />
</svg>
);
@@ -135,30 +198,66 @@ export const DailyThemeIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg viewBox="0 0 20 20" fill="none" {...props}>
<circle cx="10" cy="10" r="4" fill="#0064E0" />
{[0, 45, 90, 135, 180, 225, 270, 315].map(deg => (
- <line key={deg} x1="10" y1="2" x2="10" y2="4.5" stroke="#0064E0" strokeWidth="1.8" strokeLinecap="round" transform={`rotate(${deg} 10 10)`} />
+ <line
+ key={deg}
+ x1="10"
+ y1="2"
+ x2="10"
+ y2="4.5"
+ stroke="#0064E0"
+ strokeWidth="1.8"
+ strokeLinecap="round"
+ transform={`rotate(${deg} 10 10)`}
+ />
))}
</svg>
);
export const ForestThemeIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg viewBox="0 0 20 20" fill="none" {...props}>
- <path d="M10 2C10 2 4 8 4 12.5C4 15.5 6.7 18 10 18C13.3 18 16 15.5 16 12.5C16 8 10 2 10 2Z" fill="#2D8A4E" />
- <path d="M10 10V17" stroke="#1A5C33" strokeWidth="1.5" strokeLinecap="round" />
- <path d="M10 13C8.5 11.5 7 12 7 12" stroke="#1A5C33" strokeWidth="1.2" strokeLinecap="round" />
+ <path
+ d="M10 2C10 2 4 8 4 12.5C4 15.5 6.7 18 10 18C13.3 18 16 15.5 16 12.5C16 8 10 2 10 2Z"
+ fill="#2D8A4E"
+ />
+ <path
+ d="M10 10V17"
+ stroke="#1A5C33"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ />
+ <path
+ d="M10 13C8.5 11.5 7 12 7 12"
+ stroke="#1A5C33"
+ strokeWidth="1.2"
+ strokeLinecap="round"
+ />
</svg>
);
export const SunsetThemeIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg viewBox="0 0 20 20" fill="none" {...props}>
- <path d="M3 14h14" stroke="#E5484D" strokeWidth="1.5" strokeLinecap="round" />
+ <path
+ d="M3 14h14"
+ stroke="#E5484D"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ />
<path d="M5 14a5 5 0 0110 0" fill="#E5484D" />
- <path d="M10 3v2M15.5 8.5l-1.4 1.4M4.5 8.5l1.4 1.4M17 14h0M3 14h0" stroke="#F59E0B" strokeWidth="1.5" strokeLinecap="round" />
+ <path
+ d="M10 3v2M15.5 8.5l-1.4 1.4M4.5 8.5l1.4 1.4M17 14h0M3 14h0"
+ stroke="#F59E0B"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ />
</svg>
);
export const MidnightThemeIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg viewBox="0 0 20 20" fill="none" {...props}>
- <path d="M15.5 11.5A6.5 6.5 0 018.5 4.5 6.5 6.5 0 1015.5 11.5z" fill="#818CF8" />
+ <path
+ d="M15.5 11.5A6.5 6.5 0 018.5 4.5 6.5 6.5 0 1015.5 11.5z"
+ fill="#818CF8"
+ />
<circle cx="14" cy="5" r="1" fill="#818CF8" opacity={0.6} />
<circle cx="16.5" cy="8" r="0.6" fill="#818CF8" opacity={0.4} />
</svg>