development-plugin-for-avalonia

Professional UI/UX Design Tokens and Themes in Avalonia

Table of Contents

  1. Scope and Coverage Contract
  2. Design Workflow
  3. Granular Reference Set
  4. Full API Coverage Pointers
  5. First Example
  6. AOT and Runtime Notes
  7. Official Design Resources

Scope and Coverage Contract

This reference lane covers how to design professional-looking Avalonia applications with:

Coverage intent for this lane:

Use this lane together with:

Design Workflow

  1. Define the product tone, layout density, and content hierarchy first.
  2. Establish primitive, semantic, and component token layers.
  3. Build typography, iconography, and surface treatments from those tokens.
  4. Create reusable ControlTheme and ItemContainerTheme variants.
  5. Define command language, state matrices, and design review gates.
  6. Add responsive shell behavior with ContainerQuery, class state, and density choices.
  7. Finish with motion, composition, focus, accessibility, loading/empty/error states, and UX review.

Granular Reference Set

All detailed professional-design references now live under professional-design/README.md:

Full API Coverage Pointers

For exhaustive lookup beyond these design-specific docs:

First Example

Token-first surface example:

<Border xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Classes="app-card"
        Padding="{DynamicResource Inset.Card}">
  <StackPanel Spacing="{DynamicResource Space.200}">
    <TextBlock Classes="eyebrow" Text="Performance" />
    <TextBlock Classes="title" Text="Release readiness" />
    <TextBlock Classes="body"
               Text="Professional-looking UI starts with consistent spacing, hierarchy, and reusable component rules." />
  </StackPanel>
</Border>
<Style Selector="Border.app-card">
  <Setter Property="Background" Value="{DynamicResource Brush.Surface.Card}" />
  <Setter Property="BorderBrush" Value="{DynamicResource Brush.Border.Subtle}" />
  <Setter Property="BorderThickness" Value="1" />
  <Setter Property="CornerRadius" Value="{DynamicResource Radius.200}" />
  <Setter Property="BoxShadow" Value="{DynamicResource Shadow.Card.Rest}" />
</Style>

AOT and Runtime Notes

Official Design Resources