ShadowUI 1.0.6

dotnet add package ShadowUI --version 1.0.6
                    
NuGet\Install-Package ShadowUI -Version 1.0.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ShadowUI" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ShadowUI" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="ShadowUI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ShadowUI --version 1.0.6
                    
#r "nuget: ShadowUI, 1.0.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ShadowUI@1.0.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ShadowUI&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=ShadowUI&version=1.0.6
                    
Install as a Cake Tool

ShadowUI

A port of shadcn/ui for Avalonia UI 12 / .NET. 50+ components · Light/Dark theme · 13 color palettes · Custom title bar · Native AOT compatible.

<p align="center"> <img src="docs/screenshots/overview.gif" width="720" alt="ShadowUI Gallery" /> </p>

Requirements

  • .NET 8 or .NET 10
  • Avalonia 12+

Installation

dotnet add package ShadowUI
<PackageReference Include="ShadowUI" Version="1.0.6" />

Getting Started

1. Add the theme to your App.axaml:

<Application xmlns="https://github.com/avaloniaui"
             xmlns:shadui="using:ShadowUI"
             RequestedThemeVariant="Dark">
  <Application.Styles>
    
    <shadui:ShadowUITheme BaseColor="Charcoal" />
  </Application.Styles>
</Application>

2. Add the namespace to your views:

<Window xmlns:shadui="using:ShadowUI" ...>

3. Use components:

<shadui:Card>
  <StackPanel Spacing="8">
    <shadui:CardTitle Content="Welcome" />
    <shadui:CardDescription Content="Get started with ShadowUI." />
    <Button Content="Save" />
    <Button Classes="secondary" Content="Cancel" />
  </StackPanel>
</shadui:Card>

Theming

Switch theme at runtime:

Application.Current!.RequestedThemeVariant = ThemeVariant.Dark;

Switch color palette at runtime:

var theme = Application.Current!.Styles.OfType<ShadowUITheme>().First();
theme.BaseColor = BaseColor.Slate;

13 palettes (BaseColor):

  • Neutrals: Zinc, Slate (cool), Stone (warm), Gray (cool, Tailwind gray), Neutral (true gray).
  • Lifted darks: Charcoal (default) → GraphiteAsh (progressively lighter dark backgrounds).
  • Colored accents (Zinc surfaces + colored primary): Blue, Green, Violet, Rose, Orange.

Custom Title Bar

TitleBar replaces the native window chrome with a shadcn-style bar while keeping the native Windows 11 minimize / maximize / close animations, snap and resize borders:

<DockPanel>
  <shadui:TitleBar DockPanel.Dock="Top"
                   Title="My App"
                   ShowMaximize="True">
    <shadui:TitleBar.Icon>
      <Image Source="/Assets/logo.png" />
    </shadui:TitleBar.Icon>
  </shadui:TitleBar>
  
</DockPanel>

Everything is optional and removable:

Property Default Purpose
Title / ShowTitle null / true title text; ShowTitle="False" hides it
Icon / IconSize null / 16 app icon (any visual); hidden when not set
ShowMinimize / ShowMaximize / ShowClose true toggle individual window buttons
RightContent null custom controls next to the window buttons

Custom icon buttons that match the built-in ones — use the TitleBarButton theme:

<shadui:TitleBar Title="My App">
  <shadui:TitleBar.RightContent>
    <Button Theme="{StaticResource TitleBarButton}"
            Width="46" Height="40"
            Click="OnSettingsClick">
      
    </Button>
  </shadui:TitleBar.RightContent>
</shadui:TitleBar>

Smooth Scrolling

All ScrollViewers get inertial smooth scrolling out of the box. Opt out or tune per viewer:

<ScrollViewer shadui:SmoothScrollAssist.IsEnabled="False" />
<ScrollViewer shadui:SmoothScrollAssist.BaseStepSize="100"
              shadui:SmoothScrollAssist.SmoothingFactor="14" />

Components

Base

Button (default secondary destructive outline ghost link + icon), Badge (+ success/warning/info), Card, Separator, Label, TextBox / Textarea, CheckBox, Switch, RadioButton, Toggle, ToggleGroup, Slider, ProgressBar, Avatar, Skeleton, Kbd, Tooltip, AspectRatio, Spinner, ColorPicker

Tabs (underline / legacy / large), TabStrip, ComboBox (Select), MultiSelectComboBox, Popover (Flyout), Menu / DropdownMenu / ContextMenu, NavigationMenu, Menubar, HoverCard, TreeView, SplitView, Sidebar (icon-collapsed mode, expandable groups), TitleBar (custom window title bar), Dialog, AlertDialog, Toast / Notifications (Sonner-style stacking, 6 positions, 5 types), CommandPalette (⌘K, fuzzy search, keyboard nav), Sheet / Drawer, ScrollBar

Forms & Input

NumericUpDown, SearchableComboBox, OtpInput, InputGroup, ButtonGroup, Field, ColorPicker, SplitButton / ToggleSplitButton, DropDownButton, HyperlinkButton, RepeatButton, ButtonSpinner

Data & Tables

ShadowDataTable (sort, filter, pagination), ShadowPagination, Resizable, Table (base styles)

Content

Accordion, Alert (5 variants), AlertDialog, Breadcrumb, Collapsible, Expander, GroupBox, EmptyState, ShadowItem, SelectableTextBlock, HeaderedContentControl

Date & Time

ShadowCalendar (Single / Range), DatePicker

Visual & Charts

Carousel (prev/next + dot navigation), BarChart, LineChart, AreaChart, PieChart (donut)

Design Tokens

Key DynamicResource brushes for custom markup:

Key Purpose
ShadowBackgroundBrush / ShadowForegroundBrush background / text
ShadowPrimaryBrush / ShadowPrimaryForegroundBrush primary accent
ShadowMutedBrush, ShadowAccentBrush secondary surfaces
ShadowDestructiveBrush, ShadowSuccessBrush, ShadowWarningBrush, ShadowInfoBrush semantic status
ShadowBorderBrush, ShadowInputBrush borders / inputs
ShadowSidebarBrush, ShadowSidebarForegroundBrush sidebar surfaces
ShadowRadiusSm / ShadowRadiusMd / ShadowRadiusLg / ShadowRadiusXl corner radii
ShadowShadowXs / ShadowShadowSm / ShadowShadowMd box shadows

Documentation

Full component reference with code examples — docs/components.md.

Run the interactive component gallery:

dotnet run --project samples/ShadowUI.Gallery/ShadowUI.Gallery.csproj

Native AOT

ShadowUI is fully Native-AOT compatible: compiled bindings everywhere, no reflection, palettes instantiated via generated types.

dotnet publish tests/ShadowUI.AotSmokeTest/ShadowUI.AotSmokeTest.csproj -r win-x64 -c Release

On Windows, Native AOT requires MSVC (C++ build tools). Run from Developer Command Prompt or add …\Microsoft Visual Studio\Installer to your PATH.

Build & Test

dotnet build ShadowUI.slnx -c Debug
dotnet test tests/ShadowUI.UnitTests/ShadowUI.UnitTests.csproj

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 100 6/13/2026
1.0.5 100 6/12/2026
1.0.4 91 6/11/2026
1.0.3 93 6/11/2026
1.0.2 92 6/10/2026
1.0.0 106 6/10/2026
0.4.0-alpha 97 6/8/2026
0.3.0-alpha 102 6/8/2026

See CHANGELOG.md in the repository.