Skip to content

Commit d0e39a1

Browse files
Merge pull request #1413 from syncfusion-content/ThemeSupportHotfix
Updated supported themes
2 parents d776093 + 6909953 commit d0e39a1

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

winui/skills/ui-builder-skill.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ Before installing WinUI UI Builder, ensure the following:
5353
- High DPI awareness and resolution support
5454

5555
### **Design-System Integration**
56-
- Supports Syncfusion® WinUI themes (Fluent Light, Fluent Dark, Material Light, Material Dark, etc.)
57-
- ResourceDictionary-based theming for consistent styling across applications
56+
- Supports Syncfusion® WinUI **Light** and **Dark** themes for consistent styling
57+
- Applies themes at application level via `RequestedTheme` property (set in App.xaml) or at individual control level
58+
- ResourceDictionary-based theming with customizable theme resource keys for advanced styling
59+
- Respects system theme settings when `RequestedTheme` is not explicitly configured
60+
- Ensures theme inheritance across nested UI elements for visual consistency
5861
- Ensures consistent Syncfusion® styling and theme usage
5962

6063
## Installation
@@ -112,17 +115,19 @@ Refer to the [documentation](https://microsoft.github.io/apm/reference/cli/targe
112115
3. **Control Mapping** — Map intent to Syncfusion® WinUI controls and required feature modules.
113116
4. **Theming & Design System**
114117
Load required theming guidelines and confirm key design choices:
115-
- Syncfusion® theme (Fluent Light, Fluent Dark, Material Light, Material Dark, etc.)
118+
- Applies Syncfusion® WinUI **Light** or **Dark** themes with `RequestedTheme` property configuration
119+
- Customizes theme resources using ResourceDictionary keys for control styling
116120
- Core design basics (colors, fonts, control appearance, DPI awareness)
117-
- Light and Dark mode support
118121
5. **Code Generation** — Produce C# and XAML WinUI controls, data bindings, event handlers, and styling.
119122
6. **Dependency Management** — Recommend or install required Syncfusion® NuGet packages and .NET dependencies.
120123
7. **Validation** — Run code compatibility and basic security checks, request confirmation for changes.
121124
8. **Code Insertion** — Create Page/Window classes, User Controls, or patch existing files following WinUI conventions.
122125

123126
Key enforcement points:
124127

125-
- Adds correct theme ResourceDictionaries and styling configuration for chosen Syncfusion® themes
128+
- Configures theme ResourceDictionaries for Syncfusion® Light/Dark themes at application or control level
129+
- Leverages Syncfusion® theme resource files from [GitHub repository](https://github.com/syncfusion/winui-controls-theme-resource-files) with custom resource keys (e.g., `SyncfusionRibbonTabMenuButtonBackground`)
130+
- Respects system theme settings when `RequestedTheme` is not explicitly configured
126131
- Injects only the feature controls and behaviors required by generated controls
127132
- Generates well-structured XAML markup with proper binding and command setup
128133
- Follows WinUI patterns for control initialization and event handling
@@ -151,7 +156,7 @@ Examples Prompts:
151156

152157
{% promptcards %}
153158
{% promptcard Authentication %}
154-
Create a login page using the Fluent Light theme with a centered StackPanel containing email and password TextBox controls with validation. Include a "Remember Me" CheckBox, a forgot password Hyperlink, and a primary login Button. Add a secondary "Create Account" button below. Ensure the layout is well-organized and follows Windows desktop UI standards.
159+
Create a login page using the Light theme with a centered StackPanel containing email and password TextBox controls with validation. Include a "Remember Me" CheckBox, a forgot password Hyperlink, and a primary login Button. Add a secondary "Create Account" button below. Ensure the layout is well-organized and follows Windows desktop UI standards.
155160
{% endpromptcard %}
156161
{% promptcard Admin Dashboard %}
157162
Create a CMS Admin Dashboard UI featuring a collapsible NavigationView in a left panel with menu items for Dashboard, Content, Users, Analytics, and Settings; a CommandBar header showing the title "CMS Admin Dashboard" on the left and user information on the right; and a main content area with a Grid layout containing three summary cards in a row displaying Total Content, Total Users, and Active Sessions (each showing a label, count value, and percentage change), followed by a "Content Management" section with a DataGrid containing columns for Title, Author, Status, Date, and Actions, and finally two charts displayed side by side—a bar chart titled "Content Over Time" and a pie chart titled "Content by Category"—using realistic sample data.

0 commit comments

Comments
 (0)