Uploaded August 2026 | Updated November 2026, 5 hours ago
Stop defining 20 shades of the same color by hand.
In this episode I rebuild the Avalonia theme around Color Ramps — define ONE primary color and get 10 light shades and 10 dark shades automatically, with a mirrored ramp that makes dark mode just work. Plus a new icon pipeline that loads SVGs automatically.
No more "surface on surface raised" chaos. One value, every control themed, light and dark.
━━━━━━━━━━━━━━━
WHAT YOU'LL LEARN
━━━━━━━━━━━━━━━
• What Color Ramps are — 10 light + 10 dark shades auto-calculated from one primary hue
• How the mirrored ramp fixes dark mode contrast automatically
• Why I killed "surface / on surface" naming for simple accent names (neutral, primary, success etc)
• How one accent brush + accent kind now styles every control (neutral = default theme)
• How the theme is now split into Color and Size for sanity
• How the Roslyn source generator now auto-loads SVG icons into geometry paths — no more embedded CS files
• How to override with your own Brand Theme (change neutral and your whole app retints)
• What's next — source-generating the ramps + full demo app with in-app editing
━━━━━━━━━━━━━━━
TIMESTAMPS
━━━━━━━━━━━━━━━
00:00 — The theme was getting massive — time to fix it
00:37 — Project cleanup — new folder structure
01:00 — Icons before: embedded in CS files — now: auto-loaded SVGs
01:57 — Source generator + Roslyn Analyzer for the entire icon gallery
02:03 — Introducing Color Ramps — one color, 20 shades
03:05 — From manual surface colors to auto-calculated shades
03:51 — Button style with new accent brush (light / dark)
04:27 — Splitting theme into Color and Size definitions
04:58 — Unified styles — default is now just "neutral" accent
06:15 — Customizing default accent kind + brand themes
06:57 — The mirrored ramp — automatic dark theme
08:27 — How accent brush + accent kind work together
10:02 — Future: auto-generating ramps & accents so you don't wire XAML by hand
10:39 — Next — reviewing every control + building the demo theme lab
━━━━━━━━━━━━━━━
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 — One Accent Color That Styles Your Entire Avalonia UI — Accents
15 — This Video — Color Ramps (One Color, Twenty Shades)
#avalonia #avaloniaui #xaml #csharp #dotnet #uiux #desktopapp #softwaretutorial #coding
Stop defining 20 shades of the same color by hand.
In this episode I rebuild the Avalonia theme around Color Ramps — define ONE primary color and get 10 light shades and 10 dark shades automatically, with a mirrored ramp that makes dark mode just work. Plus a new icon pipeline that loads SVGs automatically.
No more "surface on surface raised" chaos. One value, every control themed, light and dark.
━━━━━━━━━━━━━━━
WHAT YOU'LL LEARN
━━━━━━━━━━━━━━━
• What Color Ramps are — 10 light + 10 dark shades auto-calculated from one primary hue
• How the mirrored ramp fixes dark mode contrast automatically
• Why I killed "surface / on surface" naming for simple accent names (neutral, primary, success etc)
• How one accent brush + accent kind now styles every control (neutral = default theme)
• How the theme is now split into Color and Size for sanity
• How the Roslyn source generator now auto-loads SVG icons into geometry paths — no more embedded CS files
• How to override with your own Brand Theme (change neutral and your whole app retints)
• What's next — source-generating the ramps + full demo app with in-app editing
━━━━━━━━━━━━━━━
TIMESTAMPS
━━━━━━━━━━━━━━━
00:00 — The theme was getting massive — time to fix it
00:37 — Project cleanup — new folder structure
01:00 — Icons before: embedded in CS files — now: auto-loaded SVGs
01:57 — Source generator + Roslyn Analyzer for the entire icon gallery
02:03 — Introducing Color Ramps — one color, 20 shades
03:05 — From manual surface colors to auto-calculated shades
03:51 — Button style with new accent brush (light / dark)
04:27 — Splitting theme into Color and Size definitions
04:58 — Unified styles — default is now just "neutral" accent
06:15 — Customizing default accent kind + brand themes
06:57 — The mirrored ramp — automatic dark theme
08:27 — How accent brush + accent kind work together
10:02 — Future: auto-generating ramps & accents so you don't wire XAML by hand
10:39 — Next — reviewing every control + building the demo theme lab
━━━━━━━━━━━━━━━
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 — One Accent Color That Styles Your Entire Avalonia UI — Accents
15 — This Video — Color Ramps (One Color, Twenty Shades)
#avalonia #avaloniaui #xaml #csharp #dotnet #uiux #desktopapp #softwaretutorial #coding

![Code Reviewing Is Boring
Time to put the human back in the loop. After a few weeks of letting my agents work on the Avalonia theme engine, I review their changes in Rider and find the details that still need human judgement: inconsistent padding, confusing preview updates and code that does not belong in the template.
Along the way: button alignment and icon bindings, shared spacing tokens, exceptions for design-time sample data, and why a size token ending in “double” is more confusing than it first looks. There is also a new AI-assisted editing style to try out, with a little help from Rusty the pug. Part of the series on building a custom Avalonia UI theme from scratch.
━━━━━━━━━━━━━━━━━━━
📌 WHAT YOULL LEARN
━━━━━━━━━━━━━━━━━━━
• How to review AI-written UI code without trusting the visuals alone
• How button alignment and icon padding bind to the templated parent
• Why inconsistent control padding needs shared defaults, not individual patches
• How data-template placement affects the designer preview workflow
• Why design-time sample data can justify an exception to normal binding rules
• How typed size tokens can be made less confusing to use in XAML
• Why explicit types can make view-model code easier to review
━━━━━━━━━━━━━━━━━━━
⏱ TIMESTAMPS
━━━━━━━━━━━━━━━━━━━
[0:00] – Putting the human back in the loop
[0:38] – Reviewing the theme work in progress
[1:17] – The accidental push and reviewing Git changes
[1:52] – Button alignment and the clipping fix
[3:25] – Control themes, bindings and icon support
[4:20] – Testing alignment and confusing preview updates
[5:18] – Recording the compile issue for investigation
[6:02] – Checking the application and incomplete previews
[6:41] – Finding the AutoCompleteBox padding issue
[7:23] – Planning shared default padding tokens
[8:35] – Trying AI-assisted video editing
[9:01] – Rusty explains the background noises
[9:44] – Sample data in XAML or a demo view model?
[10:38] – Why one preview updates and another does not
[11:41] – A quick break to feed the pug
[12:02] – Reviewing and removing a stray press animation
[13:03] – ButtonSpinner and design-time preview rules
[14:42] – The data-template placement mystery explained
[15:22] – More preview checks and unexpected theme changes
[16:17] – Finding the calendar event-marker style
[17:01] – Questioning the radius token naming
[18:13] – “Double” is the type, not twice the size
[18:56] – Planning automatic type handling for theme values
[19:52] – A quick look at the carousel
[20:28] – Remaining review work and explicit type preferences
[21:42] – Final visual review and the next tasks
[23:00] – Wrapping up
━━━━━━━━━━━━━━━━━━━
🔗 LINKS & RESOURCES
━━━━━━━━━━━━━━━━━━━
▶ Full Avalonia Themes Playlist: https://www.youtube.com/playlist?list=PLrW43fNmjaQVE2vDBeWD8QYIm06w6bKyO
▶ Source Code (AvaloniaThemeLab): https://github.com/angelsix/youtube/tree/develop/AvaloniaThemeLab
▶ GitHub: https://github.com/angelsix
▶ Website: https://www.angelsix.com
━━━━━━━━━━━━━━━━━━━
📚 SERIES — Avalonia UI Theming
━━━━━━━━━━━━━━━━━━━
▶ Full series: https://www.youtube.com/playlist?list=PLrW43fNmjaQVE2vDBeWD8QYIm06w6bKyO
18 — Automatic Dark Mode From a Single Theme — https://www.youtube.com/watch?v=m2WjfZAOUyM
19 — Calendar Control From Scratch — https://www.youtube.com/watch?v=EZE8MFbcoAE
20 — Build a Light vs Dark Preview Control — https://www.youtube.com/watch?v=tYTMNrN-3rw
21 — Hover Cropping, Corners and Contrast — https://www.youtube.com/watch?v=Oih-a3t687E
22 — This Video — Reviewing AI-written Avalonia themes Code Reviewing Is Boring](https://i.ytimg.com/vi/yiZcrImMsXg/mqdefault.jpg)




