Skip to content

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

TypeScript

fix(docsite): Dark mode fixes and hero copy change (#2484)

Kenton Quatman876482f2a060
diff --git a/apps/docsite/src/app/(docs)/components/page.tsx b/apps/docsite/src/app/(docs)/components/page.tsx
index a065bb2b95..8620d2df40 100644
--- a/apps/docsite/src/app/(docs)/components/page.tsx
+++ b/apps/docsite/src/app/(docs)/components/page.tsx
@@ -175,7 +175,7 @@ export default function ComponentsGalleryPage() {
<XDSButton
variant="primary"
size="lg"
- label="Install Core Library"
+ label="Install core library"
/>
</XDSPopover>
</XDSVStack>
diff --git a/apps/docsite/src/app/(docs)/docs/page.tsx b/apps/docsite/src/app/(docs)/docs/page.tsx
index 0495b47184..8968d3bc07 100644
--- a/apps/docsite/src/app/(docs)/docs/page.tsx
+++ b/apps/docsite/src/app/(docs)/docs/page.tsx
@@ -183,7 +183,7 @@ export default function HomePage() {
<div {...stylex.props(styles.heroContainer)}>
<XDSMediaTheme mode="light">
<XDSText type="large" weight="semibold" xstyle={styles.heroTitle}>
- XDS Open Source
+ Astryx
</XDSText>
<XDSText type="display-1" xstyle={styles.heroSubtitle}>
Build with AI
@@ -228,7 +228,7 @@ export default function HomePage() {
{/* Libraries & Packages */}
<XDSVStack gap={5}>
<XDSVStack gap={1}>
- <XDSHeading level={2}>Libraries &amp; Packages</XDSHeading>
+ <XDSHeading level={2}>Libraries &amp; packages</XDSHeading>
<XDSText type="body" color="secondary">
Install what you need. All packages are published under the @xds
scope.
diff --git a/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx b/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx
index 52852a4602..7bf721c34b 100644
--- a/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx
+++ b/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx
@@ -89,7 +89,11 @@ const items: AboutItem[] = [
description:
'Foundations you can trust, speed you can feel. The system is built so teams stop reinventing the basics and start shipping the ideas that matter.',
link: (
- <XDSLink type="body" href="/docs/getting-started" hasUnderline>
+ <XDSLink
+ type="body"
+ color="primary"
+ href="/docs/getting-started"
+ hasUnderline>
Get started in minutes
</XDSLink>
),
@@ -100,7 +104,7 @@ const items: AboutItem[] = [
description:
'The system gets sharper when we put it to work in the real world. Using it in context strengthens the whole system for everyone.',
link: (
- <XDSLink type="body" href="/community" hasUnderline>
+ <XDSLink type="body" color="primary" href="/community" hasUnderline>
Learn how to contribute
</XDSLink>
),
@@ -111,7 +115,7 @@ const items: AboutItem[] = [
description:
'The quality bar is accelerating. Astryx pairs opinionated foundations with flexible patterns so your system keeps pace — no matter how the craft evolves.',
link: (
- <XDSLink type="body" href="/changelog" hasUnderline>
+ <XDSLink type="body" color="primary" href="/changelog" hasUnderline>
See what&apos;s new
</XDSLink>
),
diff --git a/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsx b/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsx
index aeeeee8da1..e396f1705e 100644
--- a/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsx
+++ b/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsx
@@ -199,7 +199,7 @@ export function DiscoverShowcase() {
alt="Astryx"
{...stylex.props(styles.inlineWordmark)}
/>
- design system.
+ design system
</XDSHeading>
<XDSText type="body" color="secondary" style={{maxWidth: 480}}>
Browse {CORE_COMPONENT_COUNT_ROUNDED}+ components, explore
diff --git a/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx b/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx
index 3dd1da5a39..5c9ec461df 100644
--- a/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx
+++ b/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx
@@ -94,19 +94,21 @@ function FeatureCard({feature, isTall}: {feature: Feature; isTall?: boolean}) {
variant="default"
padding={5}
xstyle={isTall ? styles.cardTall : styles.card}>
- <XDSVStack gap={3} align="start">
- <XDSHeading level={3} color="primary">
- {feature.title}
- </XDSHeading>
- <XDSText type="body" color="secondary">
- {feature.description}
- </XDSText>
+ <XDSVStack gap={6}>
+ <XDSVStack gap={1} align="start">
+ <XDSHeading level={3} color="primary">
+ {feature.title}
+ </XDSHeading>
+ <XDSText type="body" color="secondary">
+ {feature.description}
+ </XDSText>
+ </XDSVStack>
<XDSLink
type="body"
- color="active"
+ color="primary"
href={feature.href}
- hasUnderline={false}>
- Explore →
+ hasUnderline={true}>
+ Explore
</XDSLink>
</XDSVStack>
</XDSCard>
diff --git a/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx b/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx
index 69992e8808..895aebcd92 100644
--- a/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx
+++ b/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx
@@ -148,11 +148,11 @@ function ShowcaseHeading() {
and motion.
</XDSText>
<XDSHStack gap={4} align="center">
- <XDSLink type="body" href="/themes" hasUnderline>
+ <XDSLink type="body" href="/themes" color="primary" hasUnderline>
Explore all themes
</XDSLink>
<XDSDivider orientation="vertical" xstyle={styles.captionDivider} />
- <XDSLink type="body" href="/docs/theme" hasUnderline>
+ <XDSLink type="body" href="/docs/theme" color="primary" hasUnderline>
Create a custom theme
</XDSLink>
</XDSHStack>
diff --git a/apps/docsite/src/app/(site)/page.tsx b/apps/docsite/src/app/(site)/page.tsx
index 92d797de90..631dc50447 100644
--- a/apps/docsite/src/app/(site)/page.tsx
+++ b/apps/docsite/src/app/(site)/page.tsx
@@ -4,7 +4,7 @@
import {useEffect, useRef} from 'react';
import * as stylex from '@stylexjs/stylex';
-import {XDSText, XDSHeading} from '@xds/core/Text';
+import {XDSHeading, XDSText} from '@xds/core/Text';
import {XDSLink} from '@xds/core/Link';
import {XDSDivider} from '@xds/core/Divider';
import {XDSHStack, XDSVStack} from '@xds/core/Layout';
@@ -29,9 +29,9 @@ const styles = stylex.create({
heroContent: {
position: 'sticky',
top: 'var(--appshell-header-height, 0px)',
- maxWidth: 680,
+ maxWidth: 800,
marginInline: 'auto',
- paddingBlock: `calc(${spacingVars['--spacing-12']} * 2)`,
+ paddingBlock: `calc(${spacingVars['--spacing-12']} * 3)`,
paddingInline: spacingVars['--spacing-6'],
textAlign: 'center',
gap: spacingVars['--spacing-12'],
@@ -110,9 +110,9 @@ export default function HomePage() {
{...stylex.props(styles.heroWordmark)}
/>
<XDSHeading level={1} type="display-1" color="primary">
- Fully customizable, no-forking, open source design system
+ An open source design system that's fully customizable and agent ready
</XDSHeading>
- <XDSVStack gap={6} align="center">
+ <XDSVStack gap={8} align="center">
<XDSGrid columns={2} gap={3} xstyle={styles.heroButtons}>
<XDSButton
variant="primary"
@@ -127,38 +127,26 @@ export default function HomePage() {
href="/components"
/>
</XDSGrid>
- <XDSHStack gap={4} align="center" hAlign="center">
- <XDSText display="block">
+ <XDSHStack gap={2} align="center">
+ <XDSText display="block" type="supporting">
Currently in{' '}
- <XDSText as="span" weight="bold">
+ <XDSText type="inherit" weight="bold">
Beta
</XDSText>
</XDSText>
<XDSDivider
orientation="vertical"
variant="strong"
- style={{height: '1em'}}
+ style={{height: '0.75em'}}
/>
- <XDSText display="block">
+ <XDSText display="block" type="supporting">
Built on{' '}
<XDSLink
- type="body"
- color="primary"
- href="https://react.dev"
- target="_blank"
- rel="noopener noreferrer"
+ type="inherit"
+ color="inherit"
+ href="https://react.dev/"
hasUnderline>
React
- </XDSLink>{' '}
- and{' '}
- <XDSLink
- type="body"
- color="primary"
- href="https://stylexjs.com"
- target="_blank"
- rel="noopener noreferrer"
- hasUnderline>
- StyleX
</XDSLink>
</XDSText>
</XDSHStack>
diff --git a/apps/docsite/src/components/SiteFooter.tsx b/apps/docsite/src/components/SiteFooter.tsx
index ec47eabc46..7544cb0a77 100644
--- a/apps/docsite/src/components/SiteFooter.tsx
+++ b/apps/docsite/src/components/SiteFooter.tsx
@@ -13,23 +13,19 @@ const styles = stylex.create({
paddingBlock: spacingVars['--spacing-6'],
paddingInline: spacingVars['--spacing-4'],
},
- verticalDivider: {
- alignSelf: 'stretch',
- height: '1em',
- },
});
const links = [
{
- label: 'Terms of Use',
+ label: 'Terms of use',
href: 'https://opensource.fb.com/legal/terms',
},
{
- label: 'Privacy Policy',
+ label: 'Privacy policy',
href: 'https://opensource.fb.com/legal/privacy',
},
{
- label: 'GitHub Pages',
+ label: 'GitHub pages',
href: 'https://studious-broccoli-o7e61n3.pages.github.io/',
},
];
@@ -47,8 +43,8 @@ export function SiteFooter() {
<Fragment key={link.href}>
<XDSDivider
orientation="vertical"
- variant="subtle"
- xstyle={styles.verticalDivider}
+ variant="strong"
+ style={{height: '0.75em'}}
/>
<XDSLink
type="supporting"