/uno-platform:uno-fluent2from uno-platform
Fluent 2 Design System guidance for Uno Platform/WinUI XAML apps. Covers control selection, color, typography, elevation, theme resources, and responsive breakpoints.
Ships in uno-platform. 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.
None: SKILL.md is the whole skill.
Authoritative design guidance for building WinUI apps with the Fluent 2 design language on Uno Platform. Distilled from Microsoft Learn, Uno.Themes, and uno.toolkit.ui source.
Scope: This skill covers Fluent (WinUI native) theming. For Material Design theming, see the
uno-material-*skills instead. Check.csproj<UnoFeatures>to determine which theme your project uses.
Choose standard WinUI/Uno controls before custom visual structures. These controls are implemented by Uno Platform on WASM, Skia, and mobile unless the target project has platform-specific exclusions:
| Experience | Prefer |
|---|---|
| 2-7 app sections | NavigationView |
| Document or session tabs | TabView |
| Hierarchical browsing | TreeView with ListView and BreadcrumbBar |
| Linear data | ListView |
| Tile or card collections | GridView or ItemsRepeater |
| Master/detail | ListView plus a detail Grid |
| 2-3 modes | SelectorBar or RadioButtons |
| Text input | TextBox |
| Numeric input | NumberBox |
| Search input | AutoSuggestBox |
| Date input | CalendarDatePicker |
| Boolean input | ToggleSwitch |
| 4+ exclusive choices | ComboBox |
| Blocking decision | ContentDialog |
| Contextual actions | Flyout or MenuFlyout |
| Inline status | InfoBar |
| Contextual onboarding | TeachingTip |
Avoid replacing these controls with clickable Border, TextBlock, or custom pill/tab visuals unless a real control cannot express the interaction. Do not import Windows-only shell patterns, App SDK notifications, JumpList, share UI, or file-picker guidance into cross-platform Fluent layout decisions.
{ThemeResource}Windows supports Light and Dark themes. Darker colors = less important surfaces; lighter/brighter = more important.
SystemAccentColor — user-chosen or app-overridden accentSystemAccentColorLight1 through Light3, SystemAccentColorDark1 through Dark3<Color x:Key="SystemAccentColor">#107C10</Color>Use {ThemeResource BrushName} in XAML:
Text Brushes:
| Key | Purpose |
|---|---|
TextFillColorPrimaryBrush | Primary text |
TextFillColorSecondaryBrush | Secondary text |
TextFillColorTertiaryBrush | Tertiary/hint text |
TextFillColorDisabledBrush | Disabled text |
TextFillColorInverseBrush | Text on inverse surfaces |
AccentTextFillColorPrimaryBrush | Accent-colored text |
TextOnAccentFillColorPrimaryBrush | Text on accent fills |
TextOnAccentFillColorSecondaryBrush | Secondary text on accent fills |
TextOnAccentFillColorDisabledBrush | Disabled text on accent fills |
Surface/Background Brushes:
| Key | Purpose |
|---|---|
SolidBackgroundFillColorBaseBrush | Base background |
SolidBackgroundFillColorSecondaryBrush | Secondary background |
SolidBackgroundFillColorTertiaryBrush | Tertiary background |
LayerFillColorDefaultBrush | Content layer fill |
LayerFillColorAltBrush | Alternate content layer fill |
CardBackgroundFillColorDefaultBrush | Card backgrounds |
CardBackgroundFillColorSecondaryBrush | Secondary card backgrounds |
CardStrokeColorDefaultBrush | Card borders |
DividerStrokeColorDefaultBrush | Separators and dividers |
Control Brushes:
| Key | Purpose |
|---|---|
ControlFillColorDefaultBrush | Default control fill |
ControlFillColorSecondaryBrush | Secondary control fill |
ControlFillColorTertiaryBrush | Pressed or lower-emphasis control fill |
ControlFillColorDisabledBrush | Disabled control fill |
ControlFillColorInputActiveBrush | Focused text input fill |
ControlStrongFillColorDefaultBrush | Strong control fill |
ControlStrokeColorDefaultBrush | Default control border |
ControlStrokeColorSecondaryBrush | Secondary control border |
ControlStrongStrokeColorDefaultBrush | Strong control border |
SubtleFillColorTransparentBrush | Subtle/transparent fills |
SubtleFillColorSecondaryBrush | Subtle hover state |
SubtleFillColorTertiaryBrush | Subtle pressed state |
Semantic/State Brushes:
| Key | Purpose |
|---|---|
SystemFillColorSuccessBrush | Success state |
SystemFillColorCautionBrush | Warning state |
SystemFillColorCriticalBrush | Error/critical state |
SystemFillColorAttentionBrush | Attention-required state |
SystemFillColorNeutralBrush | Neutral status |
SystemFillColorSuccessBackgroundBrush | Success background |
SystemFillColorCautionBackgroundBrush | Warning background |
SystemFillColorCriticalBackgroundBrush | Error background |
SystemFillColorNeutralBackgroundBrush | Neutral background |
When assigning Foreground, Background, BorderBrush, or other brush-valued properties, target the ...Brush key rather than the color key. Resource redirects should also point at brush resources.
<!-- CORRECT: Use separate Light and Dark dictionaries -->
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<StaticResource x:Key="MyBrush" ResourceKey="TextFillColorPrimaryBrush"/>
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<StaticResource x:Key="MyBrush" ResourceKey="TextFillColorPrimaryBrush"/>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
<!-- WRONG: Do NOT use "Default" key for Light/Dark; it causes theme-switching bugs -->
<!-- WRONG: Do NOT use {ThemeResource} inside ThemeDictionaries; use {StaticResource} -->
Prefer StaticResource redirects inside theme dictionaries for existing Fluent brushes. This reuses the platform brush and avoids creating duplicate SolidColorBrush instances. If a custom color is required, define Light and Dark values explicitly and keep matching keys in both dictionaries.
Segoe UI Variable is the system font. It uses variable font technology with two axes:
All sizes are in effective pixels (epx). Use Style="{StaticResource StyleName}":
| Style Key | Weight | Size/Line Height | Use For |
|---|---|---|---|
CaptionTextBlockStyle | Regular | 12/16 epx | Labels, footnotes |
BodyTextBlockStyle | Regular | 14/20 epx | Body text (default) |
BodyStrongTextBlockStyle | Semibold | 14/20 epx | Emphasized body |
BodyLargeTextBlockStyle | Regular | 18/24 epx | Large body text |
SubtitleTextBlockStyle | Semibold | 20/28 epx | Section headings |
TitleTextBlockStyle | Semibold | 28/36 epx | Page/card titles |
TitleLargeTextBlockStyle | Semibold | 40/52 epx | Hero text |
DisplayTextBlockStyle | Semibold | 68/92 epx | Display/splash |
TextTrimming="CharacterEllipsis") when text overflows<TextBlock Text="Page Title" Style="{StaticResource TitleTextBlockStyle}"
Foreground="{ThemeResource TextFillColorPrimaryBrush}"/>
<TextBlock Text="Supporting text" Style="{StaticResource BodyTextBlockStyle}"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>
<TextBlock Text="Caption" Style="{StaticResource CaptionTextBlockStyle}"
Foreground="{ThemeResource TextFillColorTertiaryBrush}"/>
| Corner Radius | Usage |
|---|---|
| 8px | Top-level containers: app windows, flyouts, dialogs |
| 4px | In-page elements: buttons, list backplates, cards |
| 0px | Edges intersecting other straight edges |
| 0px | Maximized/snapped windows |
<!-- Dialog/flyout level -->
<Border CornerRadius="{StaticResource OverlayCornerRadius}"/>
<!-- Control level -->
<Border CornerRadius="{StaticResource ControlCornerRadius}"/>
Use ControlCornerRadius for in-page controls and OverlayCornerRadius for dialogs, flyouts, cards, and other top-level surfaces. Use 0 for edges that meet another straight edge.
| Surface | Elevation | Stroke Width | Use Case |
|---|---|---|---|
| Window | 128 | 1px | App window |
| Dialog | 128 | 1px | Modal dialogs |
| Flyout | 32 | 1px | Menus, popups |
| Tooltip | 16 | 1px | Tooltips |
| Card | 8 | 1px | Content cards |
| Control | 2 | 1px | Buttons (rest) |
| Layer | 1 | 1px | Base layers |
<!-- Card elevation -->
<Border CornerRadius="{StaticResource ControlCornerRadius}" Translation="0,0,8">
<Border.Shadow>
<ThemeShadow/>
</Border.Shadow>
<!-- Card content -->
</Border>
<!-- Flyout elevation -->
<Border CornerRadius="{StaticResource OverlayCornerRadius}" Translation="0,0,32">
<Border.Shadow>
<ThemeShadow/>
</Border.Shadow>
</Border>
Rules:
ThemeShadow needs Translation on the elevated element.ThemeShadow over custom composition drop shadows for cross-platform Uno apps.| Material | Type | Use Case | Theme-Aware |
|---|---|---|---|
| Mica | Opaque | App base layer; tinted with desktop wallpaper | Yes (Light + Dark + focus state) |
| Acrylic | Semi-transparent | Transient surfaces: flyouts, context menus | Yes (Light + Dark) |
| Smoke | Transparent | Dimming behind modal dialogs | No (always dark translucent) |
SolidBackgroundFillColorBaseBrush as fallback<!-- Symbol icon -->
<SymbolIcon Symbol="Home"/>
<!-- Font icon (Segoe Fluent Icons) -->
<FontIcon Glyph="" FontFamily="{ThemeResource SymbolThemeFontFamily}"/>
<!-- Emoji fallback when asset missing -->
<FontIcon Glyph="📊"/>
SymbolIcon, FontIcon, AnimatedIcon, ImageIcon, PathIcon. Avoid BitmapIcon for new Fluent UI unless legacy bitmap assets are required.{ThemeResource SymbolThemeFontFamily} for FontIcon glyphs. Non-Windows Uno heads need the Uno.Fonts.Fluent package for cross-platform Fluent symbols.| Purpose | Ease | Timing | Used For |
|---|---|---|---|
| Direct Entrance | cubic-bezier(0,0,0,1) | 167/250/333ms | Position, Scale, Rotation |
| Point to Point | cubic-bezier(0.55,0.55,0,1) | 167/250/333ms | Existing element movement |
| Direct Exit | cubic-bezier(0,0,0,1) | 167ms | Exit (combine with fade out) |
| Gentle Exit | cubic-bezier(1,0,1,1) | 167ms | Soft dismissal |
| Fade In/Out | Linear | 83ms | Opacity changes |
Use these values for Margin, Padding, Spacing: 4, 8, 12, 16, 24, 32, 48, 64
ms-appx:///Microsoft.UI.Xaml/DensityStyles/Compact.xaml — pointer only| Size Class | Width | Typical Devices | Columns | Gutter |
|---|---|---|---|---|
| Small | < 640px | Phones, TVs (10ft) | 1-4 | 16px |
| Medium | 641-1007px | Tablets | 8 | 16px |
| Large | >= 1008px | PC, Laptop | 12 | 20-24px |
HorizontalContentAlignment and VerticalContentAlignment on ContentControlsMinWidth/MinHeight; avoid fixed widths unless aligning repeated command columns.Lightweight styling overrides control appearance by providing alternate resources with the same key, without redefining the full style.
AppResources.xaml — affects all instances globallyPage.Resources — scoped to one pageControl.Resources — one specific instanceKeys follow: {Style}{Property}{VisualState}
Visual states: (none)=Normal, PointerOver, Pressed, Disabled, Focused, Checked, CheckedPointerOver, etc.
ProgressBar and ProgressRing; custom template and foreground overrides easily break contrast and accessibility.{StaticResource}. Use {ThemeResource} inside setters only for theme-dependent values.<!-- Override Button appearance per-control -->
<Button Content="Custom" Style="{StaticResource FilledButtonStyle}">
<Button.Resources>
<SolidColorBrush x:Key="FilledButtonForeground" Color="DarkGreen"/>
<SolidColorBrush x:Key="FilledButtonBackground" Color="LightGreen"/>
<SolidColorBrush x:Key="FilledButtonBorderBrush" Color="DarkGreen"/>
</Button.Resources>
</Button>
When using the Uno SDK (dotnet new unoapp), App.xaml is auto-generated based on <UnoFeatures> in your .csproj. You do NOT need to manually add these entries — the template handles it:
<!-- Auto-generated in App.xaml by Uno SDK template -->
<ResourceDictionary.MergedDictionaries>
<!-- Always present for WinUI Fluent controls -->
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls"/>
<!-- Present only when Toolkit is in <UnoFeatures> -->
<ToolkitResources xmlns="using:Uno.Toolkit.UI"/>
</ResourceDictionary.MergedDictionaries>
Note: Only add these manually if upgrading a legacy Uno project (pre-SDK) or if the template didn't generate them.
Controls with documented lightweight styling: Button, CalendarDatePicker, CheckBox, ComboBox, DatePicker, HyperlinkButton, NavigationView, PasswordBox, PipsPager, ProgressBar, ProgressRing, RadioButton, RatingControl, Slider, TextBlock, TextBox, ToggleButton, ToggleSwitch.
Common key patterns for Button:
ButtonForeground, ButtonBackground, ButtonBorderBrushButtonForegroundPointerOver, ButtonBackgroundPointerOverButtonForegroundPressed, ButtonBackgroundPressedButtonForegroundDisabled, ButtonBackgroundDisabledFor styled variants (Filled, Outlined, Text): prefix with style name:
FilledButtonForeground, FilledButtonBackgroundOutlinedButtonForeground, OutlinedButtonBackgroundTextButtonForeground, TextButtonBackgroundWhen using NavigationView as the app shell with a custom top bar in NavigationView.Header, the default chrome adds padding and rounded corners that conflict with a full-bleed header design. Override these three keys at app level:
<!-- In App.xaml resources -->
<Thickness x:Key="NavigationViewHeaderMargin">0</Thickness>
<Thickness x:Key="NavigationViewContentGridBorderThickness">0</Thickness>
<CornerRadius x:Key="NavigationViewContentGridCornerRadius">0</CornerRadius>
A shared card style combining border, elevation, theme-aware background, and content alignment. Define in App.xaml resources:
<Style x:Key="AppCardContainerStyle" TargetType="ContentControl">
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ContentControl">
<Border CornerRadius="4"
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
BorderBrush="{ThemeResource ControlStrokeColorDefaultBrush}"
BorderThickness="1" Padding="16" Translation="0,0,8">
<Border.Shadow><ThemeShadow/></Border.Shadow>
<ContentPresenter Content="{TemplateBinding Content}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Usage: wrap card content in <ContentControl Style="{StaticResource AppCardContainerStyle}">.
For icon buttons (notifications, profile, settings) in a top bar:
<Style x:Key="TopBarIconButtonStyle" TargetType="Button" BasedOn="{StaticResource DefaultButtonStyle}">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Padding" Value="8"/>
<Setter Property="MinWidth" Value="36"/>
<Setter Property="MinHeight" Value="36"/>
</Style>
Apps typically need custom theme-aware brushes beyond WinUI defaults. Pattern:
Themes/AppColors.xaml with ThemeDictionaries containing Light and Dark ResourceDictionary entries.xaml.cs) — required by Uno to load the XAML resourceApp.xaml via typed reference: <themes:AppColors/> in MergedDictionaries{App}{Surface}{Purpose}Brush (e.g. MyAppCardBorderBrush, MyAppTopBarBackgroundBrush)<ResourceDictionary x:Class="MyApp.Themes.AppColors" ...>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<!-- Override accent color for brand identity -->
<Color x:Key="SystemAccentColor">#0C54B0</Color>
<Color x:Key="SystemAccentColorLight1">#285EE4</Color>
<!-- App surfaces -->
<SolidColorBrush x:Key="MyAppPageBackgroundBrush" Color="#F3F3F3"/>
<SolidColorBrush x:Key="MyAppCardBorderBrush" Color="#E0E0E0"/>
<SolidColorBrush x:Key="MyAppTopBarBackgroundBrush" Color="#FFFFFF"/>
<!-- Semantic status -->
<SolidColorBrush x:Key="MyAppStatusOnlineBrush" Color="#107C10"/>
<SolidColorBrush x:Key="MyAppStatusWarningBrush" Color="#CA5010"/>
<SolidColorBrush x:Key="MyAppStatusCriticalBrush" Color="#D13438"/>
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<!-- Lighter accent for dark backgrounds -->
<Color x:Key="SystemAccentColor">#5A8AF0</Color>
<Color x:Key="SystemAccentColorLight1">#94B4F5</Color>
<!-- App surfaces -->
<SolidColorBrush x:Key="MyAppPageBackgroundBrush" Color="#1C1C28"/>
<SolidColorBrush x:Key="MyAppCardBorderBrush" Color="#3E3E50"/>
<SolidColorBrush x:Key="MyAppTopBarBackgroundBrush" Color="#1E1E2E"/>
<!-- Semantic status (lighter for contrast on dark) -->
<SolidColorBrush x:Key="MyAppStatusOnlineBrush" Color="#6CCB5F"/>
<SolidColorBrush x:Key="MyAppStatusWarningBrush" Color="#F7A94B"/>
<SolidColorBrush x:Key="MyAppStatusCriticalBrush" Color="#FF6B6B"/>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
Variants: Filled, Outlined, Elevated (also Avatar and SmallMedia sub-variants)
| Key Pattern | States |
|---|---|
FilledCardBackground | (none), PointerOver, Focused |
FilledCardBorderBrush | (none), PointerOver, Focused |
OutlinedCardBackground / OutlinedCardBorderBrush | same |
ElevatedCardBackground / ElevatedCardBorderBrush | same |
FilledCardContentBackground / ...BorderBrush | (none), PointerOver, Focused, Pressed |
OutlinedCardContentBackground / ...BorderBrush | same |
ElevatedCardContentBackground / ...BorderBrush | same |
ContentTemplateForeground, ContentTemplateBorderBrush | — |
| Key Pattern | States |
|---|---|
ChipForeground | (none), PointerOver, Focused, Pressed, Disabled, Checked, Checked+state |
ChipBackground | same |
ChipBorderBrush | same |
ChipIconForeground | same + Checked variants |
ChipDeleteIconBackground, ChipDeleteIconForeground | — |
ChipStateOverlay | all states |
Sizing: ChipHeight, ChipIconSize, ChipCornerRadius, ChipPadding, ChipBorderThickness | — |
DividerForeground, DividerSubHeaderForeground, DividerSubHeaderFontFamily, DividerSubHeaderFontWeight, DividerSubHeaderFontSize, DividerSubHeaderCharacterSpacing, DividerSubHeaderMargin, DividerHeight
NavigationBarForeground, NavigationBarBackground, NavigationBarMainCommandForeground, NavigationBarPadding, NavigationBarFontFamily, NavigationBarFontWeight, NavigationBarFontSize
Key pattern: TabBarItem{Property}{State} — use the Uno Toolkit docs or the Uno Studio TabBar skill (uno-toolkit-tabbar, or references/tabbar.md in uno-toolkit) for the full list.
| Need | Resource/Approach |
|---|---|
| Page background | SolidBackgroundFillColorBaseBrush |
| Card background | CardBackgroundFillColorDefaultBrush |
| Primary text | TextFillColorPrimaryBrush + BodyTextBlockStyle |
| Secondary text | TextFillColorSecondaryBrush + CaptionTextBlockStyle |
| Section heading | TextFillColorPrimaryBrush + SubtitleTextBlockStyle |
| Page title | TextFillColorPrimaryBrush + TitleTextBlockStyle |
| Interactive accent | SystemAccentColor (via AccentTextFillColorPrimaryBrush) |
| Success/Warning/Error | SystemFillColorSuccessBrush/CautionBrush/CriticalBrush |
| Button | Default implicit style or FilledButtonStyle |
| Card elevation | ThemeShadow + Translation="0,0,8" |
| Divider line | DividerStrokeColorDefaultBrush or Toolkit DividerForeground |
| Corner radius (control) | ControlCornerRadius |
| Corner radius (dialog/card/flyout) | OverlayCornerRadius |
| Spacing | Multiples of 4: 4, 8, 12, 16, 24, 32 |
| Feature | Uno/Skia Support |
|---|---|
| ThemeShadow | Full cross-platform support |
| Mica material | Not supported on Skia; use solid fallback |
| Acrylic material | Limited on Skia; use solid fallback |
| Segoe UI Variable | Available on Windows; other platforms use system font |
| Segoe Fluent Icons | Provided via Uno.Fonts.Fluent NuGet package |
| Light/Dark theme switching | Full support |
| HighContrast theme | Windows only |
| TextBlock type ramp styles | Full support |
| ThemeResource brushes | Full support |
| Lightweight styling | Full support (both Uno.Themes and Uno.Toolkit) |
| Compact density | Supported |
AutomationProperties.HeadingLevel | Not supported on Skia (Uno0001 build error). Use AutomationProperties.Name instead. |
WrapGrid.Orientation | Not supported on Skia (Uno0001 build error). Use default orientation or a different panel. |
Nested ItemsRepeater | Inner repeater gets 0 width/height on Skia — layout collapses. Flatten to single repeater with DataTemplateSelector. |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/uno-agentic-supportIn-app support for agentic development of Uno Platform apps. Use when running or preparing a Uno Platform app for agent-driven execution with uno_app_start. Also use when the expected log file specified in AGENT_CONSOLE_LOG is missing or lacks "uno-agentic-support" entry, or Hot Reload / Hot Design remains visible during agent UI testing./uno-csharpmarkup2Build or edit Uno Platform 6 UI in declarative C# with C# Markup 2 (CSharpForMarkup), instead of XAML. Use for Uno 6 apps on .NET 10/9 with MVVM or MVUX, Uno Extensions Navigation/Toolkit, and supported C# Markup 2 integrations such as LiveCharts2, ScottPlot, and Mapsui./uno-npx claudepluginhub vincenth-net/dotnet-agentic-engineering --plugin uno-platform