Skip to content

(WIP) RFC: Bring the CAP visual language into Fluent UI v9#36309

Open
GianoglioEnrico wants to merge 5 commits into
microsoft:masterfrom
GianoglioEnrico:feat/rfc-cap-into-fluent-ui-v9
Open

(WIP) RFC: Bring the CAP visual language into Fluent UI v9#36309
GianoglioEnrico wants to merge 5 commits into
microsoft:masterfrom
GianoglioEnrico:feat/rfc-cap-into-fluent-ui-v9

Conversation

@GianoglioEnrico

@GianoglioEnrico GianoglioEnrico commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Overview

Proposes making the CAP visual language a first-class part of Fluent UI v9: consumers opt in via @fluentui/react-components alone (no @fluentui-contrib/* dependency), CAP source lives in the Fluent monorepo, and CAP is discoverable on the docs site as a visual-language picker alongside the theme picker.

Implementation tracked in #36308 .

What's in this RFC

A phased move of CAP_STYLE_HOOKS from fluentui-contrib into Fluent v9:

  • Phase 1 — re-export. @fluentui/react-components adds the contrib package as an internal dependency and re-exports CAP_STYLE_HOOKS from the main barrel. Consumers drop @fluentui-contrib/* from package.json and write import { CAP_STYLE_HOOKS } from '@fluentui/react-components'.
  • Phase 2 — move source. A new packages/react-components/react-cap-theme/ package owns CAP inside the monorepo, on Fluent's release cadence, gated by Fluent's CI (bundle size, VR, conformance). Contrib becomes a deprecated re-export shim.

What I'm asking reviewers to decide

The RFC closes with the following open questions:

  • Skip Phase 1 entirely? Collapse Phase 1+2 into a single @fluentui/react-cap-theme-preview move?
  • Distribution shape — confirm main-barrel re-export over subpath or separate preview package.
  • Docs-site toggle UX — does docs-site en

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@github-actions

Copy link
Copy Markdown

Pull request demo site: URL

@GianoglioEnrico GianoglioEnrico changed the title RFC: Bring the CAP visual language into Fluent UI v9 (WIP) RFC: Bring the CAP visual language into Fluent UI v9 Jun 15, 2026
@GianoglioEnrico GianoglioEnrico self-assigned this Jun 15, 2026
@GianoglioEnrico GianoglioEnrico marked this pull request as ready for review June 18, 2026 16:41
@GianoglioEnrico GianoglioEnrico requested review from a team as code owners June 18, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: RFC Request for Feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant