

When using colored text on a colored background, make sure there is enough contrast between text and background. Below is an example of how you can use the accent color palette on a button. You can use the accent color palette for color theming in your app. You can also access the accent color palette programmatically with the UISettings.GetColorValue method and UIColorType enum. These shades can be accessed as theme resources: To test contrast, you can use the color picker tool in Windows Settings, or you can use these online contrast tools.Īn accent color algorithm in the Windows shell generates light and dark shades of the accent color. If you select a custom accent color for your app, please make sure that text and backgrounds that use the accent color have sufficient contrast for optimal readability.
#Adobe xd dark mode code
To change your app's accent color, place the following code in app.xaml. However, you can also customize your app's accent color to reflect your brand. By default, the accent color is the SystemAccentColor that users select in their Settings. Accent colorĬommon controls use an accent color to convey state information.
#Adobe xd dark mode how to
Theme brushesĬommon controls automatically use theme brushes to adjust contrast for light and dark themes.įor example, here's an illustration of how the AutoSuggestBox uses theme brushes:įor more information about how to use theme brushes in your app, see Theme Resources. If you don't request a theme for your app, make sure to test your app in both light and dark themes to ensure that your app will be legible in all conditions. In that case, the system will override your RequestedTheme. Users can also select the high contrast theme, which uses a small palette of contrasting colors that makes the interface easier to see. Removing the RequestedTheme property means that your application will use the user’s system settings. You can change themes by changing the RequestedTheme property in your App.xaml file. However, you can set the theme for your Windows app. Light themeīy default, your Windows app's theme is the user’s theme preference from Windows Settings or the device's default theme (i.e., dark on Xbox). The theme affects the colors of the app's background, text, icons, and common controls.

Windows apps can use a light or dark application theme. For example, in some cultures the color blue is associated with virtue and protection, while in others it represents mourning. Consider how the colors you use will be interpreted by people from different cultures.
