/uno-platform-studio:uno-themesfrom uno-platform-studio
Guides styling Uno Platform apps with Material Design 3 (Uno.Material) or Simple theme, covering semantic color brushes, typography, control styles, light/dark mode, and palette rebranding. Use before writing XAML to avoid hard-coded colors.
Ships in uno-platform-studio. 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.
Uno Themes supplies the look of an Uno Platform app through one of two design themes, Simple (the template default) or Material (MD3), built on a shared semantic layer of style keys, typography keys, palette colors, and generated brushes. Generic agents restyle Uno apps by hard-coding hex colors, font sizes, and copied control templates; that breaks dark mode, theme switching, and brand overrides at once. This skill routes you to the right reference and keeps styling on the semantic keys so the theme does the work.
references/*.md file before writing XAML. Start with semantic-colors-brushes.md when the styling should stay portable between Material and Simple.uno_platform_docs_search(...) and fetch only the section you need: uno_platform_docs_fetch(sourcePath="…", anchor="…"), both values from a search result. A whole page is 2,000 to 6,000 tokens that stay in context for the rest of the session. Never pass a URL, .html link, or hand-built path. Simple's pages are external/uno.themes/doc/simple-getting-started.md and simple-controls-styles.md.| Task | Read | Key APIs |
|---|---|---|
| Pick a brush, a text style, or a control style that works in any theme | references/semantic-colors-brushes.md | PrimaryBrush/OnPrimaryBrush pairs, BodyMedium, FilledButtonStyle |
| Which brush for text on a surface, an error banner, a snackbar, a CTA | references/semantic-colors-brushes.md (Decision Guides) | OnSurfaceBrush, OnSurfaceVariantBrush, ErrorContainerBrush, SurfaceInverseBrush |
| Understand palette → brushes → control keys and override precedence | references/semantic-colors-brushes.md (Part 3, Part 4) | *Color keys, {Role}{State}Brush, FilledButtonBackground |
Install Material, set up MaterialTheme, Material control styles, FAB, elevation, icons | references/material.md | <UnoFeatures>Material</UnoFeatures>, MaterialTheme, ut:ControlExtensions.Icon, FabStyle |
| Customize the primary color or fonts for Material, Theme Builder, migration between versions | references/material-customization.md | Colors (ThemeColors.OverrideSource / PrimarySeed), DefaultFontFamily, material-migration.md |
Simple theme (the template default), SimpleTheme, grayscale palette, Inter font, density and corner radius | references/simple.md | <UnoFeatures>SimpleTheme</UnoFeatures>, SimpleTheme, DefaultDensity, DefaultCornerRadius |
| Danger buttons, error inputs, Expander, AutoSuggestBox, ToolTip, PersonPicture, overlay/scrim brushes | references/simple-styles.md | SimpleDangerPrimaryButtonStyle, SimpleTextBoxErrorStyle, SimpleBackgroundUtilitiesScrimBrush |
| Change one control's color without touching the palette | references/semantic-colors-brushes.md (Part 4) or references/material-customization.md | Layer 3 keys such as FilledButtonBackground, Control.Resources |
Style Uno Toolkit controls or configure MaterialToolkitTheme / SimpleToolkitTheme / CupertinoToolkitResources | the uno-toolkit skill (references/material-theme.md, references/lightweight-styling.md) | MaterialToolkitTheme, SimpleToolkitTheme |
#RRGGBB, FontSize="14", or FontFamily="Segoe UI" ignores dark mode and every brand override. Use a semantic brush ({ThemeResource OnSurfaceBrush}) and a typography style (Style="{StaticResource BodyMedium}"); the theme supplies the concrete values.{ThemeResource}, styles use {StaticResource}. Brushes must re-resolve when the app switches between Light and Dark; styles never change with the theme and their internal bindings already use ThemeResource. Getting this backwards produces text that vanishes in dark mode.On foreground. PrimaryBrush takes OnPrimaryBrush, ErrorContainerBrush takes OnErrorContainerBrush, SurfaceBrush takes OnSurfaceBrush (high emphasis) or OnSurfaceVariantBrush (medium). Unpaired combinations fail contrast in one of the two modes.FilledButtonStyle and DisplayLarge, not MaterialFilledButtonStyle or SimpleDisplayLarge. Prefixed keys such as MaterialBodyMedium and SimpleFilledButtonStyle exist, but only the unprefixed aliases resolve under both themes; the Simple* prefix is required only for Simple-only control styles.FilledButtonBackground, BodyMediumFontSize) at app, page, or control scope. Override a key only to change it: a key set to the brush the theme already gives it does nothing. When the new value is a brush the theme already has, the override is an alias written once, <StaticResource x:Key="TabBarItemForegroundSelected" ResourceKey="PrimaryBrush" />, never a new SolidColorBrush or a copy per theme; a SolidColorBrush with Light and Default values is only for a colour outside the palette. Copying a control template freezes it against theme updates and doubles the XAML to maintain.*Color keys through the theme's Colors property: <MaterialTheme.Colors> (or <SimpleTheme.Colors>) holding <ut:ThemeColors xmlns:ut="using:Uno.Themes" OverrideSource="ms-appx:///..." /> (or OverrideDictionary). ColorOverrideSource / ColorOverrideDictionary are obsolete but still work, and the template still emits ColorOverrideSource; migrate it when touching that line. Provide both Light and Default (Dark) values; all 280 brushes and every control follow. The fastest path to a brand palette is a seed: <ut:ThemeColors PrimarySeed="#0F62FE" /> (also SecondarySeed, TertiarySeed) generates every role except Error (ErrorColor, OnErrorColor, ErrorContainerColor, OnErrorContainerColor keep the theme's base values; override them explicitly). Override an individual brush only for a one-off exception.SeedColorMode (Fidelity) only the light PrimaryColor is the seed verbatim; every other role, dark Primary included, is generated at fixed tones, and a SecondarySeed or TertiarySeed keeps its hue, not its hex. One or two brand colours: a seed. Some roles given exactly: a seed plus OverrideDictionary for those roles, which wins over the generated values. A full token table with light and dark values: override the whole palette, because any generated role a control draws is a colour the design does not list. Tokens with no palette role (statuses, chart steps, map pins) are the app's own brushes in App.xaml's Light and Default theme dictionaries, and every token that does have a role is used through the role's brush (PrimaryBrush, OnSurfaceBrush), not mirrored under the design's name.SemanticThemeHelper.GetTheme().Colors.OverrideDictionary (or set OverrideSource), or set SemanticThemeHelper.PrimarySeed and the other seeds; the theme regenerates the palette and every brush follows. A brand picker or an extra mode such as a high-contrast outdoor theme is one override dictionary per variant that the app keeps and assigns. Editing the assigned dictionary in place triggers nothing, and walking MergedDictionaries to rewrite *Color and *Brush keys duplicates what the theme already does.<UnoFeatures>Material</UnoFeatures> plus <MaterialTheme xmlns="using:Uno.Material" /> in App.xaml merged dictionaries. With Uno Toolkit present, use MaterialToolkitTheme instead of MaterialTheme + ToolkitResources; loading both duplicates resources. The Simple equivalent is <utus:SimpleToolkitTheme xmlns:utus="using:Uno.Toolkit.UI.Simple" />, which the recommended preset emits; it derives from SimpleTheme, so set Colors, DefaultFontFamily, DefaultDensity, and DefaultCornerRadius on it and never add a bare SimpleTheme next to it.dotnet new unoapp -preset recommended selects Simple, a lightweight design system with minimal styling (grayscale palette, Inter font, DefaultDensity Compact/Regular/Comfy) that also carries controls Material lacks (Expander, AutoSuggestBox, ToolTip, PersonPicture). Choose Material when the brief or design asks for Material Design 3, MD3 color roles or elevation. Both implement the shared semantic layer, so the role brushes (PrimaryBrush, SurfaceBrush, OnSurfaceVariantBrush, ...) resolve under either. Do not switch an existing app's theme unasked, and do not mix theme-specific keys from one into a project running the other. An app created with -preset blank uses Fluent and has no Material or Simple theme, so no semantic key resolves there; use WinUI resources, or add a theme only with the user's consent.Space*, Radius*, and ControlHeight* resource keys (see external/uno.themes/doc/design-tokens.md) replace literal margins and heights. On the theme, DefaultDensity and DefaultSpacing scale only the Space* tokens and DefaultCornerRadius only the Radius* tokens; ControlHeight*, IconSize*, and TouchTargetMinSize are fixed. Set a design's base radius, spacing unit and density there instead of defining app keys for them. All three can change at runtime on SemanticThemeHelper.GetTheme() (the helper has no property of its own for them): controls created afterwards follow, while controls already on screen keep their values until a theme-change pass (toggle the root element's RequestedTheme away from its ActualTheme and back) or recreated root content.external/uno.themes/doc/material-migration.md before upgrading rather than guessing renamed keys. Uno.Themes 8.0 removes SimpleFontFamily and the per-weight font keys (the root token is DefaultFontFamily) and reworks seed generation (SeedColorMode). This skill targets Uno.Themes 9.0 (Uno.Sdk 7.0.0-dev.77 pins 9.0.0-dev.42; the 8.0 changes above still apply); an app still on 7.x lacks DefaultFontFamily, DefaultSpacing, and SeedColorMode.uno-toolkit for MaterialToolkitTheme / CupertinoToolkitResources setup and lightweight styling of Toolkit controls (TabBar, CardContentControl, NavigationBar).uno-platform for project-wide rules and <UnoFeatures> configuration.uno-testing to confirm a restyle renders correctly in both Light and Dark in the running app.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unoplatform/studio --plugin uno-platform-studio9 skills in this plugin
/uno-authenticationSign-in for Uno Platform apps with Uno.Extensions.Authentication: IAuthenticationService (LoginAsync, RefreshAsync, LogoutAsync, LoggedOut), custom login against your own API, MSAL (Microsoft Entra ID, B2C), OpenID Connect, and web/OAuth redirect providers, the access token added to Refit and Kiota calls, and the login/logout navigation flow. Use whenever an Uno app needs a login page, sign-in, sign-out, user accounts, a session that survives restarts, tokens or bearer headers on API calls, protected pages, or Microsoft, Google, Auth0, Keycloak or IdentityServer sign-in, even when the request only says 'users must log in'. Also use when the project lists Authentication, AuthenticationMsal or AuthenticationOidc in <UnoFeatures>, or when an agent is about to write its own auth service or token storage. Read this skill before writing any authentication code./uno-build-appEnd-to-end workflow for building Uno Platform apps and features: discovery, a short blueprint, one complete feature built and exercised before its pattern is repeated, and an honest completion report. Use when creating a new Uno Platform app from a brief, adding a feature to an existing Uno app, repairing a broken Uno page or feature, or diagnosing an Uno binding, state or navigation defect. Use it for any 'how should I implement this' feature request that spans a page, its state, storage or a platform API such as a file or photo picker. Not for WPF, WinUI-only or .NET MAUI projects. For a single control or API question, load the matching domain skill (uno-mvux, uno-navigation, uno-toolkit, uno-themes, uno-authentication, uno-kiota, uno-testing) instead./uno-kiotaTyped REST API clients for Uno Platform apps with Uno.Extensions.Http.Kiota: the HttpKiota feature, generating a client from an OpenAPI/Swagger document with the Kiota CLI (kiota generate, kiota update, kiota-lock.json), registering it with AddKiotaClient inside UseHttp, the endpoint Url per environment, request builders, query and path parameters, headers, errors (ApiException, ResponseStatusCode, typed error models), retries and cancellation, and the JSON-only serializer limit (text/plain, form, multipart, application/problem+json). Use whenever an Uno app calls a web API, loads data from a backend or the template's server project, consumes an OpenAPI or Swagger spec, or needs a generated HTTP client, even when the request only says 'get the data from our API'. Also use when the project lists HttpKiota in <UnoFeatures>, has a Content/Client folder or kiota-lock.json, or when an agent is about to write HttpClient calls by hand. Read this skill before writing any API-calling code./uno-mvuxMVUX state management for Uno Platform apps: feeds, states, FeedView, commands, Models. Covers IFeed<T>, IState<T>, IListFeed<T>, IListState<T>, selection, pagination, entity messaging, and immutable partial record Models with generated ViewModels (Model-View-Update-eXtended). Use whenever an Uno Platform app that uses MVUX, or a new app with no pattern chosen yet, loads async data from a service or API, binds user input, shows loading/error/empty states, edits a collection, or needs a Model layer. Also use when the project has <UnoFeatures>MVUX</UnoFeatures> or *Model records, or the user asks how MVUX compares with MVVM, or reports a bound command button that stays disabled or a list or value that does not update on screen. Not for apps built on MVVM (<UnoFeatures>Mvvm</UnoFeatures>, CommunityToolkit.Mvvm, ObservableObject ViewModels): keep their pattern. Read this skill before writing any MVUX Model, feed, state, or command code./uno-navigationUno.Extensions.Navigation for Uno Platform apps: route registration with ViewMap, DataViewMap, ResultDataViewMap, and RouteMap; region-based navigation with Region.Attached, Region.Name, and Region.Navigator; INavigator code navigation (NavigateViewModelAsync, NavigateBackAsync, *ForResultAsync); declarative uen:Navigation.Request and Navigation.Data in XAML; dialogs, flyouts, and message prompts; back-stack qualifiers (-/ and !/); TabBar, NavigationView, responsive, and Frame shell templates; ContentControl and visibility regions; troubleshooting. Use whenever an Uno app needs a new page, a details or settings screen, a 'go to' or 'open' action, a back button, tabs, a sidebar, hamburger menu, drawer, app shell, modal, popup, confirmation dialog, deep link, login-to-home flow, a tab tap that replaces the whole page, or must pass an item or ID to another page, even if the user never says 'navigation'. Read this before adding any Page or wiring a Click that changes the screen./uno-platformEntry point for building or changing any Uno Platform app: cross-platform .NET UI with WinUI/XAML or C# Markup targeting Windows, iOS, Android, WebAssembly, macOS, Linux, and embedded. Use this skill whenever the user mentions Uno Platform, an Uno project (UnoFeatures, uno.sdk, Uno.Extensions, Uno.Toolkit), WinUI XAML in a cross-platform context, Hot Design, Hot Reload, Uno Studio, or asks to scaffold, extend, restyle, navigate, test, or fix an Uno app, even when the request only says 'the app' or names a page, control, or feature. It routes to the domain skills (uno-mvux, uno-navigation, uno-toolkit, uno-themes, uno-authentication, uno-kiota, uno-testing) and sets the project-wide rules that apply before any of them.Other plugins' skills for the same job