Skip to content

CAP foundations migration#618

Draft
NataliaBar wants to merge 17 commits intomicrosoft:mainfrom
NataliaBar:ds-migration
Draft

CAP foundations migration#618
NataliaBar wants to merge 17 commits intomicrosoft:mainfrom
NataliaBar:ds-migration

Conversation

@NataliaBar
Copy link
Contributor

@NataliaBar NataliaBar commented Mar 16, 2026

feat(cap-foundations): port design system core (Phases 0–5)

Migrates the Cap design system from ai-experiments into fluentui-contrib as packages/cap-foundations/core (@fluentui-contrib/cap-foundations-core).

What's included:

  • Workspace setup — new packages/cap-foundations/ umbrella with Nx project cap-foundations-core, Yarn workspace registration, and tsconfig path alias
  • Static tokens — spacing (4px grid), typography, radii, shadows, animation, and gradient tokens
  • Color utilities & surfacesgenerateSurfaceColors, injectSurfaceStyles, 32 preset dynamic surfaces, surface type definitions; 28 Jest tests (4 skipped in Node env)
  • Theme generation pipelinegenerator.ts, theme-rules.json, default light/dark theme definitions, build-themes Nx target (outputs dist/themes/*.css + manifest)
  • Runtime bootstrap — SSR-safe CapFoundations API (setTheme, getTheme, subscribe, configure), inline-bootstrap HTML generator, build-bootstrap Nx target (outputs dist/bootstrap.js 12 KB + minified 7.7 KB)
  • Documentation & AI agents — TOKEN_GUIDE.md, TOKEN_CHEATSHEET.md, CLAUDE.md, coding-conventions.md, and three Claude agent files (ui-token-auditor, react-component-architect, ui-design-systems-expert)

All browser globals are guarded for SSR safety. Build, type-check, and test targets pass.

@NataliaBar NataliaBar changed the title Ds migration CAP foundations migration Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants