Styling with RxTheme is no more relevant in MauiReactor where the reccomended way is using standard .NET classes and XAML resources
You can style components or widgets directly in C#, for example creating a library of reusable custom widgets as classes or functions.
The below code uses a static function to return a customized button:
public static RxButton PrimaryButton(string text)
=> new RxButton(text)
.BackgroundColor(ThemeColor.CommunicationCommunicationPrimary)
.TextColor(ThemeColor.NeutralWhite)
.BorderWidth(0)
.CornerRadius(2)
.Padding(5, 0);
NOTE: Styling thru XAML (Resources) is not currently supported
Theming
Another powerful way to style an entire page is using an RxTheme object. A theme provides an efficient way to style every control present in a page.
For example consider we want to style an application with a Dark and Light theme, we could create 2 RxTheme: