An open source design system that's fully customizable and agent ready
TypeScript
fix(docsite): Site footer and Astryx logo (#2931)
Kenton Quatman2a7285c9417a
diff --git a/apps/docsite/public/astryx-logo.svg b/apps/docsite/public/astryx-logo.svgdeleted file mode 100644index 5bb848b313..0000000000--- a/apps/docsite/public/astryx-logo.svg+++ /dev/null@@ -1,8 +0,0 @@-<svg width="217" height="33" viewBox="0 0 217 33" fill="none" xmlns="http://www.w3.org/2000/svg">-<path d="M49.1872 31.0024C46.0231 30.1429 43.0415 28.8536 40.248 27.1345C40.06 27.0163 40.0117 26.7638 40.1406 26.5865L45.6846 19.0387C45.8028 18.8776 46.0284 18.84 46.195 18.9528C47.8872 20.1078 49.9017 21.021 52.244 21.6872C54.7205 22.3909 56.8532 22.7455 58.6475 22.7455C60.4418 22.7455 61.6827 22.5091 62.6175 22.031C63.5522 21.5529 64.0196 20.9351 64.0196 20.1722C64.0196 19.5652 63.7886 19.0871 63.332 18.7433C62.8753 18.3994 62.2468 18.2275 61.4464 18.2275C60.9521 18.2275 60.3881 18.249 59.7595 18.2866C59.131 18.3242 58.626 18.3618 58.2446 18.3994C56.2623 18.6251 54.2263 18.7433 52.1311 18.7433C48.7413 18.7433 45.9855 18.104 43.8742 16.8308C41.7576 15.5522 40.7047 13.4679 40.7047 10.5723C40.7047 7.22011 42.2841 4.62001 45.4482 2.77201C48.6124 0.924003 53.2593 0 59.3942 0C62.4026 0 65.4432 0.429768 68.5107 1.28393C71.4224 2.09512 74.0117 3.29847 76.2895 4.88324C76.4829 5.01754 76.5044 5.29689 76.3378 5.46343L70.2781 11.5769C70.1599 11.6951 69.9826 11.7219 69.8376 11.6413C67.7586 10.5669 65.8139 9.79871 63.9981 9.34208C62.1125 8.86397 60.2161 8.62759 58.3091 8.62759C56.9768 8.62759 55.8325 8.8962 54.8817 9.42804C53.9308 9.96525 53.4527 10.5723 53.4527 11.2599C53.4527 11.7918 53.6514 12.2108 54.0543 12.517C54.4519 12.8232 54.9784 12.9736 55.6284 12.9736C56.2784 12.9736 57.1702 12.9145 58.3144 12.8017C61.0972 12.6137 63.1708 12.517 64.5461 12.517C68.5107 12.517 71.5781 13.1831 73.7485 14.5154C75.9188 15.8477 77.004 17.8891 77.004 20.6289C77.004 24.7439 75.4031 27.7254 72.2013 29.5734C68.9995 31.4214 64.5783 32.3454 58.943 32.3454C55.7412 32.3454 52.4964 31.8995 49.198 31.0024H49.1872Z" fill="#225BFF" style="fill:#225BFF;fill:color(display-p3 0.1333 0.3569 1.0000);fill-opacity:1;"/>-<path d="M38.5609 25.8618C38.3138 25.6899 38.1258 25.4857 37.9969 25.2547C37.6907 24.7175 37.5349 23.7935 37.5349 22.4881V15.6279C37.5349 10.3257 37.1158 4.70107 34.2579 2.14395C34.1182 2.0204 33.9785 1.90221 33.8335 1.78402C32.1628 0.435626 29.9871 -0.155307 27.9618 0.295949C26.7047 0.586043 25.6357 1.37574 25.0394 1.89683C23.8468 3.01423 22.3157 4.68496 21.2252 4.60975C20.0003 4.52379 19.0226 3.444 18.6627 2.26751C18.6627 2.26214 18.6627 2.2514 18.6573 2.24602C18.2651 0.945976 17.1316 0.00585938 15.7725 0.00585938H2.97614C1.33228 0.00585938 0 1.33814 0 2.982V7.17761C0 8.82147 1.33228 10.1538 2.97614 10.1538H21.2735C22.3103 10.1538 23.1162 10.3203 23.6963 10.6426C24.2712 10.9703 24.5612 11.3625 24.5612 11.8245C24.5612 12.3617 24.2712 12.8022 23.6963 13.1514C23.1215 13.4952 22.1223 13.6725 20.6987 13.6725C17.2391 13.6725 14.3543 13.8068 12.0496 14.0754L10.1479 14.3655C6.68827 14.9027 4.13115 15.8858 2.48191 17.304C0.827303 18.7276 0 20.6884 0 23.1865C0 26.2217 0.972349 28.5102 2.91168 30.0467C4.85101 31.5831 7.74657 32.3513 11.5876 32.3513C14.8915 32.3513 17.6151 31.5831 19.7478 30.0467C20.371 29.5954 20.9458 29.0689 21.483 28.4834V28.4995C21.483 28.4995 24.0294 25.3675 25.3295 28.4995V28.4887C25.5712 29.085 25.872 29.633 26.232 30.1326C27.3064 31.6153 29.4982 32.3513 32.8074 32.3513C34.3062 32.3513 35.5096 32.3137 36.4121 32.2385C36.6216 32.2224 36.8419 32.2009 37.0675 32.174C38.5287 32.0182 39.6515 30.8095 39.7159 29.3375L39.7536 28.5102C39.7965 27.4895 39.3936 26.4581 38.5609 25.8672V25.8618ZM24.6203 18.8028C23.8092 20.4682 22.3372 21.8058 20.1991 22.8319C18.061 23.8526 15.6597 24.363 13.0005 24.363C10.5293 24.363 9.29374 23.6753 9.29374 22.2947C9.29374 21.0108 10.6206 20.1083 13.2852 19.5872L15.8531 19.1574C17.8031 18.8727 19.4631 18.5772 20.8438 18.2656C22.219 17.9594 23.4815 17.5189 24.6203 16.9495V18.8028Z" fill="#225BFF" style="fill:#225BFF;fill:color(display-p3 0.1333 0.3569 1.0000);fill-opacity:1;"/>-<path d="M177.884 0H169.315C167.349 0 165.754 0.854163 165.754 1.91247V12.474C165.754 13.1187 164.776 13.6451 163.573 13.6451C162.369 13.6451 161.392 13.1187 161.392 12.474V1.91247C161.392 0.859535 159.796 0 157.83 0H149.261C147.295 0 145.7 0.854163 145.7 1.91247V9.41193C145.7 13.7794 151.142 17.4593 158.582 18.6197H158.571C159.452 18.7057 159.237 19.5491 159.237 19.5491L156.97 30.0515C156.675 31.2173 157.556 32.3508 158.759 32.3508H168.375C169.579 32.3508 170.46 31.2173 170.164 30.0515L167.897 19.5491C167.897 19.5491 167.682 18.7057 168.563 18.6251H168.558C175.998 17.4647 181.44 13.7794 181.44 9.41193V1.91247C181.44 0.859535 179.845 0 177.879 0H177.884Z" fill="#225BFF" style="fill:#225BFF;fill:color(display-p3 0.1333 0.3569 1.0000);fill-opacity:1;"/>-<path d="M144.797 31.6047L144.4 31.4166C144.324 31.379 144.265 31.3253 144.228 31.2555L137.958 20.0117C145.716 17.1913 144.163 10.1431 144.163 10.1431C142.826 -0.0800041 127.88 0.0596691 127.88 0.0596691H115.39C114.96 0.0596691 114.848 0.655977 115.245 0.811768L115.933 1.08574C116.083 1.14484 116.18 1.28988 116.18 1.45104V31.148C116.18 31.3199 116.072 31.465 115.911 31.5187L115.707 31.5832C115.283 31.7228 115.385 32.346 115.825 32.346H126.5C126.951 32.346 127.042 31.7014 126.607 31.5778C126.441 31.5294 126.328 31.3844 126.322 31.2125L126.048 20.0815C126.967 20.5757 128.869 20.8551 128.869 20.8551L133.908 30.4443C133.994 30.6054 133.956 30.8096 133.811 30.9278L132.941 31.653C132.662 31.8894 132.828 32.346 133.193 32.346H144.636C145.05 32.346 145.179 31.7819 144.802 31.6047H144.797ZM126.913 18.024V2.18165C126.913 2.18165 132.624 1.37584 133.757 10.7072C133.757 10.7072 135.036 20.9518 126.913 18.024Z" fill="#225BFF" style="fill:#225BFF;fill:color(display-p3 0.1333 0.3569 1.0000);fill-opacity:1;"/>-<path d="M79 0.262695V9.80568H86.0628C88.2323 9.80568 89.9956 11.6463 89.9956 13.922V32.2627H102.004V13.922C102.004 11.6513 103.763 9.80568 105.937 9.80568H113V0.262695H79Z" fill="#225BFF" style="fill:#225BFF;fill:color(display-p3 0.1333 0.3569 1.0000);fill-opacity:1;"/>-<path d="M211.409 15.351C214.496 15.351 217 12.8469 217 9.76046V3.72734C217 1.78812 215.428 0.209961 213.483 0.209961H207.449C204.363 0.209961 201.859 2.71406 201.859 5.8005V7.07584C201.638 7.97265 200.362 7.97265 200.141 7.07584V5.8005C200.141 2.71406 197.637 0.209961 194.55 0.209961H188.517C186.572 0.209961 185 1.7823 185 3.72734V9.76046C185 12.8469 187.504 15.351 190.591 15.351H191.866C192.763 15.5723 192.763 16.8476 191.866 17.0689H190.591C187.504 17.0689 185 19.573 185 22.6595V28.6926C185 30.6318 186.572 32.21 188.517 32.21H194.55C197.637 32.21 200.141 29.7059 200.141 26.6194V25.3441C200.362 24.4473 201.638 24.4473 201.859 25.3441V26.6194C201.859 29.7059 204.363 32.21 207.449 32.21H213.483C215.422 32.21 217 30.6376 217 28.6926V22.6595C217 19.573 214.496 17.0689 211.409 17.0689H208.142V15.351H211.409Z" fill="#225BFF" style="fill:#225BFF;fill:color(display-p3 0.1333 0.3569 1.0000);fill-opacity:1;"/>-</svg>diff --git a/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsx b/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsxindex 33b3244c49..48bd82567b 100644--- a/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsx+++ b/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsx@@ -10,6 +10,7 @@ import {XDSCard} from '@xds/core/Card';import {XDSHeading, XDSText} from '@xds/core/Text';import {XDSButton} from '@xds/core/Button';import {spacingVars} from '@xds/core/theme/tokens.stylex';+import {AstryxLogo} from '../../../components/logos';import {components} from '../../../generated/componentRegistry';// Count of public @xds/core components (excluding hooks and hidden entries),@@ -144,9 +145,10 @@ const styles = stylex.create({inlineWordmark: {display: 'inline-block',verticalAlign: 'baseline',- height: '.625em',+ height: '.75em',width: 'auto',marginInline: spacingVars['--spacing-4'],+ color: 'var(--color-brand)',},// CTA body copy + buttons cap. maxWidth: 560 is a reading// measure for the body paragraph, not a spacing-scale value.@@ -258,15 +260,9 @@ export function DiscoverShowcase() {<XDSVStack gap={6} align="center"><XDSHeading level={2} type="display-1" color="primary">Discover the full- {/* Inline wordmark <img> baked into the heading as- a visual word substitute. Raw <img> because no- XDS Image primitive exists, and we need the- image to inherit the heading's font-size- cadence (sized in `em` via inlineWordmark- xstyle) so it scales with the heading. */}- <img- src="/astryx-logo.svg"- alt="Astryx"+ <AstryxLogo+ role="img"+ aria-label="Astryx"{...stylex.props(styles.inlineWordmark)}/>design systemdiff --git a/apps/docsite/src/app/(site)/_landing/hero/HeroThemeReel.tsx b/apps/docsite/src/app/(site)/_landing/hero/HeroThemeReel.tsxindex 78e4806d60..04d4e5ba81 100644--- a/apps/docsite/src/app/(site)/_landing/hero/HeroThemeReel.tsx+++ b/apps/docsite/src/app/(site)/_landing/hero/HeroThemeReel.tsx@@ -30,7 +30,7 @@ import {XDSPagination} from '@xds/core/Pagination';import {useMediaQuery} from '@xds/core/hooks';import {useThemeMode} from '../../../providers';import {HERO_THEME_SLIDES, type HeroThemeSlide} from './heroThemeContent';-import {AstryxWordmark} from './AstryxWordmark';+import {AstryxLogo} from '../../../../components/logos';import {HeroFloatingCards} from './HeroFloatingCards';// How long each theme stays on screen before auto-advancing (ms).@@ -272,7 +272,11 @@ export function HeroReelWordmark() {styles.wordmarkWrap,dynamic.wordmarkColor('var(--color-text-accent)'),)}>- <AstryxWordmark className={stylex.props(styles.wordmark).className} />+ <AstryxLogo+ role="img"+ aria-label="Astryx"+ className={stylex.props(styles.wordmark).className}+ /></div>);}@@ -285,7 +289,11 @@ export function HeroReelWordmark() {styles.wordmarkWrap,dynamic.wordmarkColor(active.wordmarkColor),)}>- <AstryxWordmark className={stylex.props(styles.wordmark).className} />+ <AstryxLogo+ role="img"+ aria-label="Astryx"+ className={stylex.props(styles.wordmark).className}+ /></div></XDSTheme>);diff --git a/apps/docsite/src/app/(site)/community/page.tsx b/apps/docsite/src/app/(site)/community/page.tsxindex daaed0ca7d..04b4f08747 100644--- a/apps/docsite/src/app/(site)/community/page.tsx+++ b/apps/docsite/src/app/(site)/community/page.tsx@@ -37,6 +37,7 @@ import {XDSSection} from '@xds/core/Section';import {XDSHeading, XDSText} from '@xds/core/Text';import {XDSButton} from '@xds/core/Button';import {getKey} from '@xds/core/utils';+import {AstryxLogo} from '../../../components/logos';import {GITHUB_REPO} from '../../../constants';const WIKI_BASE = `${GITHUB_REPO}/wiki`;@@ -254,6 +255,9 @@ const styles = stylex.create({display: 'block',position: 'relative',zIndex: 1,+ // AstryxLogo paints with currentColor, so the brand mark renders+ // in the brand blue.+ color: 'var(--color-brand)',},// The "See contributors" anchor link below the wordmark.// Only positioning lives here (zIndex:1 keeps the link above@@ -593,9 +597,9 @@ function WallCard({contributors}: {contributors: ReadonlyArray<Contributor>}) {))}</div><div {...stylex.props(styles.wallCardCenter)}>- <img- src="/astryx-logo.svg"- alt="Astryx"+ <AstryxLogo+ role="img"+ aria-label="Astryx"{...stylex.props(styles.wallWordmark)}/><XDSText type="body" color="primary" xstyle={styles.wallDescription}>diff --git a/apps/docsite/src/app/(site)/layout.module.css b/apps/docsite/src/app/(site)/layout.module.cssindex ff97a21a9b..1702fb3c8e 100644--- a/apps/docsite/src/app/(site)/layout.module.css+++ b/apps/docsite/src/app/(site)/layout.module.css@@ -1,15 +1,5 @@/* Copyright (c) Meta Platforms, Inc. and affiliates. */-/* Make the marketing-site (site)-group layout a flex column so the- <SiteFooter /> sticks to the bottom of the viewport when page- content is shorter than one screen. Without this, short pages- like /themes leave a visible gap between the footer and the- bottom of the viewport.-- The min-height subtracts the AppShell header height (set as a CSS- var by the AppShell once it measures the rendered header,- falling back to 64px on first paint per the convention used in- globals.css for #xds-app-shell-main scroll-padding-top). */.shell {display: flex;flex-direction: column;@@ -17,14 +7,13 @@width: 100%;}-/* Stretch the main content area so the footer pins to the bottom on- short pages. Critically, this is NOT a flex container — making it- a flex container interacts poorly with XDSSection's outer wrapper- (which uses negative inline margins to break out of container- padding) and ends up squishing the section to its min-content- width. The simple `flex: 1` on a non-flex block is enough to push- <SiteFooter /> to the bottom of .shell. */.main {flex: 1 0 auto;width: 100%;}++.footer {+ position: relative;+ z-index: 1;+ background-color: var(--color-background-surface);+}diff --git a/apps/docsite/src/app/(site)/layout.tsx b/apps/docsite/src/app/(site)/layout.tsxindex 7c0846a9bd..19f78f0712 100644--- a/apps/docsite/src/app/(site)/layout.tsx+++ b/apps/docsite/src/app/(site)/layout.tsx@@ -23,7 +23,9 @@ export default async function MarketingLayout({topNav={<SharedTopNav />}><div className={styles.shell}><div className={styles.main}>{children}</div>- <SiteFooter />+ <div className={styles.footer}>+ <SiteFooter />+ </div></div></XDSAppShell>);diff --git a/apps/docsite/src/app/playground/PlaygroundClient.tsx b/apps/docsite/src/app/playground/PlaygroundClient.tsxindex 03a55316d1..b909e18fe2 100644--- a/apps/docsite/src/app/playground/PlaygroundClient.tsx+++ b/apps/docsite/src/app/playground/PlaygroundClient.tsx@@ -80,7 +80,7 @@ import {import {templates} from '../../generated/templateRegistry';import {PreviewStage, type Viewport} from './PreviewStage';import {ConfirmDialog} from './ConfirmDialog';-import {BRAND_ICON} from '../../components/XDSWordmark';+import {AstryxIcon} from '../../components/logos';import {annotateInstanceIds} from './propertyEditor/componentInstances';import {trackCopy} from '../../lib/analytics';import {ThemeEditor} from './themeEditor/ThemeEditor';@@ -669,7 +669,20 @@ export function PlaygroundClient({defaultIsMobile}: PlaygroundClientProps) {const mobileTopNav = isMobile ? (<XDSTopNavlabel="Playground navigation"- heading={<XDSTopNavHeading logo={BRAND_ICON} headingHref="/" />}+ heading={+ <XDSTopNavHeading+ logo={+ <AstryxIcon+ width={24}+ height={24}+ role="img"+ aria-label="Astryx"+ style={{display: 'block', color: 'var(--color-brand)'}}+ />+ }+ headingHref="/"+ />+ }centerContent={<XDSTabListvalue={mobileTab}@@ -710,7 +723,15 @@ export function PlaygroundClient({defaultIsMobile}: PlaygroundClientProps) {<XDSSideNavheader={<XDSSideNavHeading- icon={BRAND_ICON}+ icon={+ <AstryxIcon+ width={24}+ height={24}+ role="img"+ aria-label="Astryx"+ style={{display: 'block', color: 'var(--color-brand)'}}+ />+ }heading="Playground"headingHref="/"xstyle={s.sideNavHeading}diff --git a/apps/docsite/src/components/SharedTopNav.tsx b/apps/docsite/src/components/SharedTopNav.tsxindex 9d5ab39d24..9a8cf8c538 100644--- a/apps/docsite/src/components/SharedTopNav.tsx+++ b/apps/docsite/src/components/SharedTopNav.tsx@@ -9,7 +9,7 @@ import {XDSButton} from '@xds/core/Button';import {XDSHStack} from '@xds/core/Layout';import {Search, HeartHandshake, Sun, Moon} from 'lucide-react';import {GITHUB_REPO} from '../constants';-import {BRAND_ICON} from './XDSWordmark';+import {AstryxIcon} from './logos';import {SearchPalette} from './SearchPalette';import {components} from '../generated/componentRegistry';import {packages} from '../generated/packageRegistry';@@ -68,7 +68,20 @@ export function SharedTopNav() {<><XDSTopNavlabel="Astryx navigation"- heading={<XDSTopNavHeading logo={BRAND_ICON} headingHref="/" />}+ heading={+ <XDSTopNavHeading+ logo={+ <AstryxIcon+ width={24}+ height={24}+ role="img"+ aria-label="Astryx"+ style={{display: 'block', color: 'var(--color-brand)'}}+ />+ }+ headingHref="/"+ />+ }centerContent={<><XDSTopNavItemdiff --git a/apps/docsite/src/components/SiteFooter.tsx b/apps/docsite/src/components/SiteFooter.tsxindex 1ea8cad040..6dce6a8d69 100644--- a/apps/docsite/src/components/SiteFooter.tsx+++ b/apps/docsite/src/components/SiteFooter.tsx@@ -1,65 +1,156 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-import {Fragment} from 'react';import * as stylex from '@stylexjs/stylex';+import {spacingVars} from '@xds/core/theme/tokens.stylex';import {XDSText} from '@xds/core/Text';import {XDSLink} from '@xds/core/Link';-import {XDSHStack} from '@xds/core/Stack';-import {XDSDivider} from '@xds/core/Divider';-import {spacingVars} from '@xds/core/theme/tokens.stylex';+import {XDSButton} from '@xds/core/Button';+import {XDSHStack, XDSVStack} from '@xds/core/Layout';+import {XDSGrid, XDSGridSpan} from '@xds/core/Grid';+import {XDSCard} from '@xds/core/Card';+import {XDSSection} from '@xds/core/Section';+import {GITHUB_REPO} from '../constants';+import {+ AstryxLogo,+ GitHubLogo,+ ThreadsLogo,+ XLogo,+ MetaOpenSourceLogo,+} from './logos';const styles = stylex.create({- footer: {- paddingBlock: spacingVars['--spacing-6'],- paddingInline: spacingVars['--spacing-4'],- },-});--const links = [- {- label: 'Blog',- href: '/blog',+ footerLinks: {+ width: '100%',+ paddingInline: spacingVars['--spacing-2'],},- {- label: 'Terms of use',- href: 'https://opensource.fb.com/legal/terms',+ logo: {+ height: 18,+ width: 'auto',+ display: 'block',+ color: 'var(--color-icon-secondary)',},- {- label: 'Privacy policy',- href: 'https://opensource.fb.com/legal/privacy',+ socialIcon: {+ width: 16,+ height: 16,+ display: 'block',},- {- label: 'GitHub pages',- href: 'https://studious-broccoli-o7e61n3.pages.github.io/',+ metaOpenSourceLogo: {+ height: 14,+ width: 'auto',+ display: 'block',+ color: 'var(--color-icon-secondary)',},+});++const FOOTER_LINKS: ReadonlyArray<{+ label: string;+ href: string;+ isExternal?: boolean;+}> = [+ {label: 'Docs', href: '/docs'},+ {label: 'Changelog', href: '/changelog'},+ {label: 'Community', href: '/community'},+ {label: 'Blog', href: '/blog'},+ {label: 'Components', href: '/components'},+ {label: 'Templates', href: '/templates'},+ {label: 'Themes', href: '/themes'},+ {label: 'Playground', href: '/playground'},+];++const SOCIAL_LINKS: ReadonlyArray<{+ label: string;+ href: string;+ Icon: (props: React.SVGProps<SVGSVGElement>) => React.ReactElement;+}> = [+ {label: 'GitHub', href: GITHUB_REPO, Icon: GitHubLogo},+ {label: 'Threads', href: 'https://www.threads.net', Icon: ThreadsLogo},+ {label: 'X', href: 'https://x.com', Icon: XLogo},+];++const LEGAL_LINKS: ReadonlyArray<{label: string; href: string}> = [+ {label: 'Terms of use', href: 'https://opensource.fb.com/legal/terms'},+ {label: 'Privacy policy', href: 'https://opensource.fb.com/legal/privacy'},];export function SiteFooter() {const year = new Date().getFullYear();return (- <footer {...stylex.props(styles.footer)}>- <XDSHStack gap={3} wrap="wrap" justify="center" align="center">- <XDSText type="supporting" color="primary">- Copyright ©{year} Meta Platforms, Inc.- </XDSText>- {links.map(link => (- <Fragment key={link.href}>- <XDSDivider- orientation="vertical"- variant="strong"- style={{height: '0.75em'}}- />+ <XDSSection role="contentinfo" padding={4}>+ <XDSVStack gap={4}>+ <XDSGrid columns={5} xstyle={styles.footerLinks} align="center">+ <AstryxLogo+ role="img"+ aria-label="Astryx"+ {...stylex.props(styles.logo)}+ />+ <XDSGridSpan columns={3}>+ <XDSHStack gap={4} align="center" hAlign="center">+ {FOOTER_LINKS.map(item => (+ <XDSLink+ key={item.label}+ href={item.href}+ type="supporting"+ color="secondary"+ isStandalone+ target={item.isExternal ? '_blank' : undefined}>+ {item.label}+ </XDSLink>+ ))}+ </XDSHStack>+ </XDSGridSpan>+ <XDSHStack gap={2} align="center" justify="end">+ {SOCIAL_LINKS.map(social => (+ <XDSButton+ key={social.label}+ label={social.label}+ tooltip={social.label}+ variant="secondary"+ isIconOnly+ icon={+ <social.Icon+ aria-hidden="true"+ {...stylex.props(styles.socialIcon)}+ />+ }+ href={social.href}+ />+ ))}+ </XDSHStack>+ </XDSGrid>++ <XDSCard variant="muted">+ <XDSGrid columns={4} align="center"><XDSLink- type="supporting"- color="primary"- label={link.label}- href={link.href}>- {link.label}+ href="https://opensource.fb.com"+ label="Meta Open Source"+ target="_blank">+ <MetaOpenSourceLogo+ aria-hidden="true"+ {...stylex.props(styles.metaOpenSourceLogo)}+ /></XDSLink>- </Fragment>- ))}- </XDSHStack>- </footer>+ <XDSGridSpan columns={2}>+ <XDSHStack gap={4} align="center" hAlign="center" width="100%">+ {LEGAL_LINKS.map(link => (+ <XDSLink+ key={link.label}+ href={link.href}+ type="supporting"+ color="secondary"+ isStandalone+ target="_blank">+ {link.label}+ </XDSLink>+ ))}+ </XDSHStack>+ </XDSGridSpan>+ <XDSText type="supporting" color="secondary" justify="end">+ © {year} Meta Platforms, Inc.+ </XDSText>+ </XDSGrid>+ </XDSCard>+ </XDSVStack>+ </XDSSection>);}diff --git a/apps/docsite/src/components/XDSWordmark.tsx b/apps/docsite/src/components/XDSWordmark.tsxdeleted file mode 100644index 88344957ef..0000000000--- a/apps/docsite/src/components/XDSWordmark.tsx+++ /dev/null@@ -1,13 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--// Brand mark used in shell chrome (top nav). Renders the icon-only logo-// from /public/brand-icon.svg so the wordmark is replaced by the icon.-export const BRAND_ICON = (- <img- src="/brand-icon.svg"- alt="Astryx"- width={24}- height={24}- style={{display: 'block'}}- />-);diff --git a/apps/docsite/src/components/logos.tsx b/apps/docsite/src/components/logos.tsxnew file mode 100644index 0000000000..650c3717c3--- /dev/null+++ b/apps/docsite/src/components/logos.tsx@@ -0,0 +1,146 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file logos.tsx+ * @input optional SVG props (className/style/width/height/aria) spread onto the root <svg>+ * @output Brand + third-party logos as inline SVGs that paint with `currentColor`+ * @position Shared logo marks — usable anywhere (footer, nav, community, etc.).+ *+ * A shared home for logo marks: our own Astryx wordmark and standalone+ * Astryx icon mark, third-party site logos (GitHub, Threads, X), and the+ * Meta Open Source lockup. Each is an+ * inline SVG with its fill set to `currentColor`, so it inherits whatever+ * text/icon color its container sets. They're inlined (rather than referenced+ * via <img>) specifically because an <img> cannot inherit `color` — same+ * reasoning as the existing AstryxWordmark component. This file is the source+ * of truth for the artwork.+ */++type SvgProps = React.SVGProps<SVGSVGElement>;++export function AstryxLogo(props: SvgProps) {+ return (+ <svg+ viewBox="0 0 189 36"+ fill="currentColor"+ xmlns="http://www.w3.org/2000/svg"+ {...props}>+ <path d="M43.6282 1.4184C51.7055 -2.75329 60.9893 2.80474 62.1054 11.2123C62.2022 12.6371 61.6729 13.5291 61.0601 14.0746C60.2794 14.7742 59.1958 14.9859 58.1636 14.787C57.7571 14.71 57.3763 14.5945 57.0343 14.4597C56.157 14.1131 55.4279 13.4843 54.8409 12.7462C54.0603 11.7707 52.5313 10.3074 50.7057 10.9876C50.7057 10.9876 47.3574 12.0851 49.3054 14.71C49.6667 15.294 50.512 15.878 52.2602 16.2631L52.254 16.2568C52.2754 16.261 61.5969 18.0619 62.6281 25.0237C62.6281 25.0237 64.4794 35.2799 50.9699 35.9795C50.9269 35.9833 38.9989 37.0209 36.951 23.8301C36.9445 23.7916 36.9443 23.7403 36.9443 23.689C36.8475 21.5518 38.7444 19.8897 40.8798 20.0822C41.7443 20.1592 42.712 20.4607 43.4281 21.3013C43.4797 21.3591 43.5313 21.4171 43.5829 21.4813C43.5958 21.4941 43.6152 21.5198 43.6152 21.5198C44.6991 22.7521 46.8282 24.0998 50.712 23.1885C51.6087 22.9831 52.3251 22.1936 52.2993 21.2758C52.2799 20.3645 51.6088 19.2669 49.0412 18.5353C49.0412 18.5353 35.3703 15.3648 39.9444 5.26926C40.6734 3.66478 41.9185 2.32975 43.4797 1.49541C43.5249 1.46974 43.5766 1.44407 43.6282 1.4184Z" />+ <path d="M135.73 0.857994C136.307 0.858067 136.861 1.11734 137.265 1.52847C137.669 1.93972 137.889 2.49683 137.878 3.07242L137.871 3.41645L137.871 3.41603C137.835 7.28081 137.828 5.16635 137.846 9.03558C137.846 9.03981 137.846 9.04512 137.846 9.04939C137.843 11.2136 137.798 11.4561 137.87 13.487C137.912 14.167 137.99 14.5852 138.106 14.9079C138.213 15.2069 138.387 15.517 138.749 15.9132L138.75 15.9141C139.18 16.5008 141.458 16.681 141.907 14.5543C142.005 14.0906 142.04 13.4396 142.035 12.6014C142.033 12.1951 142.021 11.7792 142.01 11.3454C141.999 10.9215 141.988 10.4748 141.987 10.0484L141.98 3.00629C141.98 2.42821 142.213 1.87383 142.628 1.4703C143.043 1.06695 143.605 0.842847 144.184 0.857994C144.728 0.872201 149.147 0.860746 149.806 0.857994H149.969C150.347 0.885166 150.713 1.01752 151.028 1.23216L151.195 1.34641L151.289 1.41422C151.749 1.76534 152.048 2.28875 152.116 2.86525C152.122 2.91291 152.177 3.3137 152.174 3.63366C152.127 8.12402 152.176 7.42632 152.172 12.3951C152.171 13.821 152.274 14.5778 151.896 16.3535C151.555 18.0055 150.756 19.5313 149.588 20.7518L149.587 20.7514C148.673 21.7093 145.036 22.4062 143.89 22.8616L143.898 32.9962C143.898 33.5707 143.667 34.1215 143.257 34.5247C142.847 34.9279 142.291 35.1499 141.716 35.1407C141.123 35.1313 138.779 35.1424 138.113 35.1441L138.006 35.1416C137.757 35.1298 137.511 35.0749 137.28 34.9788L137.103 34.9047C136.439 34.6279 135.957 34.0373 135.822 33.3319C135.816 33.3051 135.818 33.3141 135.808 33.2607C135.801 33.2261 135.791 33.1759 135.782 33.1201C135.771 33.0558 135.749 32.9196 135.74 32.751L135.737 32.5727C135.785 29.5602 135.74 25.6243 135.739 22.7415C134.686 22.2771 131.142 21.614 130.32 20.7757C126.861 17.289 127.653 13.2264 127.654 10.2334V4.11204C127.648 3.76882 127.641 3.42482 127.632 3.08163C127.618 2.50472 127.838 1.94579 128.242 1.53266C128.646 1.11968 129.201 0.858151 129.779 0.857994H135.73Z" />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M14.4321 0.857157C15.6757 0.85721 16.7131 1.85388 17.0719 3.23188C17.0767 3.23761 17.0769 3.24882 17.0769 3.25448C17.4063 4.50146 18.3007 5.64598 19.4214 5.73718C20.4193 5.81674 21.8203 4.04586 22.9115 2.86148C23.4571 2.30913 24.4354 1.47226 25.5856 1.16477C27.4388 0.686486 29.4296 1.31257 30.9583 2.74178C31.091 2.867 31.2186 2.99257 31.3463 3.12348C33.9614 5.83396 34.3452 11.7959 34.3452 17.4162V24.6881C34.3452 32.1428 34.8932 35.1428 30.0195 35.1428C26.9916 35.1428 24.9861 34.3627 24.003 32.7911C23.6736 32.2616 23.3982 31.6805 23.177 31.0484V31.0601C21.9901 27.7478 19.6679 31.0454 19.6576 31.0601V31.043C19.1661 31.6636 18.64 32.2216 18.0699 32.6999C16.1184 34.3285 13.6258 35.1428 10.6027 35.1428C7.08827 35.1428 4.43902 34.3284 2.66452 32.6999C0.890029 31.0713 2.68248e-05 28.6457 0 25.4284C3.5838e-06 22.7806 0.757068 20.7018 2.27105 19.1928C3.78014 17.6896 6.12003 16.6475 9.28556 16.0781L11.0256 15.7705C13.1343 15.4858 15.7742 15.3436 18.9399 15.3436C20.2423 15.3436 21.1564 15.1555 21.6824 14.7912C22.2083 14.4211 22.4739 13.9543 22.474 13.3849C22.4739 12.8952 22.2084 12.4792 21.6824 12.1318C21.1516 11.7903 20.4144 11.6137 19.4659 11.6137H5.73007C4.226 11.6136 1.49839 10.4075 0.424512 6.33609L0 4.01201C8.76878e-06 2.26958 1.21913 0.857214 2.72325 0.857157H14.4321ZM22.5285 18.817C21.4864 19.4205 20.3312 19.8873 19.0728 20.2119C17.8095 20.5422 16.2907 20.8556 14.5064 21.1574L12.1565 21.6127C9.71844 22.1651 8.50451 23.1221 8.5045 24.483C8.50456 25.9463 9.63498 26.6752 11.896 26.6752C14.3292 26.6752 16.5266 26.1341 18.483 25.0522C20.4394 23.9646 21.7862 22.5467 22.5285 20.7815V18.817Z"+ />+ <path d="M164.258 0.857157C167.295 0.857248 169.756 3.31321 169.756 6.34278V10.4573C169.757 11.404 170.526 12.1716 171.475 12.1716H172.162C173.111 12.1716 173.88 11.404 173.88 10.4573V6.34278C173.88 3.31321 176.342 0.857248 179.378 0.857157H186.938C188.077 0.857201 189 1.77816 189 2.91421V10.4573C189 13.4869 186.538 15.9429 183.502 15.9429H179.378C178.429 15.943 177.66 16.7105 177.66 17.6572V18.3428C177.66 19.2895 178.429 20.057 179.378 20.0571H183.502C186.538 20.0571 189 22.5131 189 25.5427V33.0858C189 34.2219 188.077 35.1428 186.938 35.1428H179.378C176.342 35.1428 173.88 32.6868 173.88 29.6572V25.5427C173.88 24.596 173.111 23.8284 172.162 23.8284H171.475C170.526 23.8284 169.757 24.596 169.756 25.5427V29.6572C169.756 32.6868 167.295 35.1428 164.258 35.1428H156.698C155.559 35.1428 154.636 34.2219 154.636 33.0858V25.5427C154.636 22.5131 157.098 20.0571 160.134 20.0571H164.258C165.207 20.057 165.977 19.2895 165.977 18.3428V17.6572C165.977 16.7105 165.207 15.943 164.258 15.9429H160.134C157.098 15.9429 154.636 13.4869 154.636 10.4573V2.91421C154.636 1.77816 155.559 0.857202 156.698 0.857157H164.258Z" />+ <path d="M86.0807 0.735366C86.66 0.735139 87.2157 0.968514 87.6201 1.38241C88.0244 1.79644 88.249 2.35646 88.2338 2.9343C88.2197 3.47074 88.2309 6.11307 88.2338 6.80777V6.99234C88.2066 7.36971 88.074 7.73479 87.8588 8.0487L87.7443 8.21569L87.6764 8.30944C87.3244 8.76768 86.7999 9.06647 86.222 9.13435C86.1744 9.13994 85.7726 9.19552 85.4519 9.19253C83.5196 9.17213 81.7159 9.16989 79.8925 9.17328L79.9001 32.8937C79.9006 33.4682 79.6696 34.0189 79.2595 34.4221C78.8493 34.8254 78.2937 35.0474 77.7179 35.0382C77.1253 35.0287 74.7816 35.0399 74.1155 35.0416L74.0085 35.039C73.7591 35.0273 73.5133 34.9724 73.2824 34.8762L73.1054 34.8022C72.441 34.5253 71.9598 33.9348 71.8239 33.2293C71.8187 33.2026 71.8205 33.2116 71.81 33.1582L71.8092 33.1544C71.8024 33.12 71.793 33.0714 71.784 33.0176C71.7732 32.9532 71.7512 32.817 71.7425 32.6484L71.7391 32.4701C71.784 29.6381 71.7475 13.4946 71.7425 9.17286C69.9793 9.16996 68.2298 9.17279 66.3602 9.19253C66.0392 9.19549 65.6372 9.13988 65.59 9.13435C65.0122 9.06641 64.4875 8.76763 64.1357 8.30944L64.0677 8.21569L63.9532 8.0487C63.7381 7.73481 63.6054 7.36966 63.5782 6.99234V6.82995L63.5786 6.80777C63.5815 6.11308 63.5923 3.47074 63.5782 2.9343C63.563 2.35649 63.7876 1.79643 64.1919 1.38241C64.5963 0.968507 65.1521 0.735206 65.7314 0.735366L75.9058 0.742062L86.0807 0.735366Z" />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M112.157 0.735366C116.017 0.739057 119.31 0.638749 122.219 3.89859C124.035 5.91505 125.039 8.64639 125.002 11.4802C124.95 14.3185 123.87 17.0174 122.003 18.9848C120.166 20.9268 118.155 21.6651 115.917 21.904C117.395 23.5372 119.569 25.9306 120.355 26.8267C121.303 27.9092 122.246 29.0055 122.962 29.9041C123.318 30.3501 123.644 30.7793 123.893 31.1501C124.016 31.3335 124.144 31.537 124.251 31.7432C124.325 31.8876 124.521 32.2721 124.568 32.7514C124.625 33.3303 124.435 33.9064 124.045 34.3376C123.655 34.7688 123.101 35.0152 122.52 35.0156L113.973 35.0211C113.38 35.0214 112.816 34.7661 112.425 34.3204C110.974 32.6676 109.209 30.4601 107.537 28.4598C105.892 26.4918 103.789 23.6646 102.509 21.9413C102.133 21.9379 101.867 21.9345 101.75 21.9316C100.82 21.9088 99.7534 21.9868 98.8127 22.0312C98.8147 27.1206 98.8157 31.6778 98.8072 32.9134C98.7993 34.0578 97.8837 34.9831 96.753 34.9892L92.7105 35.0227C92.1609 35.0257 91.6324 34.8069 91.2428 34.4146C90.853 34.0222 90.634 33.4882 90.6341 32.9318L90.6379 2.82758L90.64 2.72295C90.6658 2.20275 90.8831 1.70942 91.2507 1.34139C91.6429 0.948817 92.1741 0.731412 92.7256 0.737459C93.6365 0.747469 94.492 0.754701 95.31 0.762152L95.3058 0.735366H112.157ZM114.165 9.34738C112.229 9.27808 111.935 9.31737 110.002 9.32311C109.521 9.31043 107.113 9.31058 109.759 9.32353H109.772C109.851 9.32341 109.928 9.32333 110.002 9.32311C110.216 9.32878 110.044 9.33695 108.863 9.3478H98.8114C98.8106 10.5539 98.8104 11.9489 98.8106 13.4473L110.761 13.4552C111.183 13.4554 111.626 13.4667 112.045 13.4778L112.098 13.4791C112.509 13.49 112.903 13.5006 113.288 13.5029C114.118 13.508 114.763 13.4723 115.222 13.3749C117.327 12.927 117.148 10.6538 116.567 10.2255L116.567 10.2246C116.174 9.86305 115.868 9.6893 115.572 9.58218C115.252 9.46668 114.838 9.38922 114.165 9.34738Z"+ />+ </svg>+ );+}++export function AstryxIcon(props: SvgProps) {+ return (+ <svg+ viewBox="0 0 40 40"+ fill="currentColor"+ xmlns="http://www.w3.org/2000/svg"+ {...props}>+ <path d="M11.2002 0C14.7347 0.000105757 17.6 2.8654 17.6001 6.3999V11.2002C17.6002 12.3047 18.4956 13.2002 19.6001 13.2002H20.3999C21.5044 13.2002 22.3998 12.3047 22.3999 11.2002V6.3999C22.4 2.8654 25.2653 0.000106275 28.7998 0H37.6001C38.9255 5.15369e-05 39.9999 1.07451 40 2.3999V11.2002C39.9999 14.7347 37.1346 17.6 33.6001 17.6001H28.7998C27.6953 17.6002 26.7998 18.4956 26.7998 19.6001V20.3999C26.7998 21.5044 27.6953 22.3998 28.7998 22.3999H33.6001C37.1346 22.4 39.9999 25.2653 40 28.7998V37.6001C40 38.9255 38.9255 39.9999 37.6001 40H28.7998C25.2653 39.9999 22.3999 37.1346 22.3999 33.6001V28.7998C22.3998 27.6953 21.5044 26.7998 20.3999 26.7998H19.6001C18.4956 26.7998 17.6002 27.6953 17.6001 28.7998V33.6001C17.6001 37.1346 14.7347 39.9999 11.2002 40H2.39991C1.07449 39.9999 3.97232e-05 38.9255 0 37.6001V28.7998C0.000118127 25.2653 2.86539 22.4 6.3999 22.3999H11.2002C12.3047 22.3998 13.2002 21.5044 13.2002 20.3999V19.6001C13.2002 18.4956 12.3047 17.6002 11.2002 17.6001H6.3999C2.86538 17.6 9.39063e-05 14.7347 0 11.2002V2.3999C6.46793e-05 1.07451 1.07451 5.28641e-05 2.39991 0H11.2002Z" />+ </svg>+ );+}++export function GitHubLogo(props: SvgProps) {+ return (+ <svg+ viewBox="0 0 16 16"+ fill="currentColor"+ xmlns="http://www.w3.org/2000/svg"+ {...props}>+ <path d="M6.76591 10.964C4.7033 10.7216 3.25009 9.28547 3.25009 7.42514C3.25009 6.66903 3.53113 5.85232 4 5.30829C3.79687 4.80937 3.82817 3.75028 4.06261 3.31196C4.6873 3.23655 5.53113 3.55435 6.0313 3.99199C6.6247 3.81087 7.25009 3.71998 8.016 3.71998C8.78122 3.71998 9.40661 3.81087 9.9687 3.97718C10.4529 3.55367 11.3127 3.23655 11.9374 3.31196C12.1565 3.71998 12.1878 4.77908 11.984 5.2928C12.4849 5.8678 12.7499 6.6394 12.7499 7.42514C12.7499 9.28547 11.2967 10.692 9.20348 10.9492C9.73426 11.2818 10.0939 12.0076 10.0939 12.8391V14.412C10.0939 14.8658 10.4842 15.123 10.953 14.9412C13.7816 13.8976 16 11.1606 16 7.77324C16 3.49308 12.4063 0 7.9847 0C3.56174 0 0 3.49308 0 7.77324C0 11.1303 2.20313 13.9137 5.17217 14.9567C5.59374 15.1082 6 14.8355 6 14.4275V13.2169C5.76227 13.313 5.50772 13.3642 5.25009 13.3677C4.21843 13.3677 3.60904 12.8237 3.17217 11.8103C3.00035 11.4016 2.81252 11.1599 2.45287 11.1148C2.26504 11.0993 2.20313 11.0239 2.20313 10.933C2.20313 10.7512 2.51617 10.6159 2.82783 10.6159C3.28139 10.6159 3.67165 10.8879 4.07791 11.4474C4.39096 11.8857 4.71861 12.0824 5.10957 12.0824C5.49983 12.0824 5.74956 11.9463 6.10922 11.5982C6.37496 11.3417 6.57809 11.1155 6.76591 10.964Z" />+ </svg>+ );+}++export function ThreadsLogo(props: SvgProps) {+ return (+ <svg+ viewBox="0 0 16 16"+ fill="currentColor"+ xmlns="http://www.w3.org/2000/svg"+ {...props}>+ <path d="M11.894 7.41569C11.8239 7.38266 11.7527 7.35087 11.6806 7.32043C11.555 5.04485 10.2904 3.74208 8.16696 3.72875C8.15734 3.72869 8.14777 3.72869 8.13815 3.72869C6.86806 3.72869 5.81175 4.26174 5.16159 5.23173L6.32941 6.0194C6.8151 5.29486 7.57735 5.1404 8.13871 5.1404C8.14519 5.1404 8.1517 5.1404 8.15812 5.14046C8.85729 5.14484 9.38488 5.34472 9.72635 5.7345C9.97485 6.01828 10.1411 6.41042 10.2234 6.90532C9.60346 6.80173 8.93306 6.76988 8.21638 6.81028C6.19751 6.92462 4.89962 8.08232 4.98679 9.691C5.03103 10.507 5.44447 11.209 6.15092 11.6676C6.74822 12.0553 7.5175 12.2448 8.317 12.2019C9.37284 12.145 10.2011 11.7489 10.779 11.0247C11.2179 10.4747 11.4954 9.76192 11.618 8.86383C12.1212 9.16242 12.4941 9.55533 12.7 10.0277C13.0502 10.8306 13.0707 12.15 11.9757 13.2257C11.0164 14.168 9.86323 14.5757 8.12048 14.5883C6.1873 14.5742 4.72526 13.9646 3.77468 12.7764C2.88455 11.6638 2.42452 10.0568 2.40736 8C2.42452 5.94315 2.88455 4.33613 3.77468 3.22356C4.72526 2.03541 6.18727 1.42583 8.12045 1.41171C10.0677 1.42594 11.5552 2.03845 12.5421 3.23233C13.0261 3.8178 13.3909 4.55407 13.6315 5.41253L15 5.05352C14.7084 3.99685 14.2497 3.08631 13.6254 2.33117C12.3601 0.800557 10.5096 0.0162623 8.12522 0H8.11568C5.73619 0.0162058 3.90639 0.803483 2.67714 2.33994C1.58327 3.7072 1.01902 5.60964 1.00006 7.99438L1 8L1.00006 8.00562C1.01902 10.3903 1.58327 12.2928 2.67714 13.6601C3.90639 15.1965 5.73619 15.9838 8.11568 16H8.12522C10.2407 15.9856 11.7319 15.441 12.9603 14.2343C14.5675 12.6555 14.5191 10.6766 13.9894 9.46175C13.6094 8.59058 12.8848 7.88302 11.894 7.41569ZM8.24142 10.7923C7.35659 10.8413 6.43734 10.4508 6.39201 9.61433C6.35842 8.99417 6.84089 8.30217 8.29572 8.21973C8.46233 8.21028 8.62582 8.20567 8.78643 8.20567C9.31487 8.20567 9.80924 8.25614 10.2587 8.35275C10.091 10.4113 9.10773 10.7455 8.24142 10.7923Z" />+ </svg>+ );+}++export function XLogo(props: SvgProps) {+ return (+ <svg+ viewBox="0 0 16 16"+ fill="currentColor"+ xmlns="http://www.w3.org/2000/svg"+ {...props}>+ <path d="M5.06615 2.7798H3.44011L10.9248 13.2557H12.5508L5.06615 2.7798ZM2 2H5.57328L8.67142 6.41188L12.5503 2H13.6089L9.1415 7.08129L14 14H10.4267L7.15493 9.34084L3.05866 14H2L6.68485 8.67142L2 2Z" />+ </svg>+ );+}++export function MetaOpenSourceLogo(props: SvgProps) {+ return (+ <svg+ viewBox="0 0 126 13"+ fill="currentColor"+ xmlns="http://www.w3.org/2000/svg"+ {...props}>+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M63.9991 3.43918C64.5903 3.43918 65.115 3.59018 65.5733 3.89219C66.0317 4.19418 66.3904 4.60862 66.6496 5.13548C66.9087 5.66235 67.0383 6.2685 67.0383 6.95391C67.0383 7.63497 66.9055 8.24001 66.64 8.76905C66.3744 9.29812 66.007 9.71254 65.538 10.0123C65.0691 10.3121 64.5304 10.462 63.9221 10.4621C63.4724 10.4621 63.0675 10.3764 62.7077 10.2051C62.3527 10.0378 62.0439 9.78634 61.8081 9.47263V13.0001H60.4074V3.5999H61.7888V4.53152C62.0248 4.18744 62.3443 3.90887 62.7174 3.7219C63.092 3.53352 63.5193 3.43928 63.9991 3.43918ZM63.6973 4.71149C63.2645 4.71149 62.879 4.82285 62.5406 5.04556C62.2081 5.26107 61.9518 5.57578 61.8081 5.94507V7.9562C61.958 8.33748 62.1947 8.63841 62.5181 8.85898C62.8415 9.07965 63.2152 9.18997 63.6394 9.1899C64.2389 9.1899 64.7166 8.98857 65.0722 8.58593C65.4277 8.18329 65.6055 7.63928 65.6055 6.95391C65.6055 6.26422 65.4341 5.71806 65.0915 5.31546C64.7487 4.91282 64.2839 4.71149 63.6973 4.71149Z"+ />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M54.586 1.14532C55.2457 1.14532 55.8518 1.25996 56.4044 1.48919C56.9456 1.71064 57.4355 2.04085 57.8438 2.45939C58.2548 2.88346 58.5761 3.38611 58.7883 3.93723C59.0109 4.5048 59.1222 5.12696 59.1224 5.80371C59.1224 6.48056 59.011 7.10277 58.7883 7.67031C58.5761 8.22143 58.2548 8.72407 57.8438 9.14815C57.4355 9.56672 56.9456 9.89696 56.4044 10.1184C55.8519 10.3475 55.2457 10.462 54.586 10.4621C53.9264 10.4621 53.3203 10.3475 52.7677 10.1184C52.2265 9.89698 51.7366 9.56674 51.3284 9.14815C50.9173 8.72416 50.596 8.22149 50.3839 7.67031C50.1611 7.10274 50.0497 6.48053 50.0498 5.80371C50.0498 5.12696 50.1612 4.5048 50.3839 3.93723C50.596 3.38605 50.9173 2.88338 51.3284 2.45939C51.7367 2.04084 52.2265 1.71062 52.7677 1.48919C53.3202 1.26 53.9263 1.14536 54.586 1.14532ZM54.586 2.51399C54.0035 2.51399 53.4862 2.65322 53.0343 2.93168C52.5823 3.2101 52.2279 3.59669 51.9709 4.09144C51.7139 4.58611 51.5854 5.15687 51.5854 5.80371C51.5854 6.45059 51.7139 7.02141 51.9709 7.51612C52.228 8.0109 52.5824 8.39748 53.0343 8.67586C53.4862 8.95439 54.0034 9.09362 54.586 9.09355C55.1685 9.09355 55.6858 8.95432 56.1378 8.67586C56.5897 8.39744 56.9442 8.01087 57.2012 7.51612C57.4581 7.02133 57.5866 6.45052 57.5867 5.80371C57.5867 5.15705 57.4582 4.58629 57.2012 4.09144C56.9442 3.59665 56.5897 3.21006 56.1378 2.93168C55.6858 2.65326 55.1685 2.51402 54.586 2.51399Z"+ />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M71.2212 3.43918C71.8593 3.43918 72.4087 3.59018 72.8693 3.89219C73.3297 4.19418 73.6842 4.6172 73.9327 5.16125C74.1811 5.70526 74.3053 6.34348 74.3053 7.07591V7.47435H69.3771C69.467 8.02267 69.6887 8.45426 70.0422 8.76907C70.3956 9.08388 70.8421 9.24131 71.3818 9.24134C71.8144 9.24134 72.1871 9.17705 72.4998 9.04852C72.8125 8.91998 73.1059 8.72507 73.3801 8.4638L74.1511 9.40835C73.3843 10.1109 72.4441 10.4621 71.3305 10.4621C70.6579 10.4621 70.0668 10.3133 69.557 10.0156C69.0519 9.72282 68.639 9.29426 68.3651 8.77861C68.0802 8.25175 67.9378 7.64779 67.9379 6.96673C67.9379 6.27715 68.077 5.66673 68.3554 5.13548C68.6339 4.60441 69.0204 4.18889 69.5152 3.88894C70.01 3.58917 70.5786 3.43925 71.2212 3.43918ZM71.1954 4.66005C70.7157 4.66005 70.3141 4.81853 69.9907 5.13548C69.6673 5.45261 69.4628 5.87885 69.3771 6.4142H72.911C72.8682 5.86587 72.6947 5.43646 72.3905 5.12592C72.0863 4.81531 71.6879 4.66002 71.1954 4.66005Z"+ />+ <path d="M87.9527 1.14532C89.4562 1.14532 90.5806 1.72789 91.326 2.89304L90.2209 3.68341C89.9552 3.28076 89.6393 2.98197 89.2731 2.78703C88.9068 2.59213 88.4624 2.49468 87.9399 2.49472C87.3616 2.49472 86.9129 2.60071 86.5938 2.81268C86.2746 3.02473 86.115 3.32782 86.115 3.7219C86.115 4.02178 86.219 4.26381 86.4267 4.44799C86.6344 4.63216 86.9974 4.77993 87.5158 4.89132L88.8651 5.17407C90.5827 5.53391 91.4416 6.39491 91.4417 7.75707C91.4417 8.60948 91.1472 9.27346 90.5581 9.74895C89.9691 10.2244 89.1242 10.4621 88.0234 10.4621C87.1967 10.4621 86.4609 10.3057 85.8162 9.99307C85.1714 9.68046 84.6692 9.22638 84.3096 8.63083L85.4018 7.76992C85.7016 8.22399 86.0764 8.56131 86.5262 8.78187C86.976 9.00255 87.4922 9.11284 88.0747 9.11277C88.6617 9.11277 89.1179 9.00139 89.4434 8.77861C89.7688 8.55594 89.9316 8.25396 89.9317 7.87267C89.9317 7.54292 89.8182 7.26986 89.5912 7.05349C89.3641 6.83724 88.9786 6.67338 88.4347 6.56196L87.0853 6.27923C85.4318 5.93655 84.6051 5.10124 84.6051 3.77334C84.6051 3.24647 84.7422 2.78597 85.0163 2.39185C85.2904 1.99782 85.6791 1.69155 86.1825 1.47306C86.6858 1.25459 87.2759 1.14536 87.9527 1.14532Z" />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M95.8559 3.43918C96.5368 3.43918 97.1354 3.58697 97.6517 3.88254C98.1621 4.17231 98.5807 4.59983 98.8597 5.11624C99.1487 5.6431 99.2933 6.25567 99.2934 6.95391C99.2934 7.6478 99.1488 8.25822 98.8597 8.78515C98.5807 9.30153 98.1621 9.72901 97.6517 10.0187C97.1355 10.3143 96.5369 10.4621 95.8559 10.4621C95.1789 10.4621 94.5813 10.3143 94.0631 10.0187C93.5512 9.72982 93.1314 9.30221 92.852 8.78515C92.5627 8.25819 92.4181 7.64777 92.4182 6.95391C92.4182 6.2557 92.5628 5.64314 92.852 5.11624C93.1308 4.59977 93.5495 4.17222 94.0599 3.88254C94.576 3.58697 95.1746 3.43918 95.8559 3.43918ZM95.8559 4.72431C95.2519 4.72431 94.7668 4.92778 94.4005 5.3347C94.0343 5.74167 93.8511 6.28141 93.851 6.95391C93.851 7.62213 94.0342 8.15973 94.4005 8.56669C94.7668 8.97365 95.2519 9.1771 95.8559 9.17706C96.4598 9.17705 96.9449 8.9736 97.3112 8.56669C97.6774 8.15973 97.8605 7.62214 97.8604 6.95391C97.8604 6.28148 97.6773 5.74174 97.3112 5.3347C96.9449 4.92775 96.4598 4.72427 95.8559 4.72431Z"+ />+ <path d="M101.773 7.41649C101.773 8.0376 101.883 8.49701 102.101 8.79472C102.32 9.09249 102.662 9.24137 103.129 9.24134C103.532 9.24133 103.889 9.13531 104.202 8.92326C104.515 8.71121 104.759 8.41456 104.935 8.03331V3.5999H106.336V10.3015H104.954V9.33767C104.44 10.0873 103.729 10.4621 102.821 10.4621C102.033 10.4621 101.428 10.2136 101.006 9.71677C100.584 9.21988 100.373 8.50879 100.373 7.58352V3.5999H101.773V7.41649Z" />+ <path d="M115.414 3.43918C116.674 3.43918 117.612 3.93823 118.229 4.93636L117.136 5.67529C116.918 5.34543 116.674 5.10446 116.404 4.95237C116.134 4.80038 115.809 4.72435 115.427 4.72431C114.845 4.72431 114.373 4.92883 114.014 5.33785C113.654 5.74702 113.474 6.28357 113.474 6.94748C113.474 7.64569 113.65 8.19184 114.001 8.58593C114.352 8.98005 114.847 9.17711 115.485 9.17708C115.825 9.17983 116.16 9.09928 116.462 8.94251C116.751 8.79544 117 8.58048 117.188 8.31603L118.164 9.17708C117.509 10.0338 116.605 10.4621 115.453 10.4621C114.763 10.4621 114.162 10.3175 113.651 10.0284C113.144 9.74526 112.731 9.3211 112.462 8.80754C112.181 8.28289 112.041 7.66714 112.041 6.96031C112.041 6.25779 112.181 5.64202 112.462 5.11298C112.729 4.59778 113.138 4.16975 113.641 3.87937C114.146 3.58601 114.737 3.43928 115.414 3.43918Z" />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M122.103 3.43918C122.741 3.43918 123.291 3.59018 123.751 3.89219C124.212 4.19418 124.566 4.61721 124.815 5.16125C125.063 5.70526 125.187 6.34348 125.187 7.07591V7.47435H120.259C120.349 8.02267 120.571 8.45426 120.924 8.76907C121.277 9.08388 121.724 9.24131 122.264 9.24134C122.696 9.24134 123.069 9.17705 123.382 9.04852C123.694 8.91998 123.988 8.72507 124.262 8.4638L125.033 9.40835C124.266 10.1109 123.326 10.4621 122.212 10.4621C121.54 10.4621 120.949 10.3133 120.439 10.0156C119.934 9.72282 119.521 9.29426 119.247 8.77861C118.962 8.25175 118.82 7.64779 118.82 6.96673C118.82 6.27715 118.959 5.66673 119.237 5.13548C119.516 4.60441 119.902 4.18889 120.397 3.88894C120.892 3.58917 121.461 3.43925 122.103 3.43918ZM122.077 4.66005C121.598 4.66005 121.196 4.81853 120.873 5.13548C120.549 5.45261 120.345 5.87885 120.259 6.4142H123.793C123.75 5.86588 123.577 5.43646 123.273 5.12592C122.968 4.81531 122.57 4.66002 122.077 4.66005Z"+ />+ <path d="M79.0344 3.43918C79.8311 3.43918 80.4437 3.68762 80.8721 4.18451C81.3004 4.6815 81.5145 5.39259 81.5146 6.31775V10.3015H80.1139V6.48479C80.1139 5.85947 80.0025 5.39901 79.7797 5.10341C79.5569 4.80785 79.2078 4.66008 78.7324 4.66008C78.3168 4.66008 77.9506 4.76715 77.6337 4.9813C77.3166 5.19556 77.0682 5.49541 76.8884 5.88084V10.3015H75.4876V3.5999H76.8691V4.57653C77.3873 3.81826 78.1091 3.43914 79.0344 3.43918Z" />+ <path d="M111.032 3.50346C111.276 3.50346 111.476 3.52487 111.63 3.56772V4.85927C111.419 4.82953 111.207 4.81447 110.994 4.81424C110.154 4.81424 109.582 5.19119 109.278 5.94507V10.3015H107.877L107.877 3.5999H109.259V4.62787C109.692 3.87833 110.283 3.50353 111.032 3.50346Z" />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M31.3898 3.43916C32.028 3.43916 32.5774 3.59016 33.0378 3.89217C33.4983 4.19416 33.8528 4.61718 34.1012 5.16123C34.3497 5.70524 34.4739 6.34346 34.474 7.07589V7.47433H29.5457C29.6356 8.02265 29.8573 8.45424 30.2106 8.76905C30.5641 9.08387 31.0106 9.24129 31.5504 9.24132C31.983 9.24132 32.3557 9.17703 32.6684 9.0485C32.981 8.91996 33.2744 8.72505 33.5487 8.46377L34.3198 9.40833C33.5529 10.1108 32.6126 10.4621 31.4989 10.4621C30.8264 10.4621 30.2352 10.3132 29.7255 10.0156C29.2204 9.72277 28.8075 9.29421 28.5337 8.77859C28.2488 8.25173 28.1063 7.64777 28.1063 6.96671C28.1063 6.27713 28.2456 5.66671 28.524 5.13546C28.8024 4.60439 29.1891 4.18886 29.6839 3.88892C30.1786 3.58915 30.7472 3.43923 31.3898 3.43916ZM31.3641 4.66003C30.8843 4.66003 30.4827 4.81851 30.1593 5.13546C29.8358 5.45259 29.6312 5.87883 29.5457 6.41418H33.0797C33.0367 5.86585 32.8632 5.43644 32.5592 5.1259C32.255 4.81529 31.8566 4.66 31.3641 4.66003Z"+ />+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M43.4504 3.43916C43.9088 3.43916 44.3201 3.52804 44.6842 3.7058C45.0433 3.87962 45.3544 4.13887 45.59 4.46081V3.59988H46.9651V10.3015H45.59V9.36332C45.353 9.70845 45.0325 9.98807 44.6584 10.1762C44.2815 10.3667 43.8531 10.462 43.3734 10.4621C42.7823 10.4621 42.2586 10.3111 41.8024 10.0092C41.3461 9.70707 40.9873 9.29156 40.7261 8.76263C40.4649 8.23366 40.3342 7.6286 40.3342 6.94746C40.3342 6.2621 40.467 5.65595 40.7325 5.12904C40.9981 4.60217 41.3655 4.18879 41.8346 3.88892C42.3035 3.58915 42.8421 3.43923 43.4504 3.43916ZM43.7331 4.71149C43.1334 4.71149 42.6558 4.9128 42.3003 5.31544C41.9448 5.71808 41.767 6.26211 41.767 6.94749C41.767 7.63717 41.9384 8.18333 42.2811 8.58594C42.6236 8.98858 43.0884 9.18988 43.6753 9.18988C44.108 9.18988 44.4935 9.0785 44.8319 8.85572C45.1644 8.64019 45.4207 8.32547 45.5644 7.95618V5.94508C45.4144 5.56389 45.1777 5.26295 44.8544 5.04228C44.5309 4.82181 44.1572 4.71156 43.7331 4.71149Z"+ />+ <path d="M37.6354 3.59988H39.6658V4.78857H37.6354V7.80197C37.6354 8.30317 37.721 8.66087 37.8923 8.87506C38.0637 9.08932 38.3571 9.19639 38.7726 9.19628C38.9293 9.19769 39.0859 9.19018 39.2417 9.17378C39.3702 9.15884 39.5116 9.13851 39.6658 9.11278V10.2886C39.4898 10.3395 39.3105 10.3781 39.1292 10.4042C38.9218 10.4348 38.7124 10.4499 38.5027 10.4492C36.9906 10.4492 36.2346 9.62253 36.2346 7.96912V4.78857H34.8981V3.59988H36.2346V1.6337H37.6354V3.59988Z" />+ <path d="M22.0474 6.78031L25.0737 1.30603H26.815V10.3015H25.3629V3.40709L22.7091 8.18105H21.347L18.6934 3.40709V10.3015H17.2412V1.30603H19.0211L22.0474 6.78031Z" />+ <path d="M10.2226 0.997803C9.05465 0.997803 8.14165 1.87777 7.31517 2.99561C6.17944 1.54902 5.22961 0.997803 4.09295 0.997803C1.77557 0.997803 0 4.01469 0 7.20788C0 9.20608 0.966372 10.4664 2.58502 10.4664C3.75002 10.4664 4.58789 9.91696 6.07741 7.31236C6.07741 7.31236 6.69832 6.21551 7.12547 5.45995C7.27515 5.7017 7.43279 5.96219 7.5984 6.24143L8.29688 7.41684C9.6575 9.69449 10.4156 10.4664 11.7893 10.4664C13.3662 10.4664 14.2437 9.18885 14.2437 7.14911C14.2437 3.80572 12.4281 0.997803 10.2226 0.997803ZM4.94157 6.60712C3.73392 8.50083 3.31614 8.92529 2.64377 8.92529C1.95182 8.92529 1.54057 8.31761 1.54057 7.234C1.54057 4.91583 2.696 2.54542 4.07337 2.54542C4.81925 2.54542 5.44257 2.97634 6.39733 4.34363C5.49074 5.73467 4.94157 6.60712 4.94157 6.60712ZM9.49941 6.36872L8.66428 4.97543C8.43828 4.60775 8.22109 4.26931 8.0127 3.96012C8.76539 2.79799 9.38625 2.21893 10.1247 2.21893C11.6587 2.21893 12.8859 4.47832 12.8859 7.2536C12.8859 8.31146 12.5396 8.92529 11.8219 8.92529C11.1341 8.92529 10.8055 8.47085 9.49941 6.36872Z" />+ </svg>+ );+}diff --git a/apps/docsite/src/themes/astryxTheme.ts b/apps/docsite/src/themes/astryxTheme.tsindex fbe86bab03..3213814782 100644--- a/apps/docsite/src/themes/astryxTheme.ts+++ b/apps/docsite/src/themes/astryxTheme.ts@@ -24,7 +24,12 @@* thin brand layer of primary + accent + body on top of the design system.*/-import {defineTheme} from '@xds/core/theme';+import {defineTheme, type XDSTokenValue} from '@xds/core/theme';++// Relative import (not the `@/` alias) because this theme file is also loaded+// in isolation by the `xds theme build` CLI via jiti, which does not resolve+// the `@/*` tsconfig path alias.+import {BRAND_BLUE} from '../constants';// === PRIMARY (high-emphasis foreground ink — drives accent too) ==============// Warm near-black that harmonizes with the cream body (light) and a warm@@ -40,7 +45,9 @@ const PRIMARY_MUTED =// BRAND_BLUE (logo/wordmark only) lives in `@/constants` — kept out of this// source theme so consumers can read it without importing the unbuilt theme-// object (which would re-trigger runtime style injection).+// object (which would re-trigger runtime style injection). It is also exposed+// to the UI here as the custom CSS variable --color-brand (see the token block+// below), so consumers can reference the brand blue via var(--color-brand).export const astryxTheme = defineTheme({name: 'astryx',@@ -92,6 +99,12 @@ export const astryxTheme = defineTheme({'--radius-element': '12px','--radius-container': '16px','--radius-page': '32px',++ // --- Custom brand color token ---+ // Not a core XDS token, so it's spread in with a cast to allow the extra+ // key while keeping the standard tokens above type-checked. Exposed to the+ // UI as var(--color-brand).+ ...({'--color-brand': BRAND_BLUE} as Record<string, XDSTokenValue>),},typography: {