/fluent-ui-design:Fluent-UI-Extensibility---Migrationfrom fluent-ui-design
Customizing Fluent UI React v9 via slots (4 customization levels), custom variants, customStyleHooks, headless/unstyled patterns, and v8-to-v9 migration with incremental coexistence.
Ships in fluent-ui-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Fluent UI React v9 follows a composition over configuration philosophy. Rather than exposing hundreds of props on monolithic components, v9 decomposes each component into slots — named sub-parts that can be individually customized, replaced, or removed. This architecture delivers several advantages:
The extensibility model spans four key areas:
| Area | Use Case |
|---|---|
| Slots | Customize any sub-part of a component |
| Custom Variants | Create reusable pre-configured component flavors |
| customStyleHooks | Inject styles into Fluent components from outside |
| Custom Components | Author new components using Fluent's composition primitives |
Key resources:
Slots are the primary extensibility mechanism in Fluent UI v9. Every component is built from named slots — sub-parts that you can customize at four progressively deeper levels. Paul Gildea's definitive guide covers these patterns in detail: https://dev.to/paulgildea/using-slots-with-fluent-ui-react-v9-jf1
A typical Fluent v9 component exposes its slots as typed props. For example, Button has:
type ButtonSlots = {
root: Slot<'button', 'a'>; // The outer element
icon?: Slot<'span'>; // Optional icon wrapper
};
Each slot can accept JSX content, a props object, a render function, or null to suppress it.
The component resolves slots through the resolveShorthand utility, which normalizes all these
forms into a consistent internal representation.
The simplest form — pass JSX children directly to a slot prop.
import { Button } from '@fluentui/react-components';
import { CalendarMonthRegular } from '@fluentui/react-icons';
// Pass an icon component to the `icon` slot
<Button icon={<CalendarMonthRegular />}>
Schedule
</Button>
Rendered HTML:
<button class="fui-Button" type="button">
<span class="fui-Button__icon">
<svg><!-- CalendarMonthRegular SVG --></svg>
</span>
Schedule
</button>
This works because the slot system wraps your JSX content in the slot's default element
(<span> for the icon slot). You control what goes inside; Fluent controls the wrapper.
Pass a props object to control attributes on the slot's DOM element.
<Button
icon={{
children: <CalendarMonthRegular />,
className: 'my-custom-icon',
'aria-hidden': true,
style: { color: 'red' },
}}
>
Schedule
</Button>
Rendered HTML:
<button class="fui-Button" type="button">
<span class="fui-Button__icon my-custom-icon" aria-hidden="true" style="color: red;">
<svg><!-- CalendarMonthRegular SVG --></svg>
</span>
Schedule
</button>
The props are spread onto the slot's wrapper element, giving you control over className, style, ARIA attributes, event handlers, data attributes, and any valid HTML attribute.
Change the underlying HTML element of a slot using the as prop within the slot object.
<Button
icon={{
as: 'div',
children: <CalendarMonthRegular />,
}}
>
Schedule
</Button>
Rendered HTML:
<button class="fui-Button" type="button">
<div class="fui-Button__icon">
<svg><!-- CalendarMonthRegular SVG --></svg>
</div>
Schedule
</button>
The root slot of Button supports as: 'a' to render as an anchor:
<Button as="a" href="https://example.com">
Visit Site
</Button>
Rendered HTML:
<a class="fui-Button" href="https://example.com">
Visit Site
</a>
Not all slots support all element types — the Slot<'button', 'a'> generic constrains
which elements are valid. TypeScript will flag invalid element types at compile time.
Complete control over how a slot renders. Pass a children render function that receives
the component type and props, then return whatever JSX you want.
import { Tooltip, Button } from '@fluentui/react-components';
import { CalendarMonthRegular } from '@fluentui/react-icons';
<Button
icon={{
children: (Component, props) => (
<Tooltip content="Pick a date" relationship="label">
<Component {...props}>
<CalendarMonthRegular />
</Component>
</Tooltip>
),
}}
>
Schedule
</Button>
Rendered HTML (when tooltip is shown):
<button class="fui-Button" type="button">
<span class="fui-Button__icon" aria-describedby="tooltip-1">
<svg><!-- CalendarMonthRegular SVG --></svg>
</span>
Schedule
</button>
<!-- Tooltip portal -->
<div role="tooltip" id="tooltip-1" class="fui-Tooltip">Pick a date</div>
The render function pattern is essential for wrapping slots in other Fluent components (Tooltip, Popover) or injecting context providers around individual slots.
Set any optional slot to null to suppress it entirely:
// Button with no icon slot rendered
<Button icon={null}>Just Text</Button>
When multiple customization forms overlap, the resolution priority is:
children as function) — highest priorityVariants are pre-configured flavors of a component. Rather than repeating the same set of props everywhere, you wrap them in a component. Paul Gildea outlines three approaches: https://dev.to/paulgildea/creating-custom-variants-with-fluent-ui-react-v9-26a1
The lightest approach — create a makeStyles class and apply it alongside the component's
existing classes using mergeClasses.
import { Button, makeStyles, mergeClasses, tokens } from '@fluentui/react-components';
import type { ButtonProps } from '@fluentui/react-components';
const useStyles = makeStyles({
danger: {
backgroundColor: tokens.colorPaletteRedBackground3,
color: tokens.colorNeutralForegroundOnBrand,
':hover': {
backgroundColor: tokens.colorPaletteRedForeground1,
},
':active': {
backgroundColor: tokens.colorPaletteRedForeground2,
},
},
});
const DangerButton: React.FC<ButtonProps> = ({ className, ...props }) => {
const styles = useStyles();
return (
<Button
{...props}
className={mergeClasses(styles.danger, className)}
/>
);
};
When to use: Visual-only changes. No behavior modification needed. The variant is purely about applying different design tokens or spacing.
A component that forces specific props, preventing the consumer from overriding them.
import { Button } from '@fluentui/react-components';
import { DeleteRegular } from '@fluentui/react-icons';
import type { ButtonProps } from '@fluentui/react-components';
type DeleteButtonProps = Omit<ButtonProps, 'appearance' | 'icon'>;
const DeleteButton: React.FC<DeleteButtonProps> = (props) => {
return (
<Button
{...props}
appearance="primary"
icon={<DeleteRegular />}
/>
);
};
When to use: Enforcing consistent behavior across a codebase. The fixed props come after
{...props} to ensure they cannot be overridden by the consumer.
A component that applies default styles but allows the consumer to extend or override them.
import { Button, makeStyles, mergeClasses, tokens } from '@fluentui/react-components';
import type { ButtonProps } from '@fluentui/react-components';
const useStyles = makeStyles({
brandAccent: {
backgroundColor: tokens.colorBrandBackground,
color: tokens.colorNeutralForegroundOnBrand,
borderRadius: tokens.borderRadiusCircular,
':hover': {
backgroundColor: tokens.colorBrandBackgroundHover,
},
},
});
type BrandPillButtonProps = ButtonProps & {
variant?: 'default' | 'accent';
};
const BrandPillButton: React.FC<BrandPillButtonProps> = ({
className,
variant = 'accent',
...props
}) => {
const styles = useStyles();
return (
<Button
{...props}
className={mergeClasses(
variant === 'accent' && styles.brandAccent,
className // Consumer's className wins (comes last)
)}
/>
);
};
When to use: Providing a default look that consumers can still customize. The consumer's
className is passed last to mergeClasses, so it takes precedence.
The Fluent storybook covers additional techniques: https://storybooks.fluentui.dev/react/?path=/docs/concepts-developer-advanced-styling-techniques--docs
Key patterns include:
mergeClasses to combine Fluent's internal
classes with your overrides. Never replace className directly.mergeClasses with conditional expressions:
className={mergeClasses(styles.base, isActive && styles.active)}
makeStyles supports media queries:
const useStyles = makeStyles({
responsive: {
width: '100%',
'@media (min-width: 768px)': {
width: '50%',
},
},
});
makeStyles.The customStyleHooks API on FluentProvider allows external systems (design systems built
on top of Fluent, theme packages, branding layers) to inject styles into Fluent components
without wrapping or modifying them.
FluentProvider accepts a customStyleHooks_unstable prop that maps component display names
to style hooks:
import {
FluentProvider,
webLightTheme,
makeStyles,
mergeClasses,
} from '@fluentui/react-components';
import type { ButtonState } from '@fluentui/react-components';
const useCustomButtonStyles = makeStyles({
root: {
borderRadius: '9999px',
textTransform: 'uppercase',
letterSpacing: '0.05em',
},
});
function useButtonStyleOverride(state: ButtonState): void {
const styles = useCustomButtonStyles();
state.root.className = mergeClasses(
state.root.className,
styles.root
);
}
function App() {
return (
<FluentProvider
theme={webLightTheme}
customStyleHooks_unstable={{
useButtonStyles_unstable: useButtonStyleOverride,
}}
>
{/* All Buttons in this tree will have pill shape + uppercase */}
<Button>I am styled by the provider</Button>
</FluentProvider>
);
}
Each Fluent component exports a use<Component>Styles_unstable hook. The customStyleHooks
map keys match these names:
| Component | Hook Key |
|---|---|
| Button | useButtonStyles_unstable |
| Input | useInputStyles_unstable |
| Card | useCardStyles_unstable |
| Dialog | useDialogStyles_unstable |
| Menu | useMenuStyles_unstable |
| Tooltip | useTooltipStyles_unstable |
| Popover | usePopoverStyles_unstable |
| (all others) | use<ComponentName>Styles_unstable |
_unstable suffix — This API is marked unstable and may change between minor versions.
Monitor the Fluent UI changelog when upgrading.mergeClasses to combine cleanly.appearance, size, or disabled.function useButtonStyleOverride(state: ButtonState): void {
const styles = useCustomButtonStyles();
// Only apply custom styles to primary buttons
if (state.appearance === 'primary') {
state.root.className = mergeClasses(
state.root.className,
styles.primaryOverride
);
}
}
The Fluent UI team has discussed headless (unstyled) component support in GitHub issue #35562: https://github.com/microsoft/fluentui/issues/35562
As of v9, Fluent UI components are not fully headless — they ship with both behavior hooks and default styles. However, the architecture partially supports unstyled usage:
State hooks are separate from styles — Each component has a use<Component>_unstable
hook that returns state without applying styles. You can call this hook and skip the
built-in use<Component>Styles_unstable.
Render functions are separate — render<Component>_unstable takes state and produces
JSX. It does not apply styles — that happens in the style hook.
The composition pattern enables "bring your own styles":
import {
useButton_unstable,
renderButton_unstable,
// Intentionally NOT importing useButtonStyles_unstable
} from '@fluentui/react-components';
const UnstyledButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
(props, ref) => {
const state = useButton_unstable(props, ref);
// Skip: useButtonStyles_unstable(state);
// Apply your own styles instead:
state.root.className = 'my-custom-button';
return renderButton_unstable(state);
}
);
If you need unstyled Fluent components:
customStyleHooks to override styles at the provider level rather than skipping
the style hook entirely.Building new components that integrate with Fluent UI's composition system requires following a three-part pattern. This ensures your component works with slots, theming, and style hooks just like built-in Fluent components.
GitHub discussions:
Every Fluent v9 component is decomposed into three functions:
use<Component>_unstable(props, ref) → State hook (behavior + slot resolution)
use<Component>Styles_unstable(state) → Style hook (makeStyles application)
render<Component>_unstable(state) → Render function (JSX output)
Plus a type definition for the component's slots.
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-components';
// Define the slot structure
type StatusBadgeSlots = {
root: NonNullable<Slot<'div'>>;
icon?: Slot<'span'>;
label?: Slot<'span'>;
indicator: NonNullable<Slot<'span'>>;
};
// Props type — what consumers pass in
type StatusBadgeProps = ComponentProps<StatusBadgeSlots> & {
status?: 'online' | 'away' | 'busy' | 'offline';
size?: 'small' | 'medium' | 'large';
};
// State type — what the hooks work with internally
type StatusBadgeState = ComponentState<StatusBadgeSlots> & {
status: NonNullable<StatusBadgeProps['status']>;
size: NonNullable<StatusBadgeProps['size']>;
};
import { getIntrinsicElementProps, slot } from '@fluentui/react-components';
function useStatusBadge_unstable(
props: StatusBadgeProps,
ref: React.Ref<HTMLDivElement>
): StatusBadgeState {
const { status = 'offline', size = 'medium', ...rest } = props;
const state: StatusBadgeState = {
status,
size,
components: {
root: 'div',
icon: 'span',
label: 'span',
indicator: 'span',
},
root: slot.always(
getIntrinsicElementProps('div', {
ref,
role: 'status',
'aria-label': `Status: ${status}`,
...rest,
}),
{ elementType: 'div' }
),
icon: slot.optional(props.icon, { elementType: 'span' }),
label: slot.optional(props.label, { elementType: 'span' }),
indicator: slot.always(props.indicator, {
defaultProps: { 'aria-hidden': true },
elementType: 'span',
}),
};
return state;
}
Key utilities:
slot.always(value, options) — Slot is always rendered (required slot)slot.optional(value, options) — Slot renders only if the consumer provides contentgetIntrinsicElementProps(tagName, props) — Filters props to only valid HTML attributes
for the given element typeimport { makeStyles, mergeClasses, tokens, shorthands } from '@fluentui/react-components';
const useRootStyles = makeStyles({
base: {
display: 'inline-flex',
alignItems: 'center',
gap: tokens.spacingHorizontalS,
...shorthands.padding(tokens.spacingVerticalXS, tokens.spacingHorizontalS),
...shorthands.borderRadius(tokens.borderRadiusMedium),
backgroundColor: tokens.colorNeutralBackground1,
},
small: { fontSize: tokens.fontSizeBase200 },
medium: { fontSize: tokens.fontSizeBase300 },
large: { fontSize: tokens.fontSizeBase400 },
});
const useIndicatorStyles = makeStyles({
base: {
display: 'inline-block',
width: '8px',
height: '8px',
...shorthands.borderRadius(tokens.borderRadiusCircular),
},
online: { backgroundColor: tokens.colorPaletteGreenForeground1 },
away: { backgroundColor: tokens.colorPaletteYellowForeground1 },
busy: { backgroundColor: tokens.colorPaletteRedForeground1 },
offline: { backgroundColor: tokens.colorNeutralForeground4 },
});
function useStatusBadgeStyles_unstable(state: StatusBadgeState): StatusBadgeState {
const rootStyles = useRootStyles();
const indicatorStyles = useIndicatorStyles();
state.root.className = mergeClasses(
'fui-StatusBadge',
rootStyles.base,
rootStyles[state.size],
state.root.className
);
if (state.indicator) {
state.indicator.className = mergeClasses(
'fui-StatusBadge__indicator',
indicatorStyles.base,
indicatorStyles[state.status],
state.indicator.className
);
}
return state;
}
import { assertSlots } from '@fluentui/react-components';
function renderStatusBadge_unstable(state: StatusBadgeState) {
assertSlots<StatusBadgeSlots>(state);
return (
<state.root>
{state.icon && <state.icon />}
<state.indicator />
{state.label && <state.label />}
</state.root>
);
}
import * as React from 'react';
const StatusBadge = React.forwardRef<HTMLDivElement, StatusBadgeProps>(
(props, ref) => {
const state = useStatusBadge_unstable(props, ref);
useStatusBadgeStyles_unstable(state);
return renderStatusBadge_unstable(state);
}
);
StatusBadge.displayName = 'StatusBadge';
export {
StatusBadge,
useStatusBadge_unstable,
useStatusBadgeStyles_unstable,
renderStatusBadge_unstable,
};
export type { StatusBadgeProps, StatusBadgeState, StatusBadgeSlots };
Exporting all three functions plus types enables consumers to:
Migrating from Fluent UI React v8 (@fluentui/react) to v9 (@fluentui/react-components)
is a significant but incremental process. The two versions can coexist in the same application,
allowing gradual migration.
Paul Gildea's overview: https://dev.to/paulgildea/whats-new-with-fluent-ui-react-v9-5h2d
Key architectural changes:
| Aspect | v8 | v9 |
|---|---|---|
| Package | @fluentui/react (monolith) | @fluentui/react-components (re-exports from granular packages) |
| Styling | mergeStyleSets, CSS-in-JS at runtime | Griffel makeStyles (atomic CSS, build-time extraction) |
| Theming | ThemeProvider + ITheme | FluentProvider + token-based themes |
| DOM weight | Heavier DOM (many wrapper divs) | Lighter DOM (fewer elements) |
| Icons | @fluentui/react-icons-mdl2 (icon fonts) | @fluentui/react-icons (SVG, tree-shakeable) |
| Composition | Props-heavy, render callbacks | Slots, hooks, composition functions |
| Bundle | Large single bundle | Tree-shakeable, granular imports |
| TypeScript | Partial typing | Full strict TypeScript |
Architecture document: https://hackmd.io/@fluentui/HJoyoD1lD
The v9 architecture separates concerns:
use<Component>_unstable)use<Component>Styles_unstable)render<Component>_unstable)This separation enables the extensibility patterns described above.
v9 uses a "diamond dependency" approach where @fluentui/react-components re-exports from
many smaller packages (@fluentui/react-button, @fluentui/react-input, etc.). You should:
@fluentui/react-components — not from individual packages| v8 Component | v9 Component | Notes |
|---|---|---|
DefaultButton | Button | appearance="secondary" (default) |
PrimaryButton | Button | appearance="primary" |
ActionButton | Button | appearance="transparent" |
CommandBarButton | Button | appearance="transparent" |
IconButton | Button | icon={...} with no children |
CompoundButton | CompoundButton | Direct equivalent |
Toggle / ToggleButton | ToggleButton | Uses checked prop |
SplitButton | SplitButton | Simplified API |
MenuButton | MenuButton | Simplified API |
Link | Link | Direct equivalent |
Checkbox | Checkbox | Direct equivalent |
ChoiceGroup | RadioGroup + Radio | Renamed |
TextField | Input | Renamed |
SpinButton | SpinButton | Direct equivalent |
Slider | Slider | Direct equivalent |
Dropdown | Dropdown + Option | New composition pattern |
ComboBox | Combobox + Option | New composition pattern |
DatePicker | DatePicker | From @fluentui/react-datepicker-compat |
DetailsList | DataGrid | Complete rewrite |
Label | Label | Direct equivalent |
Text | Text | Direct equivalent |
Persona | Avatar + Persona | Split into focused components |
Dialog | Dialog + DialogSurface + DialogBody + DialogTitle + DialogContent + DialogActions | Decomposed into slots |
Panel | Drawer / OverlayDrawer | Renamed + redesigned |
Modal | Dialog | With modalType="modal" |
Callout | Popover | Renamed |
TeachingBubble | Popover | With custom content |
Tooltip | Tooltip | Direct equivalent |
ContextualMenu | Menu + MenuTrigger + MenuPopover + MenuList + MenuItem | Decomposed |
CommandBar | Toolbar | Renamed |
Pivot | TabList + Tab | Renamed |
Nav | Nav / NavDrawer | Redesigned |
Breadcrumb | Breadcrumb + BreadcrumbItem + BreadcrumbButton | Decomposed |
MessageBar | MessageBar + MessageBarBody + MessageBarTitle + MessageBarActions | Decomposed |
ProgressIndicator | ProgressBar | Renamed |
Spinner | Spinner | Direct equivalent |
Badge | Badge / CounterBadge / PresenceBadge | Split into variants |
Shimmer | Skeleton | Renamed |
Separator | Divider | Renamed |
Image | Image | Direct equivalent |
Stack | Removed | Use CSS Flexbox/Grid directly |
Text (with variant) | Text / Title1-3 / Subtitle1-2 / Body1-2 / Caption1-2 / LargeTitle | Typography components |
SearchBox | SearchBox | From @fluentui/react-search |
Announced | Removed | Use native aria-live regions |
Layer | Not needed | Portals handled by component internals |
ThemeProvider | FluentProvider | New theming model |
Fabric | FluentProvider | Merged |
// v8
import { DefaultButton, TextField, Dropdown } from '@fluentui/react';
import { initializeIcons } from '@fluentui/react/lib/Icons';
// v9
import {
Button,
Input,
Dropdown,
Option,
FluentProvider,
webLightTheme,
} from '@fluentui/react-components';
// Icons are imported individually (tree-shakeable)
import { SearchRegular, SettingsRegular } from '@fluentui/react-icons';
v8 — mergeStyleSets / mergeStyles:
import { mergeStyleSets } from '@fluentui/react';
const classNames = mergeStyleSets({
root: {
display: 'flex',
padding: '16px',
backgroundColor: '#f3f3f3',
selectors: {
':hover': {
backgroundColor: '#e0e0e0',
},
},
},
title: {
fontSize: '20px',
fontWeight: 600,
color: '#323130',
},
});
// Usage
<div className={classNames.root}>
<span className={classNames.title}>Hello</span>
</div>
v9 — makeStyles + tokens:
import { makeStyles, mergeClasses, tokens } from '@fluentui/react-components';
const useStyles = makeStyles({
root: {
display: 'flex',
padding: tokens.spacingHorizontalL,
backgroundColor: tokens.colorNeutralBackground2,
':hover': {
backgroundColor: tokens.colorNeutralBackground2Hover,
},
},
title: {
fontSize: tokens.fontSizeBase500,
fontWeight: tokens.fontWeightSemibold,
color: tokens.colorNeutralForeground1,
},
});
// Usage
const MyComponent = () => {
const styles = useStyles();
return (
<div className={styles.root}>
<span className={styles.title}>Hello</span>
</div>
);
};
Key differences:
makeStyles is a hook — must be called inside a React componenttokens.* instead of hardcoded values:hover) not selectors: {} wrappermergeClasses() to combine class names (not string concatenation)v8 uses ITheme with semantic color slots. v9 uses flat token objects.
v8 theme access:
import { useTheme } from '@fluentui/react';
const theme = useTheme();
const bg = theme.semanticColors.bodyBackground;
v9 theme access:
import { tokens } from '@fluentui/react-components';
// tokens are CSS custom properties — use them directly in makeStyles
const useStyles = makeStyles({
root: {
backgroundColor: tokens.colorNeutralBackground1,
},
});
Common token mappings (v8 semantic colors to v9 tokens):
v8 semanticColors.* | v9 tokens.* |
|---|---|
bodyBackground | colorNeutralBackground1 |
bodyText | colorNeutralForeground1 |
bodySubtext | colorNeutralForeground2 |
disabledBackground | colorNeutralBackgroundDisabled |
disabledText | colorNeutralForegroundDisabled |
errorText | colorPaletteRedForeground1 |
inputBackground | colorNeutralBackground1 |
inputBorder | colorNeutralStroke1 |
inputBorderHovered | colorNeutralStroke1Hover |
inputFocusBorderAlt | colorCompoundBrandStroke |
link | colorBrandForegroundLink |
linkHovered | colorBrandForegroundLinkHover |
primaryButtonBackground | colorBrandBackground |
primaryButtonBackgroundHovered | colorBrandBackgroundHover |
primaryButtonText | colorNeutralForegroundOnBrand |
buttonBackground | colorNeutralBackground1 |
buttonText | colorNeutralForeground1 |
menuBackground | colorNeutralBackground1 |
menuItemBackgroundHovered | colorNeutralBackground1Hover |
menuItemText | colorNeutralForeground1 |
Theme migration resources:
v8 and v9 can run side-by-side in the same application. This is the recommended approach for large codebases.
import { ThemeProvider } from '@fluentui/react'; // v8
import { FluentProvider, webLightTheme } from '@fluentui/react-components'; // v9
function App() {
return (
<ThemeProvider>
<FluentProvider theme={webLightTheme}>
{/* Both v8 and v9 components work here */}
<YourApp />
</FluentProvider>
</ThemeProvider>
);
}
Recommended order for migrating components (lowest risk first):
@fluentui/react-icons-mdl2 with @fluentui/react-iconsText variants with v9 Text, Title1, Body1, etc.DefaultButton / PrimaryButton to ButtonTextField to Input, Checkbox, RadioGroupStack, use CSS Flexbox/GridMessageBar, Spinner, ProgressBarPivot to TabList, Breadcrumb, NavDialog, Drawer, Popover (highest complexity)DetailsList to DataGrid (highest effort)Stack has no v9 equivalent. Replace with CSS Flexbox:
// v8
<Stack horizontal tokens={{ childrenGap: 8 }}>
<Stack.Item grow>
<Text>Left</Text>
</Stack.Item>
<Stack.Item>
<Text>Right</Text>
</Stack.Item>
</Stack>
// v9
const useStyles = makeStyles({
row: {
display: 'flex',
flexDirection: 'row',
gap: tokens.spacingHorizontalS,
},
grow: {
flexGrow: 1,
},
});
const styles = useStyles();
<div className={styles.row}>
<div className={styles.grow}>
<Text>Left</Text>
</div>
<div>
<Text>Right</Text>
</div>
</div>
Missing FluentProvider — v9 components require FluentProvider at the root. Without it,
tokens resolve to empty strings and components render unstyled.
Icon initialization — v8 requires initializeIcons(). v9 does not — icons are direct
SVG imports. Remove the initialization call after fully migrating.
Ref forwarding — v9 components use React.forwardRef. If you have wrapper components
that pass refs, update them to use forwardRef.
Controlled vs uncontrolled — Some v9 components have different controlled/uncontrolled patterns. Check the Storybook docs for each component.
CSS specificity — v8's CSS-in-JS and v9's Griffel may conflict. If styles look wrong during coexistence, check specificity. Griffel's atomic classes have lower specificity than v8's merged style blocks.
DetailsList to DataGrid — This is the hardest migration. DataGrid has a fundamentally different API. Plan significant refactoring time.
Theme token names — v8 semantic color names do not map 1:1 to v9 tokens. Consult the mapping table above.
fluent-griffel skill for comprehensive makeStyles,
shorthands, keyframes, and build-time optimization patterns.fluent-design-system skill for tokens, typography, color
system, and FluentProvider configuration.fluent-nextjs skill for SSR considerations with Griffel
and server component compatibility.fluent-forms skill for form component patterns and validation.fluent-web-components skill for framework-agnostic alternatives.Detailed reference material is available in the references/ directory:
slots-recomposition.md — Complete slot API reference, trigger patterns, composition examples,
and customStyleHooks implementation details.migration-v8-v9.md — Complete component mapping table, theme token mapping, styling migration
examples, and step-by-step migration workflow.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/Fluent-UI-ChartingFluent UI ChartingData visualization with @fluentui/react-charting — LineChart, BarChart, PieChart, DonutChart, AreaChart, HeatMapChart, SankeyChart, TreeChart, GaugeChart, theming integration, responsive patterns, and accessibility in charts.
/Fluent-UI-Cross-PlatformFluent UI Cross-PlatformFluent UI for iOS (Swift/UIKit) and Android (Kotlin) — platform setup, component catalogs, design token parity, CocoaPods/SPM for iOS, Gradle for Android, and Figma design kits for each platform.
/Fluent-2-Design-SystemFluent 2 Design SystemCore skill for Microsoft Fluent 2 design system — design tokens, color system, typography, layout, component library overview, theming with FluentProvider, accessibility patterns, and iconography. This is the foundational skill; specialized topics are covered by dedicated skills (fluent-nextjs, fluent-griffel, fluent-extensibility, fluent-web-components, fluent-charting, fluent-cross-platform, fluent-forms, fluent-integration).
/Fluent-UI-FormsFluent UI FormsForm orchestration with Fluent UI React v9 — Field component, validation display, Formik + Yup integration, React Hook Form + Zod integration, multi-step wizard patterns, and accessible form design.
/Fluent-UI-Griffel-StylingFluent UI Griffel StylingDeep knowledge of Griffel CSS-in-JS for Fluent UI React v9 — makeStyles, makeResetStyles, shorthands, mergeClasses, conditional styles, AOT compilation (webpack + Vite), selector performance, RTL support, icon styling, slot-based styling, CSS variables, and DevTools.
/Fluent-UI-Integration-PatternsFluent UI Integration PatternsIntegrating Fluent UI with Azure AD B2C custom UI, Office Add-ins (Excel, Word, Outlook task panes), SharePoint/M365 web apps, and navigation patterns (Nav, Drawer components).
npx claudepluginhub thelobbi/claude-m --plugin fluent-ui-designOther plugins' skills for the same job