/fluent-ui-design:Fluent-UI-Cross-Platformfrom fluent-ui-design
Guides setup and usage of Fluent UI on iOS (Swift/UIKit) and Android (Kotlin/Jetpack Compose) — component catalogs, design token parity, CocoaPods/SPM for iOS, Gradle for Android, and Figma design kits.
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.
Microsoft Fluent 2 is a cross-platform design system that delivers consistent, accessible, and themeable UI across Web (React), iOS (Swift/UIKit/SwiftUI), and Android (Kotlin/Jetpack Compose). Each platform has its own native implementation that respects platform idioms while maintaining visual and behavioral parity through a shared design token architecture.
The three platform libraries are:
| Platform | Repository | Package |
|---|---|---|
| Web | fluentui | @fluentui/react-components (npm) |
| iOS | fluentui-apple | MicrosoftFluentUI (CocoaPods / SPM) |
| Android | fluentui-android | com.microsoft.fluentui (Maven / Gradle) |
All three libraries target Fluent 2 design language and share the same design token foundations, ensuring that a "Brand Button" on Web looks and feels like its counterpart on iOS and Android, while still respecting each platform's native interaction patterns (e.g., iOS swipe gestures, Android Material ripple effects).
| Component | Web (React) | iOS (Swift) | Android (Kotlin) | Notes |
|---|---|---|---|---|
| Avatar | Yes | Yes | Yes | Full parity including groups |
| AvatarGroup | Yes | Yes | Yes | |
| Badge | Yes | Yes | Yes | Including BadgeField on iOS |
| Button | Yes | Yes | Yes | All variants: primary, outline, subtle, transparent |
| Card | Yes | Yes | Yes | |
| Checkbox | Yes | Yes | Yes | |
| DatePicker | Yes | Yes | Yes | Platform-native pickers used |
| Dialog | Yes | Yes | Yes | iOS uses UIAlertController patterns |
| Divider | Yes | Yes | Yes | |
| Drawer | Yes | Yes | Yes | iOS: side panel; Android: bottom sheet or side |
| HUD | No | Yes | No | iOS-only heads-up display |
| Label | Yes | Yes | Yes | |
| Link | Yes | Yes | Yes | |
| List / ListItem | Yes | Yes | Yes | |
| Menu | Yes | Yes | Yes | Platform-native menus |
| NavigationBar | Partial | Yes | Yes | Mobile-specific |
| PeoplePicker | Yes | Yes | Yes | |
| Persona | Yes | Yes | Yes | Combined avatar + text |
| PillButton | Yes | Yes | Yes | |
| PopupMenu | Partial | Yes | Yes | Mobile-specific |
| ProgressIndicator | Yes | Yes | Yes | |
| SearchBar | Partial | Yes | Yes | Mobile-optimized |
| SegmentedControl | Partial | Yes | Yes | iOS: UISegmentedControl style |
| Shimmer | Yes | Yes | Yes | Loading placeholder |
| Slider | Yes | Yes | Yes | |
| Snackbar | Partial | No | Yes | Android-native pattern |
| Switch / Toggle | Yes | Yes | Yes | |
| TabBar | Partial | Yes | Yes | Bottom navigation |
| Text | Yes | Yes | Yes | |
| TextField | Yes | Yes | Yes | |
| Tooltip | Yes | Yes | Yes | |
| Typography | Yes | Yes | Yes | Shared type ramp |
| Token Category | Web | iOS | Android |
|---|---|---|---|
| Color (brand) | Yes | Yes | Yes |
| Color (neutral) | Yes | Yes | Yes |
| Color (status) | Yes | Yes | Yes |
| Typography (size) | Yes | Yes | Yes |
| Typography (weight) | Yes | Yes | Yes |
| Spacing | Yes | Yes | Yes |
| Border radius | Yes | Yes | Yes |
| Shadow / Elevation | Yes | Yes | Yes |
| Stroke width | Yes | Yes | Yes |
| Duration (motion) | Yes | Yes | Yes |
| Easing (motion) | Yes | Partial | Partial |
| Feature | Web | iOS | Android |
|---|---|---|---|
| Brand color override | Yes | Yes | Yes |
| Dark mode | Yes | Yes | Yes |
| High contrast | Yes | Yes | Yes |
| Per-component override | Yes | Yes | Yes |
| Dynamic type / font scaling | N/A | Yes | Yes |
| RTL support | Yes | Yes | Yes |
Fluent 2 defines a shared token taxonomy that maps to platform-native representations:
Fluent Token Name Web (CSS Custom Property) iOS (Swift) Android (Kotlin/XML)
--------------------- ---------------------------- --------------------------------- ------------------------------------
colorBrandBackground --colorBrandBackground FluentTheme.color.brand.background fluentui_color_brand_background
colorNeutralForeground1 --colorNeutralForeground1 FluentTheme.color.foreground1 fluentui_color_neutral_foreground1
fontSizeBase300 --fontSizeBase300 FluentTheme.typography.body1.size fluentui_font_size_300
spacingHorizontalM --spacingHorizontalM FluentTheme.spacing.medium fluentui_spacing_horizontal_m
borderRadiusMedium --borderRadiusMedium FluentTheme.corner.radius8 fluentui_border_radius_medium
shadow4 --shadow4 FluentTheme.shadow.shadow4 fluentui_elevation_4
strokeWidthThin --strokeWidthThin FluentTheme.stroke.widthThin fluentui_stroke_width_thin
durationNormal --durationNormal FluentTheme.animation.durationNormal fluentui_duration_normal
All platforms consume the same brand color ramp (shades 10-160):
Brand Ramp (shared)
brandColor10 → lightest tint
brandColor20
...
brandColor80 → primary (default)
...
brandColor160 → darkest shade
Web: CSS custom properties generated by token pipeline
iOS: ColorProviding protocol returns UIColor/Color per shade
Android: Theme attributes resolve to @color resources
# Podfile
platform :ios, '16.0'
use_frameworks!
target 'MyApp' do
pod 'MicrosoftFluentUI', '~> 0.20'
end
https://github.com/microsoft/fluentui-apple.git
In Xcode: File > Add Package Dependencies > paste the URL > select version range.
The iOS library ships these major components (organized by category):
Core Controls: Button, Link, Label, Text, ActivityIndicator, ProgressIndicator Data Input: TextField, SearchBar, DateTimePicker, PeoplePicker, PillButtonBar Selection: Checkbox, RadioButton, Switch (Toggle), SegmentedControl, Slider Layout: Card, Divider, DrawerController, SheetController, SideTabBar, TabBarView Status & Info: Avatar, AvatarGroup, Badge, BadgeField, HUD, IndeterminateProgressBar, Notification (Toast/Bar), Shimmer, Tooltip Navigation: NavigationBar, CommandBar, BottomCommandBar, PopupMenuController Lists: ListItem, PersonaListItem, TableViewCell (FluentUI styled)
import FluentUI
// Apply a custom brand theme globally
let customTheme = FluentTheme()
customTheme.register(tokenSetType: ButtonTokenSet.self) { token, theme in
switch token {
case .backgroundColor:
return .uiColor { theme.color(.brandBackground1) }
default:
return nil
}
}
// Apply to a view hierarchy
view.fluentTheme = customTheme
The FluentTheme object holds all token values. Implement ColorProviding to supply custom
brand colors, or use FluentTheme.register(tokenSetType:provider:) for per-component overrides.
Fluent UI Apple automatically responds to UIUserInterfaceStyle changes. All semantic colors
resolve through the token system, so dark mode works without extra code. To force a specific
appearance:
view.overrideUserInterfaceStyle = .dark
For the complete iOS reference with full code examples, see
references/ios-reference.md.
com.microsoft.fluentui group// settings.gradle.kts
dependencyResolutionManagement {
repositories {
maven { url = uri("https://pkgs.dev.azure.com/nicemi365/nicemi365/_packaging/nicemi365-maven/maven/v1") }
mavenCentral()
google()
}
}
// app/build.gradle.kts
dependencies {
implementation("com.microsoft.fluentui:FluentUI:0.2.+")
// Or individual modules:
implementation("com.microsoft.fluentui:fluentui_core:0.2.+")
implementation("com.microsoft.fluentui:fluentui_controls:0.2.+")
implementation("com.microsoft.fluentui:fluentui_drawer:0.2.+")
implementation("com.microsoft.fluentui:fluentui_listitem:0.2.+")
implementation("com.microsoft.fluentui:fluentui_persona:0.2.+")
implementation("com.microsoft.fluentui:fluentui_popupmenu:0.2.+")
implementation("com.microsoft.fluentui:fluentui_topappbars:0.2.+")
implementation("com.microsoft.fluentui:fluentui_transients:0.2.+")
}
Core Controls: Button, FAB (Floating Action Button), Link, Label, Text, ProgressIndicator Data Input: TextField, SearchBar, DateTimePicker, PeoplePicker, PillBar Selection: Checkbox, RadioButton, Switch (Toggle), SegmentedControl (TabLayout) Layout: Card, Divider, Drawer (BottomSheet, Side), ListItem, BasicListItem, PersonaListItem Status & Info: Avatar, AvatarGroup, Badge, Shimmer, Snackbar, Tooltip, ProgressBar Navigation: AppBarLayout (TopAppBar), BottomNavigation, PopupMenu, ContextMenu, BottomSheet Compose: BasicCard, Button, Avatar, Badge, CircularProgressIndicator, LinearProgressIndicator, SearchBar, Shimmer, TextField, ToggleSwitch
import com.microsoft.fluentui.theme.FluentTheme
import com.microsoft.fluentui.theme.token.AliasTokens
// In your Application class or Activity
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
// Override brand colors
FluentTheme.updateAliasTokens(
AliasTokens().apply {
brandColor = listOf(
Color(0xFF0F6CBD), // shade10
// ... full ramp
)
}
)
}
}
// Jetpack Compose
@Composable
fun MyScreen() {
FluentTheme {
// Fluent-styled content
Button(onClick = { }) {
Text("Fluent Button")
}
}
}
The library respects AppCompatDelegate.setDefaultNightMode() and the system dark mode setting.
All Fluent tokens resolve to dark-mode variants automatically via Android resource qualifiers
(values-night/).
Fluent UI Android can coexist with Material 3 / Material You. The recommended approach:
// Extract Material You dynamic color and feed into Fluent brand ramp
val dynamicColor = dynamicDarkColorScheme(context).primary
FluentTheme.updateAliasTokens(
AliasTokens().apply {
brandColor = generateBrandRamp(dynamicColor)
}
)
For the complete Android reference with full code examples, see
references/android-reference.md.
Maintain a single tokens.json that feeds all three platform builds:
tokens/
global.json # Global color palette, type ramp
brand-contoso.json # Brand-specific overrides
alias.json # Semantic aliases
scripts/
build-web.js # Outputs CSS custom properties
build-ios.swift # Outputs Swift constants
build-android.kt # Outputs XML resources
Use Style Dictionary or the Fluent token pipeline
to transform tokens.json into each platform's native format.
When building the same feature on all platforms, align prop/parameter names:
Fluent Concept Web (React prop) iOS (Swift param) Android (Kotlin param)
-------------- ---------------- ----------------- ----------------------
appearance appearance style buttonStyle
size size size size
icon icon icon icon
disabled disabled isDisabled isEnabled (inverted)
Some patterns are intentionally different per platform to respect native conventions:
| Pattern | Web | iOS | Android |
|---|---|---|---|
| Navigation | React Router / tabs | UINavigationController / TabBarController | Navigation Component / BottomNavigation |
| Dialogs | <Dialog> overlay | UIAlertController / sheet | AlertDialog / BottomSheetDialog |
| Pull to refresh | Not standard | UIRefreshControl | SwipeRefreshLayout |
| Haptic feedback | N/A | UIImpactFeedbackGenerator | HapticFeedbackConstants |
| Status bar | N/A | UIStatusBarStyle | WindowInsetsController |
Use all three Figma kits in a single Figma project to design cross-platform:
Create a shared "Specs" page that maps each screen to all three platform variants side by side.
Ensure accessibility consistency across platforms:
fluent-ui-design SKILL.md for the complete token
taxonomy, CSS custom property reference, and Griffel styling patterns.fluent-extensibility/SKILL.md for advanced theming
techniques including custom token sets, theme providers, and design-to-code workflows.fluent-components/SKILL.md for the full React component
catalog with prop tables and composition patterns.fluent-accessibility/SKILL.md for WCAG compliance patterns that
apply across all platforms.| File | Contents |
|---|---|
references/ios-reference.md | Complete iOS component catalog, setup guides, theming, and Swift code examples |
references/android-reference.md | Complete Android component catalog, setup guides, theming, and Kotlin code examples |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
fluent-ui, microsoft-fluent, cross-platform-ui, design-system, mobile-ui
npx claudepluginhub thelobbi/claude-m --plugin fluent-ui-design9 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-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-Extensibility---MigrationFluent UI Extensibility & MigrationExtending and customizing Fluent UI React v9 — slots (4 levels of customization), custom variants, customStyleHooks, headless/unstyled patterns, custom component authoring, and comprehensive v8 to v9 migration guide with component mapping and incremental coexistence strategy.
/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).
Other plugins' skills for the same job