The Avalonia Accent System That Generates Its Own Shades @AngelSix
The Avalonia Accent System That Generates Its Own Shades  @AngelSix
Uploaded August 2026 | Updated November 2026, 4 hours ago
Setting a different color on every control is how themes become unmaintainable.
In this episode I show you the new accent system I built for the Avalonia theme — define one color once, get light, dark, hover and pressed variants automatically, and style any control with a single accent brush.

No hand-wired ResourceDictionary duplication. Full IntelliSense. Fully overridable for your own brand theme.

━━━━━━━━━━━━━━━
WHAT YOU'LL LEARN
━━━━━━━━━━━━━━━
• How the new `accent` class + `kind="primary | success | warning | destructive"` works
• The magic `accent brush` — style without hardcoding a single hex value
• How light / dark / hover / pressed variants are auto-calculated from one base color
• How the Angel Six Theme Lab source generator creates AccentKind with full IntelliSense
• How to override with your own Brand Theme and add custom accents
• How Roslyn analyzers will stop silent XAML failures and XAML inflation for good

━━━━━━━━━━━━━━━
TIMESTAMPS
━━━━━━━━━━━━━━━
00:00 — The new accent system — one color, every variant auto-generated
00:37 — Button Spinner demo — declaring accent and kind
01:27 — Clean XAML with accent brush (no hardcoded colors)
02:39 — No extra style lines — declare once, it just works
03:15 — IntelliSense for accent kinds + light/dark variants
04:21 — The magic variable: theme accent brush + source generator
05:33 — Why you need the 2-line style class include for IntelliSense
06:17 — Auto-generated XAML (begin/end generated)
06:37 — Custom Brand Theme — overriding + adding your own accents
08:10 — How to use the theme before docs land
09:43 — Data binding & MVVM — it just works
10:04 — Legacy problem: hand-wired themes that silently go out of sync
11:22 — Next step — Roslyn analyzers to automate it all
12:22 — Where accents are at + what's next (button restyle)

━━━━━━━━━━━━━━━
LINKS & RESOURCES
━━━━━━━━━━━━━━━
▶ Full Avalonia Themes Playlist: youtube.com/playlist?list=PLrW43fNmjaQVE2vDBeWD8QYIm06w6bKyO
▶ Source Code (AvaloniaThemeLab): github.com/angelsix/youtube/tree/develop/AvaloniaThemeLab
▶ GitHub: github.com/angelsix
▶ Website: angelsix.com

━━━━━━━━━━━━━━━
SERIES — Avalonia UI Theming – Hand Coded From Scratch
━━━━━━━━━━━━━━━
01 — Setup — youtube.com/watch?v=rUKlQnjU0tc
02 — Buttons | Hand Coded From Scratch — youtube.com/watch?v=oKjk6pyyARI
03 — Button Spinner | Anatomy & Internals — youtube.com/watch?v=WMaTbXkvm9g
04 — Designing a Theme System From Scratch — youtube.com/watch?v=I5halHoNfH0
05 — Checkbox Control Deep Dive — youtube.com/watch?v=uIimnwjITT0
06 — Checkbox Styling — youtube.com/watch?v=uv1bNrfCjtY
07 — Theme Engine From Scratch — youtube.com/watch?v=NXz8hwITg5U
08 — Building a Design Token System — youtube.com/watch?v=QMVdxRZqaU8
09 — One Token System for the Entire Theme — youtube.com/watch?v=JEcD1XXIiA8
10 — Avalonia Styles Not Working? You're Breaking This Rule — youtube.com/watch?v=OhJN8Ssp2hA
11 — Avalonia Just Got a Full Icon System — youtube.com/watch?v=N5HPe5GYCPo
12 — Breaking Every Avalonia Control On Purpose — youtube.com/watch?v=OmVFU-iowqI
13 — Avalonia Tool That Finds Bugs My Compiler Can't See — youtube.com/watch?v=WQB5kFJWRmc
14 — This Video — Accents (One Color That Styles Everything)

#avalonia #avaloniaui #xaml #csharp #dotnet #uiux #desktopapp #softwaretutorial #coding
The Avalonia Accent System That Generates Its Own Shades001. Avalonia UI - Getting Started Environment Setup49. Avalonia UI Real World (Add Files to List)40. Real World Avalonia UI: Data Model SetupParsing - C# Mastery CourseDesign Time DI in Avalonia UI - Real World Series #65EXERCISE: Number Guessing Game - C# Mastery Course11. Avalonia UI Real World (Style Precedence Madness)06. Avalonia UI Real World (Page Layout)I Coded Network Discovery Without AI (Heres What Happened)017. Avalonia UI - Control Themes Styling008. Avalonia UI - View Model Basics MVVM
AngelSix |

The Avalonia Accent System That Generates Its Own Shades

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER