Skip to content

There are three built-in color xaml definitions, as described in the following table:

NameUse
Colors.xamlDefault configuration
ColorsDark.xamlDark Configuration
ColorsViolet.xamlPurple Configuration

The same color name is defined in each file, except that the color values are different. The description of the color names is shown in the following table:

NameUse
PrimaryColorMain Color
LightPrimaryColorMain Color (Light)
DarkPrimaryColorMain Color (Dark)
DangerColorError, danger
LightDangerColorError, danger (Light)
DarkDangerColorError, Danger (Dark)
WarningColorWarning
LightWarningColorWarning (Light)
DarkWarningColorWarning (Dark)
InfoColorInformation
LightInfoColorInformation (Light)
DarkInfoColorInformation (Dark)
SuccessColorSuccess
LightSuccessColorSuccess (Light)
DarkSuccessColorSuccess (Dark)
VioletColorMain Color (Violet) Only Custom Version
DarkVioletColorMain Color (Violet) Only Custom Version
PrimaryTextColorMain Text
SecondaryTextColorSecondary Text
ThirdlyTextColorLast Text
ReverseTextColorInverted Text
TextIconColorGeneral for text or icons on a dark background
BorderColorBorder
SecondaryBorderColorSecondary Border
BackgroundColorMain Background Color
RegionColorBlock Background
SecondaryRegionColorSecondary Block Background
ThirdlyRegionColorFinal Block Background
TitleColorTitle Background
SecondaryTitleColorSubtitle Background
DefaultColorDefault Color
DarkDefaultColorSecondary default color
AccentColorReminder
DarkAccentColorReminder (Dark)
DarkMaskColorUse as a mask
DarkOpacityColorTranslucent Background
BlurGradientValueBackground for blurry windows only
MainContentForegroundColorOnly Custom Version
MainContentBackgroundColorOnly Custom Version
ForthlyRegionColorOnly Custom Version

NOTE

Example:Color="{DynamicResource PrimaryColor}"

Released under the MIT License.