Skip to content

fix(docsite): eliminate flash of light theme on dark-mode load (#2713) - #2907

Merged
cixzhang merged 3 commits into
mainfrom
navi/fix/theme-flash-2713
Jun 19, 2026
Merged

cixzhang merged 3 commits into
mainfrom
navi/fix/theme-flash-2713

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Summary

Fixes #2713 — the docsite painted the light theme on first load even when the OS preferred dark, then flipped to dark after hydration (a visible flash). The missing theme-scoped top spacing also appeared late for the same reason.

Root causes

  1. No server-side theme attributes. <html> in layout.tsx had no data-theme / data-xds-theme. The root <XDSTheme> sets them client-side via a layout effect (useRootThemeSync), so the very first paint was unthemed (light) and missing the theme's scoped CSS (including the top spacing) until hydration landed.

  2. Runtime style injection (FOUC + console warning). The home hero reel (page.tsx) and heroThemeContent.ts imported the source astryxTheme.ts. That object has no __built flag, so <XDSTheme> ran useThemeStyleInjection, logging:

    [XDS] Theme "astryx" is using runtime style injection

    and injecting styles at runtime instead of using the pre-built CSS.

Changes

  • layout.tsx — added a small blocking <head> script that, before first paint, sets data-xds-theme="astryx" and data-theme from prefers-color-scheme. Added suppressHydrationWarning to <html> (the client may flip data-theme after a manual toggle).
  • providers.tsx — seed the initial mode from the data-theme attribute the blocking script set, so the root <XDSTheme> sync doesn't briefly flip a pre-painted dark theme back to light during hydration. Live OS-change tracking and manual toggle behavior are unchanged.
  • page.tsx / heroThemeContent.ts — import the built theme object from ../themes/astryx (__built: true) instead of the source astryxTheme.ts, so <XDSTheme> skips runtime injection (CSS already ships via globals.css → astryx.css). BRAND_BLUE (a plain string constant, logo-only) still comes from the source module — importing a constant doesn't trigger injection.

Notes on the original investigation

The bug was traced to the docsite's local astryxTheme (apps/docsite/src/themes/astryxTheme.ts), built by pnpm build:theme (xds theme build … --out astryx.css, which also emits astryx.js with __built: true). It is not @xds/theme-daily — that package isn't a docsite dependency. The @xds/theme-* packages used elsewhere already import via /built (see generated themeRegistry.ts), so they were unaffected.

Verification

  • pnpm -F @xds/docsite typecheck — clean
  • pnpm -F @xds/docsite test — 133/133 pass
  • Pre-commit hooks (eslint --fix, SYNC check, package boundaries) — pass
  • All <XDSTheme theme={astryxTheme}> call sites now use the __built object, so no runtime style injection warning fires.

@vercel

vercel Bot commented Jun 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
xds-sandbox Ignored Ignored Jun 19, 2026 12:29am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 18, 2026
@github-actions

github-actions Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Vercel Preview Deployment

Status ✅ Deployed
Preview Open Preview
Commit 1319a8a
Inspect Vercel Dashboard
Workflow View Logs

No authentication required — anyone with the link can view the preview.

// BRAND_BLUE is a plain string constant (logo-only, not a theme token), so it
// still comes from the source module — importing a constant doesn't inject.
import {astryxTheme} from '../../../../themes/astryx';
import {BRAND_BLUE} from '../../../../themes/astryxTheme';

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we move this constant out of the theme and into some shared cost file? Also anyway we can make these paths more palatable? Something like @/components/foo but maybe @/theme/astryx

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — moved BRAND_BLUE into src/constants.ts (alongside GITHUB_REPO) and switched the touched theme consumers to @/ aliases (@/themes/astryx, @/constants, @/generated/*). The constant living outside the source theme also means consumers no longer have any reason to import astryxTheme.ts directly, which is what was triggering the runtime injection.

Comment thread apps/docsite/src/app/layout.tsx Outdated
// Inlined as a string so it ships in the initial HTML and executes
// synchronously. suppressHydrationWarning on <html> covers the attribute the
// client may flip after a manual toggle.
const THEME_INIT_SCRIPT = `(function(){try{var e=document.documentElement;e.setAttribute('data-xds-theme','astryx');if(window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches){e.setAttribute('data-theme','dark')}else{e.setAttribute('data-theme','light')}}catch(_){}})();`;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using system is fine we really just needed the data-XDS-theme. We likely don't actually need this injection

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed — removed the script entirely. reset.css keeps color-scheme: light dark whenever data-theme is absent, and the built astryx.css tokens are light-dark(), so server-rendering just data-xds-theme="astryx" resolves the OS scheme on the first paint with no JS and no flash. <XDSTheme mode="system"> then syncs the same attribute on the client (no mismatch).

Comment thread apps/docsite/src/app/layout.tsx Outdated
export default function RootLayout({children}: {children: React.ReactNode}) {
return (
<html lang="en">
<html lang="en" data-xds-theme="astryx" suppressHydrationWarning>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually need the suppression if we remove the above script injection

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct — with the script gone there's no server/client attribute divergence on the initial render, so I dropped suppressHydrationWarning.

Comment thread apps/docsite/src/app/providers.tsx Outdated
// light during hydration. The effect below then tracks live OS changes until
// the user manually toggles, after which their choice sticks for the session.
const [mode, setMode] = useState<ThemeMode>(() => {
if (typeof document !== 'undefined') {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default is system theme so we actually need to check the user preferences to get this right. Actually if we really want this toggle including serverside rendering without fouc we should probably set some cookie and read it from the server to set the default mode on server and pass down to client.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted the default back to 'system' so SSR/first paint defer to the OS via reset.css + light-dark(). Internal state is widened to 'system' | 'light' | 'dark' (XDSTheme accepts system); the public context still exposes a concrete 'light' | 'dark' for the toggle UI. I added a code comment calling out that a fully SSR-correct manual toggle (no FOUC on reload after toggling) would need to persist the choice in a cookie and read it server-side to seed mode — left out of scope for this flash fix. Happy to do the cookie version as a follow-up if you'd like it here.

cixzhang added 2 commits June 18, 2026 16:07
The docsite painted the light theme on first load even when the OS
preferred dark, then flipped to dark after hydration. Two causes:

1. <html> had no theme attributes. XDSTheme syncs data-theme /
   data-xds-theme client-side via a layout effect, so the first paint
   was unthemed (light) and missing the theme-scoped top spacing until
   the attributes landed. Fix: a blocking <head> script sets
   data-xds-theme=astryx and data-theme from prefers-color-scheme before
   first paint, plus suppressHydrationWarning on <html>. Providers now
   seeds its initial mode from that attribute so the root XDSTheme sync
   doesn't briefly flip dark back to light.

2. The home hero reel (page.tsx) and heroThemeContent imported the
   source astryxTheme.ts, whose object lacks __built, triggering the XDS
   runtime style injection warning and a FOUC. Switched both to the built
   ../themes/astryx (__built:true); BRAND_BLUE (a plain constant) still
   comes from the source module.

Fixes #2713
Address review feedback on #2713:

- layout.tsx: drop the blocking <head> script and suppressHydrationWarning.
  Just server-render data-xds-theme="astryx". reset.css keeps
  color-scheme: light dark when data-theme is absent, so the theme's
  light-dark() tokens resolve to the OS preference on the first paint with
  no script and no flash.
- providers.tsx: restore mode='system' as the default (deferring to the OS
  via reset.css + light-dark) instead of seeding from a DOM attribute.
  Internal state widened to 'system' | 'light' | 'dark'; the public context
  still exposes a concrete 'light' | 'dark'. Documented that a fully
  SSR-correct manual toggle would need a cookie read on the server.
- Move BRAND_BLUE (logo-only constant) out of the source theme into
  @/constants so it can be imported without pulling in the source theme
  object.
- Use @/ path aliases (@/themes/astryx, @/constants, @/generated/*) in the
  touched theme consumers.

Fixes #2713
@cixzhang
cixzhang force-pushed the navi/fix/theme-flash-2713 branch from c1d1e62 to 00e610c Compare June 18, 2026 16:17
@cixzhang

Copy link
Copy Markdown
Contributor Author

Rebased onto latest main (resolves the previous UNKNOWN mergeability — now mergeable: true) and force-pushed. Also tightened the inline comments per review — they were too verbose; trimmed across layout.tsx, providers.tsx, constants.ts, and astryxTheme.ts.

CI green on the new head: docsite-test, build, test, and lint all pass. Local: pnpm -F @xds/docsite typecheck clean, 164/164 tests pass.

Two first-paint issues still contributed to the flash on #2713:

1. --appshell-header-height was only set post-hydration by XDSAppShell's
   ResizeObserver, so the hero's fixed top offset, the nav backdrop, and the
   docs content padding all fell back to mismatched literals until then —
   the top spacing visibly popped in. Seed it at :root in globals.css to the
   auto-mode header height (--spacing-12 = 48px); the AppShell still
   overwrites it with the measured value (identical, no jump).

2. On a dark OS the home hero briefly flashed white. The reel renders its
   body fill / nav backdrop / cards in nested <XDSTheme mode={...}> scopes
   driven by the docsite color mode, which resolved to a hardcoded 'light'
   on the first client render (before the prefers-color-scheme effect ran).
   A nested mode='light' forces color-scheme: light, so the body fill's
   light-dark() token resolved to the cream/white value even on a dark OS.
   Providers now also expose the raw 'system'-aware themeMode; the reel uses
   it so slides keep color-scheme: light dark and follow the OS on the first
   paint. The resolved light/dark mode is still used for the toggle UI.
@cixzhang

Copy link
Copy Markdown
Contributor Author

Pushed 1319a8a addressing both first-paint issues you flagged:

1. --appshell-header-height popping in (the 48px top spacing).
It was only set post-hydration by XDSAppShell's ResizeObserver, so the hero's fixed top, the nav backdrop, and the docs content padding all fell back to mismatched literals (0px/64px) until then. Seeded it at :root in globals.css to the auto-mode header height (--spacing-12 = 48px). The AppShell still overwrites it with the measured value — identical, so no layout jump.

2. Dark-mode white flash / data-hero-dark timing.
Root cause: the hero reel renders its body fill, nav backdrop, and cards in nested <XDSTheme mode={effectiveMode(active, userMode)}> scopes, and userMode came from the docsite color mode — which resolved to a hardcoded 'light' on the first client render (before the prefers-color-scheme effect ran). A nested mode='light' forces color-scheme: light, so the body fill's light-dark() token resolved to the cream/white value even on a dark OS → white flash. data-hero-dark has the same post-hydration-effect timing.

Fix: Providers now also exposes a raw, 'system'-aware themeMode, and the reel uses that instead of the resolved mode. On the first paint the non-dark slides render mode='system', keeping color-scheme: light dark so their light-dark() body fill follows the OS — no flash. The resolved light/dark mode is still used for the toggle UI (icon, ColorSwatch). Dark-first themes (Gothic) are unaffected — they're always 'dark'.

Local: typecheck clean, 164/164 tests pass.

@cixzhang
cixzhang marked this pull request as ready for review June 19, 2026 06:10
@cixzhang
cixzhang merged commit 9ab13e2 into main Jun 19, 2026
20 checks passed
cixzhang added a commit that referenced this pull request Jun 19, 2026
Merge latest main into the docsite-footer branch. main (#2907) moved
BRAND_BLUE out of astryxTheme.ts into @/constants; this branch added a
--color-brand custom token wired to BRAND_BLUE. Keep both: source
BRAND_BLUE from constants (relative import, since the xds theme build CLI
loads this file via jiti without the @/ path alias) and retain the
--color-brand token entry referencing it.
ejhammond added a commit that referenced this pull request Jun 19, 2026
…nup) (#2939)

* fix(docsite): use heart-handshake icon for Community nav button (#2853)

Swap the top nav Community button icon from HandHeart to HeartHandshake
for a clearer community/partnership affordance.

Co-authored-by: Cursor <[email protected]>

* fix(cli): show primary component in import hint, not sub-component (#2860)

Vibe test nightly showed agents using wrong prop APIs on XDSText and
XDSCodeBlock because the CLI import hint showed the first sub-component
(XDSHeading, XDSCode) instead of the primary export (XDSText, XDSCodeBlock).

The import line is the first thing agents see in CLI output. When it showed
`import {XDSHeading} from '@xds/core/Text'`, agents conflated XDSText
with XDSHeading and hallucinated a `variant` prop that doesn't exist.

Fix: always use `XDS${docs.name}` for the import hint display name
instead of `docs.components[0].name` (which is a sub-component).

Co-authored-by: Cindy Zhang <[email protected]>

* docs: replace em/en dashes with standard punctuation in doc prose (#2857)

Replace em dashes with colons, semicolons, or commas as contextually
appropriate across 50 component and hook doc files. Numeric ranges
(2-4, 10-12, h1-6) and name/displayName convention fields left as-is.

Found during Night Watch doc review.

* docs(AppShell): move bare > onto same line as last prop in @example (#2834)

The closing > of <XDSAppShell on its own line can become a markdown
blockquote if the code fence breaks in Storybook autodocs. Move it
to the same line as the last prop.

Found during Night Watch doc review.

* feat(docsite): Playground properties popover (#2873)

* Props popover

* Styling fixes

* Clean up

* Theme fix

* docs(slop): source-code AI-slop cleanup, pass 2 of 2 (14 files) (#2869)

* docs(slop): Layout.stories.tsx - em-dash+buzzword (9)

* docs(slop): Link.stories.tsx - em-dash (3)

* docs(slop): SVGIcon.stories.tsx - em-dash (2)

* docs(slop): SelectableCard.stories.tsx - em-dash (1)

* docs(slop): TableColumnResize.stories.tsx - em-dash (1)

* docs(slop): TableFiltering.stories.tsx - em-dash (1)

* docs(slop): Toast.stories.tsx - em-dash (5)

* docs(slop): XDSMediaTheme.stories.tsx - em-dash (10)

* docs(slop): XDSTheme.stories.tsx - em-dash (2)

* docs(slop): XIFSpec.stories.tsx - em-dash (4)

* docs(slop): build-previews.ts - em-dash (1)

* docs(slop): correct-previews.ts - em-dash (1)

* docs(slop): universal-eval.ts - em-dash (4)

* docs(slop): AppShellMobileHookUsage.tsx - em-dash (1)

* docs(slop): full-rubric cleanup pass 2 - complete the hollow-intensifier + ellipsis fixes (5 files) (#2862)

* docs(slop): typography.doc.mjs - replace ellipsis char with ASCII (A5)

* docs(slop): DateTimeInput.doc.mjs - cut hollow 'easily' (E)

* docs(slop): FileInput.doc.mjs - cut hollow 'very' (E)

* docs(slop): RadioList.doc.mjs - cut hollow 'truly' (E)

* docs(slop): TextInput.doc.mjs - cut hollow 'truly' (E)

* fix(core): remove redundant style prop declarations, wire FieldStatus escape hatches (#2835)

- FormLayout: remove xstyle/className/style re-declarations from XDSFormLayoutProps
  (already provided by XDSBaseProps)
- Grid: remove xstyle/className/style re-declarations from XDSGridProps
- GridSpan: remove xstyle/className/style re-declarations from XDSGridSpanProps
- FieldStatus: wire xstyle/className/style and rest props through to DOM element
  (consumers can now apply escape-hatch styles and data-* attributes)
- Update FormLayout snapshot (line numbers shifted by 1)

* fix(docsite): decouple Astryx primary/accent and make hero respect dark mode (#2855)

Reserve the Astryx brand blue for the logo and drive all interactive UI
(buttons, links, focus, Switch, tints) from the primary near-black ink by
pointing the accent tokens at it. Set --color-on-accent to light-dark so the
primary button label stays readable in both modes (it was white on the light
dark-mode accent fill). The warm taupe neutral ramp is dropped in favor of the
XDS default grays.

Thread the docsite's color mode into the hero reel so each slide renders in its
own dark palette when the site is in dark mode (dark-only themes like Gothic
stay dark); previously the reel was hardcoded to light. The Astryx wordmark gets
an explicit brand-blue override so the logo stays blue even though its accent
token is now the primary ink.

Co-authored-by: Cursor <[email protected]>

* feat(selector): rename option renderer prop (#2821)

* Playground code clean up (#2895)

* fix(docsite): use chat subcomponent usage summaries (#2893)

* fix(cli): add anti-pattern guidance for Text and Icon docs (#2887)

Vibe test nightly showed agents consistently using `variant` prop on XDSText
(does not exist) and `name` prop on XDSIcon (should be `icon`), even after
reading CLI docs. Added explicit 'Don't' guidance to prevent hallucination
of familiar prop names from other design systems.

Also updated XDSText type prop to include display-1/2/3 values that were
missing from the documented union type.

Co-authored-by: Cindy Zhang <[email protected]>

* docs(dense): fix bestPractices count parity for Selector and MultiSelector (#2884)

Both overlays (docsZh and docsDense) were missing the renderOption
bestPractice entry, causing a 1-bullet count mismatch with the English
docs. Adds the missing entry at the correct position with guidance: true.

Found during Night Watch doc review.

* build(deps): bump lucide-react in the production-dependencies group (#2831)

Bumps the production-dependencies group with 1 update: [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react).


Updates `lucide-react` from 1.17.0 to 1.18.0
- [Release notes](https://github.com/lucide-icons/lucide/releases)
- [Commits](https://github.com/lucide-icons/lucide/commits/1.18.0/packages/lucide-react)

---
updated-dependencies:
- dependency-name: lucide-react
  dependency-version: 1.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(docsite): per-theme showcase content + theme polish (Matcha/Butter/Stone/Y2K/Gothic) (#2856)

* feat(docsite): use new Neutral theme product photos

Point the Neutral theme image set at the new xds_oss CDN product photos
(Neutral-Watch/Headphones/Backpack/Wallet/Tumbler/Blanket) instead of the
local placeholder PNGs, so the /themes/neutral showcase and inventory table
render the updated imagery. Rename the "mug" slot to "tumbler" (and the
"Travel Mug" row to "Travel Tumbler") to match the actual product photo.

Co-authored-by: Cursor <[email protected]>

* feat(docsite): scaffold per-theme product image sets

Restructure the theme image registry so every theme can ship its own set of
product photos via the shared xds_oss CDN (<TitleTheme>-<Item>.png), built by a
cdnSet() helper. Each non-Neutral reel theme (butter, matcha, daily, gothic,
y2k, stone, chocolate) is pre-wired but gated behind a per-theme `ready` flag —
until its photos are uploaded it falls back to the Neutral set, so the
/themes/<name> page never renders broken/404 thumbnails. Flip `ready: true` per
theme once its assets land.

Co-authored-by: Cursor <[email protected]>

* feat(templates): use new Neutral product photos in theme-showcase

The /themes page renders the theme-showcase CLI template, which carried its own
hardcoded image map pointing at the old local /neutral/preview-*.png files.
Point PREVIEW_IMAGES at the new xds_oss CDN photos (Neutral-Watch/Headphones/
Backpack/Wallet/Tumbler/Blanket) so the themes page (and scaffolded copies of
this template) render the updated imagery, and rename the mug slot/row to
tumbler to match the actual product photo.

Co-authored-by: Cursor <[email protected]>

* feat(docsite): bespoke Matcha showcase content (drinks)

Make the theme-showcase template accept optional images/products/inventory
(defaulting to the neutral store, so scaffolded copies are unchanged), and have
ThemePackagePage pass per-theme content keyed by slug. Add a Matcha café menu
(Iced Matcha Latte, Strawberry Matcha, Ube Matcha, + vanilla/hazelnut/mocha in
the inventory) using the matcha-product-*.png photos, so the Matcha theme page
shows real matcha drinks instead of the generic gadget store. Themes without an
override keep the template's neutral defaults.

Co-authored-by: Cursor <[email protected]>

* fix(theme-matcha): tone down oversized type scale

Matcha ran large: typography.scale was base 18 / ratio 1.414 (√2) AND it
re-pinned the whole --font-size-* ramp with hardcoded values (base 1.125rem),
so headings/display grew aggressively regardless of the scale. Switch to
base 16 / ratio 1.25 and drop the explicit --font-size-* overrides so the
scale config is the single source of truth, bringing Matcha in line with the
other themes while keeping clear hierarchy.

Co-authored-by: Cursor <[email protected]>

* feat(templates): accent-text hero headline in theme-showcase

Paint the "Little joys" store-preview headline with the theme's accent-text
ink (--color-text-accent) instead of the default primary. XDSText has no
'accent' color value, so apply the token via an xstyle override.

Co-authored-by: Cursor <[email protected]>

* feat(templates): theme-aware theme-showcase store + layout fixes

Make the theme-showcase template accept optional images/products/inventory
(defaulting to the neutral store, so scaffolded copies are unchanged) so the
docsite can render per-theme stores. Point the default images at the xds_oss
CDN, rename the mug slot to tumbler, and widen the tag/badge variant type to the
full categorical set.

Layout fixes: align the inventory table with the card header via the shared
--spacing-6 token and lower the proportional column min-widths so the trailing
actions column no longer clips on larger-spacing themes; size the actions/select
columns and quantity input so controls + hover states fit their cells; match the
quantity input height to its button; stack the store hero headline; and drop the
revenue sparkline.

Co-authored-by: Cursor <[email protected]>

* feat(docsite): bespoke showcase content for Matcha, Butter, Stone, Y2K

Add per-theme product imagery + names for the /themes showcase so each theme
reads as its own store instead of the generic gadget shop: Matcha (café drinks),
Butter (bakery), Stone (stoneware homeware), Y2K (holo trinkets). Each maps the
theme's xds_oss CDN photos onto the showcase slots; themes without an entry keep
the template's neutral defaults.

Co-authored-by: Cursor <[email protected]>

* fix(themes): typography + border + composer-radius tweaks

- Matcha/Gothic: drop the oversized type scale (base 16 / ratio 1.25); Matcha
  also removes its hardcoded --font-size-* ramp so the scale is the source of
  truth.
- Matcha/Y2K/Butter: soften the emphasized (card) border to a lighter tone;
  Matcha also lightens the default border.
- Butter: stop hardcoding the button border-radius so the chat composer's
  buttons round fully (via --_button-radius) while standalone buttons keep the
  8px --radius-element fallback.

Co-authored-by: Cursor <[email protected]>

* feat(docsite): Stone + Gothic showcase content; tidy comments

Add bespoke /themes showcase content for Stone (stoneware homeware) and Gothic
(moody botanicals), and refresh Matcha/Butter/Y2K image sets to their full
six-photo sets (couch for Y2K, dedicated Stone-*/Gothic-* assets). Trim
redundant/stale comments in the showcase content + image registry.

Co-authored-by: Cursor <[email protected]>

* chore(docsite): tidy showcase template comments + load Crimson Text

Tighten the verbose layout comments in the theme-showcase template, and add
Crimson Text to the docsite font <link> so the Y2K display font loads.

Co-authored-by: Cursor <[email protected]>

* feat(theme-y2k): periwinkle body, Crimson Text display, charcoal borders, flat nav

Y2K: periwinkle (#CCCFFA) body, Crimson Text serif for display sizes, bold
charcoal borders (default + card), and a flat selected top-nav item. Document
the theme's fonts in the README and refresh its stale description. Also tidy
comments in the matcha/butter/gothic theme files.

Co-authored-by: Cursor <[email protected]>

* feat(theme-butter): blue top nav

Use Butter's blue accent in the top nav: the Studio heading and the selected
item render the full brand blue (the heading redirects --color-text-primary so
the inner heading text turns blue too), unselected items use a lighter blue, and
the selected item drops its pill background. Dark mode keeps the butter-yellow
accent.

Co-authored-by: Cursor <[email protected]>

* fix(templates): keep theme-showcase route page prop-free

The theme-showcase template is rendered as a Next.js route page in the sandbox,
so its default export must satisfy PageProps — but it had been given typed
ThemeShowcaseProps, failing the sandbox build. Keep the default export prop-free
and move the content-accepting renderer to a named `ThemeShowcaseStore` export;
the docsite imports that for per-theme content.

Co-authored-by: Cursor <[email protected]>

* feat(docsite): serve theme picker banners from CDN

Re-art-direct the picker banners to match each theme's CDN product
photos and balance object placement: butter (correct sky-blue + warmer
crochet), y2k (matte mint stars, theme periwinkle, sized + centered),
matcha (drinks spaced for the wordmark). Point all six picker card
backgrounds at the shared XDS asset CDN (PICKER_CDN) instead of local
/public files, and remove the now-unused local picker PNGs. Stone
wordmark now uses the theme accent instead of hardcoded white (drop the
now-unused labelOnDark style).

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

* fix(docsite): prevent SideNav preview navigation (#2827)

* build(deps-dev): bump the dev-dependencies group across 1 directory with 34 updates (#2897)

* build(deps-dev): bump the dev-dependencies group across 1 directory with 34 updates

Bumps the dev-dependencies group with 34 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@eslint-react/eslint-plugin](https://github.com/Rel1cx/eslint-react/tree/HEAD/plugins/eslint-plugin) | `5.8.7` | `5.9.0` |
| [@playwright/test](https://github.com/microsoft/playwright) | `1.60.0` | `1.61.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `25.9.1` | `25.9.3` |
| [eslint](https://github.com/eslint/eslint) | `10.4.1` | `10.5.0` |
| [prettier](https://github.com/prettier/prettier) | `3.8.3` | `3.8.4` |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `8.60.0` | `8.61.1` |
| [@stylexjs/babel-plugin](https://github.com/facebook/stylex) | `0.18.3` | `0.19.0` |
| [@stylexjs/postcss-plugin](https://github.com/facebook/stylex) | `0.18.3` | `0.19.0` |
| [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) | `4.3.0` | `4.3.1` |
| [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) | `4.3.0` | `4.3.1` |
| @stylexjs/unplugin | `0.18.3` | `0.19.0` |
| [@tailwindcss/vite](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-vite) | `4.3.0` | `4.3.1` |
| [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/docs) | `10.4.1` | `10.4.6` |
| [@storybook/addon-links](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/links) | `10.4.1` | `10.4.6` |
| [@storybook/react](https://github.com/storybookjs/storybook/tree/HEAD/code/renderers/react) | `10.4.1` | `10.4.6` |
| [@storybook/react-vite](https://github.com/storybookjs/storybook/tree/HEAD/code/frameworks/react-vite) | `10.4.1` | `10.4.6` |
| [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/core) | `10.4.1` | `10.4.6` |
| [@radix-ui/react-avatar](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/avatar) | `1.1.11` | `1.2.0` |
| [@radix-ui/react-checkbox](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/checkbox) | `1.3.3` | `1.3.5` |
| [@radix-ui/react-dialog](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/dialog) | `1.1.15` | `1.1.17` |
| [@radix-ui/react-dropdown-menu](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/dropdown-menu) | `2.1.16` | `2.1.18` |
| [@radix-ui/react-hover-card](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/hover-card) | `1.1.15` | `1.1.17` |
| [@radix-ui/react-label](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/label) | `2.1.8` | `2.1.10` |
| [@radix-ui/react-popover](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/popover) | `1.1.15` | `1.1.17` |
| [@radix-ui/react-progress](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/progress) | `1.1.8` | `1.1.10` |
| [@radix-ui/react-scroll-area](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/scroll-area) | `1.2.10` | `1.2.12` |
| [@radix-ui/react-select](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/select) | `2.2.6` | `2.3.1` |
| [@radix-ui/react-separator](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/separator) | `1.1.8` | `1.1.10` |
| [@radix-ui/react-slider](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/slider) | `1.3.6` | `1.4.1` |
| [@radix-ui/react-slot](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/slot) | `1.2.4` | `1.3.0` |
| [@radix-ui/react-switch](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/switch) | `1.2.6` | `1.3.1` |
| [@radix-ui/react-tabs](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/tabs) | `1.1.13` | `1.1.15` |
| [@radix-ui/react-tooltip](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/tooltip) | `1.2.8` | `1.2.10` |
| [tsx](https://github.com/privatenumber/tsx) | `4.22.3` | `4.22.4` |



Updates `@eslint-react/eslint-plugin` from 5.8.7 to 5.9.0
- [Release notes](https://github.com/Rel1cx/eslint-react/releases)
- [Changelog](https://github.com/Rel1cx/eslint-react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Rel1cx/eslint-react/commits/v5.9.0/plugins/eslint-plugin)

Updates `@playwright/test` from 1.60.0 to 1.61.0
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](microsoft/playwright@v1.60.0...v1.61.0)

Updates `@types/node` from 25.9.1 to 25.9.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `eslint` from 10.4.1 to 10.5.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](eslint/eslint@v10.4.1...v10.5.0)

Updates `prettier` from 3.8.3 to 3.8.4
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@3.8.3...3.8.4)

Updates `typescript-eslint` from 8.60.0 to 8.61.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.61.1/packages/typescript-eslint)

Updates `@stylexjs/babel-plugin` from 0.18.3 to 0.19.0
- [Release notes](https://github.com/facebook/stylex/releases)
- [Changelog](https://github.com/facebook/stylex/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/stylex/commits/0.19.0)

Updates `@stylexjs/postcss-plugin` from 0.18.3 to 0.19.0
- [Release notes](https://github.com/facebook/stylex/releases)
- [Changelog](https://github.com/facebook/stylex/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/stylex/commits/0.19.0)

Updates `@tailwindcss/postcss` from 4.3.0 to 4.3.1
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.1/packages/@tailwindcss-postcss)

Updates `tailwindcss` from 4.3.0 to 4.3.1
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.1/packages/tailwindcss)

Updates `@stylexjs/unplugin` from 0.18.3 to 0.19.0

Updates `@tailwindcss/vite` from 4.3.0 to 4.3.1
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.1/packages/@tailwindcss-vite)

Updates `@storybook/addon-docs` from 10.4.1 to 10.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.4.6/code/addons/docs)

Updates `@storybook/addon-links` from 10.4.1 to 10.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.4.6/code/addons/links)

Updates `@storybook/react` from 10.4.1 to 10.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.4.6/code/renderers/react)

Updates `@storybook/react-vite` from 10.4.1 to 10.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.4.6/code/frameworks/react-vite)

Updates `storybook` from 10.4.1 to 10.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.4.6/code/core)

Updates `@radix-ui/react-avatar` from 1.1.11 to 1.2.0
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/avatar/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/avatar)

Updates `@radix-ui/react-checkbox` from 1.3.3 to 1.3.5
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/checkbox/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/checkbox)

Updates `@radix-ui/react-dialog` from 1.1.15 to 1.1.17
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/dialog/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/dialog)

Updates `@radix-ui/react-dropdown-menu` from 2.1.16 to 2.1.18
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/dropdown-menu/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/dropdown-menu)

Updates `@radix-ui/react-hover-card` from 1.1.15 to 1.1.17
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/hover-card/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/hover-card)

Updates `@radix-ui/react-label` from 2.1.8 to 2.1.10
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/label/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/label)

Updates `@radix-ui/react-popover` from 1.1.15 to 1.1.17
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/popover/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/popover)

Updates `@radix-ui/react-progress` from 1.1.8 to 1.1.10
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/progress/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/progress)

Updates `@radix-ui/react-scroll-area` from 1.2.10 to 1.2.12
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/scroll-area/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/scroll-area)

Updates `@radix-ui/react-select` from 2.2.6 to 2.3.1
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/select/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/select)

Updates `@radix-ui/react-separator` from 1.1.8 to 1.1.10
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/separator/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/separator)

Updates `@radix-ui/react-slider` from 1.3.6 to 1.4.1
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/slider/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/slider)

Updates `@radix-ui/react-slot` from 1.2.4 to 1.3.0
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/slot/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/slot)

Updates `@radix-ui/react-switch` from 1.2.6 to 1.3.1
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/switch/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/switch)

Updates `@radix-ui/react-tabs` from 1.1.13 to 1.1.15
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/tabs/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/tabs)

Updates `@radix-ui/react-tooltip` from 1.2.8 to 1.2.10
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/tooltip/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/tooltip)

Updates `tsx` from 4.22.3 to 4.22.4
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](privatenumber/tsx@v4.22.3...v4.22.4)

---
updated-dependencies:
- dependency-name: "@eslint-react/eslint-plugin"
  dependency-version: 5.9.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@playwright/test"
  dependency-version: 1.61.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@types/node"
  dependency-version: 25.9.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: eslint
  dependency-version: 10.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: prettier
  dependency-version: 3.8.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: typescript-eslint
  dependency-version: 8.61.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@stylexjs/babel-plugin"
  dependency-version: 0.19.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@stylexjs/postcss-plugin"
  dependency-version: 0.19.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.3.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: tailwindcss
  dependency-version: 4.3.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@stylexjs/unplugin"
  dependency-version: 0.19.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@tailwindcss/vite"
  dependency-version: 4.3.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@storybook/addon-docs"
  dependency-version: 10.4.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@storybook/addon-links"
  dependency-version: 10.4.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@storybook/react"
  dependency-version: 10.4.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@storybook/react-vite"
  dependency-version: 10.4.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: storybook
  dependency-version: 10.4.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-avatar"
  dependency-version: 1.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-checkbox"
  dependency-version: 1.3.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-dialog"
  dependency-version: 1.1.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-dropdown-menu"
  dependency-version: 2.1.18
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-hover-card"
  dependency-version: 1.1.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-label"
  dependency-version: 2.1.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-popover"
  dependency-version: 1.1.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-progress"
  dependency-version: 1.1.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-scroll-area"
  dependency-version: 1.2.12
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-select"
  dependency-version: 2.3.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-separator"
  dependency-version: 1.1.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-slider"
  dependency-version: 1.4.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-slot"
  dependency-version: 1.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-switch"
  dependency-version: 1.3.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-tabs"
  dependency-version: 1.1.15
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: "@radix-ui/react-tooltip"
  dependency-version: 1.2.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: tsx
  dependency-version: 4.22.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix(lint): address updated eslint rules

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cixzhang <[email protected]>

* fix(Icon,InputGroup): forward rest props in string mode and InputGroupText (#2885)

XDSIcon string mode (registry icons) silently dropped props like
data-testid, className, and event handlers that were accepted by the
interface. Forward them to the wrapper span.

XDSInputGroupText extended XDSBaseProps but only destructured ref,
children, xstyle, className, style. Rest props (data-*, aria-*, id,
event handlers) were silently dropped. Add ...rest forwarding.

* fix(vibe-tests): add event handler guidance and import paths to READMEs (#2841)

* fix(vibe-tests): add event handler guidance and import paths to READMEs

Vibe test nightly showed agents consistently using onPress (React Native
pattern) instead of onClick, and importing ToggleButton/Theme from wrong
paths. Updated both XDS and XDS+TW project READMEs to:

- Clarify that XDS uses React DOM event handlers (onClick, not onPress)
- Show correct import paths for ToggleButton and Theme components
- Add explicit warning against React Native patterns

These are setup fairness improvements — baseline agents can read component
source to discover event patterns, but XDS agents must rely on CLI docs
or project README.

* docs(vibe-tests): broaden event handler guidance

---------

Co-authored-by: Cindy Zhang <[email protected]>

* fix(docsite): resolve DateInput status preview props (#2829)

* fix(typeahead): guard selected state for missing ids (#2828)

* fix(deps): resolve esbuild vulnerability via pnpm override (#2837)

* feat(docsite): add human-authored blog scaffold (#2909)

* fix(core): remove redundant React HTMLAttributes popover augmentation (#2921)

@types/[email protected] already declares popover/popoverTarget/popoverTargetAction
on HTMLAttributes<T> (with the same 'auto'|'manual'|'hint'|'' values), so the
module augmentation in useXDSLayer.tsx merged an already-present member and was a
no-op. Removed it; popover now resolves to the upstream definition. Typecheck and
lint pass.

* feat(docsite): add custom 404 page with header and footer (#2899)

* feat(docsite): add custom 404 page with header and footer

The docsite had no custom not-found boundary, so Next.js rendered its
bare default 404 outside the site shell. Add an App Router not-found.tsx
that reconstructs the same XDSAppShell + SharedTopNav + SiteFooter used by
the (site) layout, with the 404 message centered between the header and
footer via XDSCenter.

Co-authored-by: Navi <[email protected]>

* fix(docsite): route invalid paths to 404 and fix 404 layout

Three fixes for the custom 404 page:

1. Invalid URLs now reach the 404 page. The root [transport] catch-all
   (MCP handler) greedily matched every single-segment path and returned
   mcp-handler's bare 'Not found', bypassing the not-found boundary. Pin
   the valid transports (mcp/sse/message) via generateStaticParams and set
   dynamicParams=false so other paths fall through to not-found.tsx.

2. Subheading is no longer bold — XDSText type 'large' is semibold; switch
   to 'body' for the default normal weight.

3. Content is now centered in the available space with the footer pinned
   to the bottom. Use AppShell height='fill' (definite 100dvh root) and a
   full-height flex column so the centered message fills the space between
   header and footer instead of pushing the footer off-screen.

Co-authored-by: Navi <[email protected]>

* chore(docsite): trim explanatory comments on 404 page

Co-authored-by: Navi <[email protected]>

* fix(docsite): move MCP route to /mcp so invalid paths hit the 404

The previous dynamicParams=false approach on the [transport] catch-all
worked in dev but not in production: Next.js still invoked the route
handler for every single-segment path, so mcp-handler returned its bare
'Not found' instead of falling through to not-found.tsx.

The MCP server only serves /mcp (SSE is disabled and only /mcp is
advertised), so the dynamic [transport] segment was unnecessarily greedy.
Move the handler to a static app/mcp/route.ts. Non-MCP paths now match no
route handler and render the styled 404. Verified against a production
build: /random, /foobar, etc. return the full 404 shell, and POST /mcp
still serves initialize + tools/list.

Co-authored-by: Navi <[email protected]>

---------

Co-authored-by: Navi <[email protected]>

* refactor(core): unprefix the DateRange type export (#2922)

DateRange is bare everywhere it is defined and consumed (utils/dateTypes.ts,
@xds/core/utils, @xds/core/Calendar) — the lone outlier was DateRangeInput,
which re-exported it as XDSDateRange. Align the naming: re-export it bare as
DateRange to match the other date types (ISODateString, DayOfWeek, PlainDate).

Multiple re-export paths are fine since they all trace to the single
dateTypes.ts definition; this only fixes the inconsistent NAME.

- DateRangeInput: re-export {DateRange} (was {DateRange as XDSDateRange})
- index barrel + the 3 in-repo consumers (storybook story, showcase template,
  component test) updated to the bare name.

Note: XDSDateRangePreset is intentionally left prefixed for now — unprefixing
it to DateRangePreset would collide with PowerSearch's unrelated bare
DateRangePreset at the root @xds/core barrel (TS2308). Tracked separately.

* fix(core): use solid fill for default info status icon (#2902)

The default info icon used a 1.5px outline (svgProps) while success,
error, and warning used solid fills (solidSvgProps). This made info
visually inconsistent in XDSBanner and other status surfaces.

Replace info with a solid filled circle and a cut-out 'i' glyph using
fillRule/clipRule, matching the other status icons. Update the file
header to list info among the solid-fill status icons.

Fixes #2678

* fix(checkbox-list): add visual loading feedback for isLoading (#2903)

* fix(checkbox-list): add visual loading feedback for isLoading

CheckboxList accepted isLoading and set aria-busy + blocked interaction
but provided no visible feedback, despite JSDoc claiming items show
reduced opacity. Dim items (opacity 0.5, matching the disabled-content
pattern) and set cursor: progress when the group is busy, and correct
the JSDoc/component docs to match the implemented behavior.

Fixes #2688

* refactor(checkbox-list): tighten comments and test from self-review

* fix(docsite): bridge controlled component callbacks in interactive preview (#2716) (#2904)

* fix(docsite): bridge controlled component callbacks in interactive preview (#2716)

The interactive Properties preview rendered controlled components with
noop callbacks, so user interaction never updated the preview. Clicking a
Pagination page (page/onChange) or changing variants did nothing because
onChange was () => {}.

buildRuntimePreviewState now detects change handlers (onChange,
on{Prop}Change) whose first parameter name matches a value prop in state
and wires them to update that prop via onPropChange. This generalizes the
existing isOpen/onOpenChange bridge to page/onChange, value/onChange,
pageSize/onPageSizeChange, etc. The isOpen pair stays gated behind the
explicit canControlOpenState opt-in.

Also adds a playground config to Pagination.doc.mjs so the preview starts
on a real page with a known total instead of page 0.

* docs(docsite): tighten comments on preview callback bridging

* fix(button): use inherit shade for loading spinner contrast (#2900)

The button hardcoded the destructive/primary loading spinner to
shade="onMedia" (white), which vanished on themes that render
destructive as a muted light-red fill (e.g. the neutral theme). It also
hid the loading label via color: transparent on the button itself, which
themed color overrides defeated — leaking the label through on
destructive.

Add a shade="inherit" option to XDSSpinner that paints the ring from the
inherited currentColor (with a translucent track), so it always matches
the parent's resolved foreground regardless of theme or variant. XDSButton
now uses shade="inherit" for all variants and hides its content via the
content wrapper (not the button), so the spinner overlay inherits the true
variant foreground while the label hides correctly.

Fixes #2717

* docs(dense): fix bestPractices count parity for Text (#2912)

Text had 9 English bestPractices but only 8 dense entries.
Added the missing 9th entry (XDSText for headings: use XDSHeading).

Found during Night Watch doc review.

* fix(docsite): wrap context-dependent sub-components in preview (#2766) (#2906)

Sub-components like XDSTab call useXDSTabListContext() and throw when
the interactive preview renders them standalone via createElement, which
the PreviewErrorBoundary surfaces as 'Render error'.

Add a playground.wrapper config ({ component, props? }) so a doc can
declare the parent provider its sub-component requires. InteractivePreviewStage
now wraps the previewed component in that parent before rendering, injecting
a no-op onChange (parents require it and functions can't survive the JSON
registry serialization).

Declare wrappers for the affected sub-components: Tab (XDSTabList),
SegmentedControlItem (XDSSegmentedControl), and RadioListItem (XDSRadioList).

* docs(slop): source-code AI-slop cleanup, pass 1 of 2 (30 files) (#2868)

* docs(slop): AboutShowcase.tsx - em-dash (1)

* docs(slop): DiscoverShowcase.tsx - em-dash (1)

* docs(slop): FeaturesShowcase.tsx - curly-apostrophe (1)

* docs(slop): ThemingShowcase.tsx - em-dash+buzzword (1)

* docs(slop): route.ts - em-dash (1)

* docs(slop): page.tsx - em-dash (1)

* docs(slop): page.tsx - em-dash (1)

* docs(slop): page.tsx - em-dash (1)

* docs(slop): App.tsx - em-dash (1)

* docs(slop): page.tsx - em-dash (3)

* docs(slop): page.tsx - em-dash (1)

* docs(slop): page.tsx - em-dash (1)

* docs(slop): page.tsx - em-dash (1)

* docs(slop): page.tsx - em-dash (2)

* docs(slop): page.tsx - em-dash (1)

* docs(slop): page.tsx - em-dash (1)

* docs(slop): page.tsx - em-dash (1)

* docs(slop): page.tsx - buzzword (1)

* docs(slop): page.tsx - em-dash (1)

* docs(slop): ThemePalettePreview.tsx - em-dash (1)

* docs(slop): ThemeAuditDrawer.tsx - em-dash (1)

* docs(slop): Banner.stories.tsx - em-dash (1)

* docs(slop): ChartStreamGL.stories.tsx - em-dash (1)

* docs(slop): ClickableCard.stories.tsx - em-dash (4)

* docs(slop): Collapsible.stories.tsx - em-dash (1)

* docs(slop): DateInput.stories.tsx - em-dash (1)

* docs(slop): Grid.stories.tsx - em-dash (1)

* docs(slop): Layer.stories.tsx - em-dash (1)

* fix(core): center XDSSpinner in icon-only button loading state (#2905)

The loading spinner in icon-only XDSButton rendered offset toward the
top-left instead of centered. Root cause: XDSSpinner sized its canvas
backing store from the device pixel ratio and then set the canvas CSS
size to frameSize/dpr. At fractional pixel ratios (e.g. 1.5) this CSS
size (14.67px for size=sm) exceeded the wrapping span's logical size
(14px) which has overflow: hidden, so the canvas was clipped
asymmetrically from the bottom-right and the ring shifted up-left.

- Pin the canvas CSS layout size to the logical dimensions
  (diameter + border*2) so it always fills its wrapper exactly and
  never overflows. The backing store stays HiDPI-crisp; the draw scale
  is derived from the actual backing size so geometry stays centered.
- Center the canvas within its span via inline-grid + place-items.
- Switch the button loading overlay to display: grid + place-items:
  center for sub-pixel-stable centering inside the aspect-ratio box.

Fixes #2732

* refactor(PowerSearch): rename preset types to *FilterPreset (#2925)

* refactor(PowerSearch): rename preset types to *FilterPreset

Renames PowerSearch's DateRangePreset -> DateRangeFilterPreset and
RelativeDatePreset -> RelativeDateFilterPreset. These are preset OPTIONS for a
filter, so the *FilterPreset suffix reads clearly and scopes them to
PowerSearch.

Primary motivation: PowerSearch's bare DateRangePreset ({label, value:
DateTimeRange}) collided at the root @xds/core barrel with the calendar
range-picker's preset type (currently XDSDateRangePreset, {label, getRange}).
Freeing the bare DateRangePreset name unblocks unprefixing the calendar type
(see #2923; follow-up PR).

Scope: 6 refs across 2 files (the interface defs + PowerSearchConfig field
types + barrel exports). Zero fbsource consumers of these types. No behavior
change.

* refactor(core): unprefix DateRangeInput's preset type (#2926)

Renames XDSDateRangePreset -> DateRangePreset in DateRangeInput, aligning it
with the other bare date types (DateRange, ISODateString, DayOfWeek). Built on
top of the PowerSearch *FilterPreset rename, which freed the bare
DateRangePreset name at the root @xds/core barrel (previously PowerSearch
exported an unrelated bare DateRangePreset -> TS2308; see #2923).

- XDSDateRangeInput.tsx: interface DateRangePreset (was XDSDateRangePreset) +
  internal usages
- index.ts barrel + DateRangeInput.doc.mjs prop type updated to the bare name

Note: XDSDateRange (the range value type) is unprefixed separately in #2922.

* fix(cli): correct Breadcrumbs and Theme docs from vibe test 2026-06-18 (#2914)

* fix(checkbox-list): make loading per-item with in-checkbox spinner (#2929)

* fix(docsite): eliminate flash of light theme on dark-mode load (#2713) (#2907)

* feat(field): add width prop to field-based components (#2755) (#2908)

* docs(dense): remove duplicate (required) markers from translation overlays (#2935)

* fix(core): add missing displayName, export, and escape hatches (#2936)

- XDSLinkProvider: add displayName for React DevTools visibility
- InteractiveRoleContext: export from src/index.ts (matches SizeContext pattern)
- XDSMoreMenu: accept xstyle/className/style via Pick<XDSBaseProps, ...>

* fix(cli): correct theme import path in init next-steps (#2915)

The 'xds init' command's next-steps output instructed users to import
from '@xds/theme/default', but the published package is '@xds/theme-default'.
The slash form does not resolve to a real package, so anyone following the
suggested import would hit a module-not-found error.

Align with every other reference across the CLI docs (theme.doc.mjs,
migration.doc.mjs, styling*.doc.mjs, getting-started.doc.mjs) which all use
the '@xds/theme-default' hyphenated package name.

* fix(cli): stop rendering 'undefined' for bare sub-component doc entries (#2918)

In `xds component <Name>`, multi-component docs render each sub-component as a
`### Name` block. Sub-components are often declared as a bare reference, e.g.
`{name: 'XDSRadioListItem'}`, with their description/props living in their own
.doc.mjs. The formatter did:

  sections.push(comp.description + '\n');        // undefined + '\n' => 'undefined'
  sections.push(formatPropsTable(comp.props));   // '' (handled)

so any bare sub-component printed a literal 'undefined' with no props. This hit
26 component docs (Text→XDSHeading, RadioList→XDSRadioListItem, Table, SideNav,
Dialog, etc.) and was flagged by vibe-test agents reading XDSHeading / RadioList
docs.

Fix: a formatSubComponent() helper that emits the description only when present,
and when there are no inline props points the reader at the sub-component's own
docs (`See xds component <Name>`) instead of a blank/undefined block. Used at
both the formatFull multi-component render sites.

Adds unit tests for both paths (bare {name} reference -> pointer, no
'undefined'; sub-component with inline props -> full table).

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: rubyycheung <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cindy Zhang <[email protected]>
Co-authored-by: Cindy Zhang <[email protected]>
Co-authored-by: Joey <[email protected]>
Co-authored-by: Kenton Quatman <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Navi <[email protected]>
@cixzhang
cixzhang deleted the navi/fix/theme-flash-2713 branch June 21, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [bug-bash] Flash of light theme when loading the page in dark theme

1 participant