If theme settings (the base color or font) are defined declaratively in web.config and programmatically, the settings specified programmatically via static properties (GlobalThemeBaseColor and GlobalThemeFont) take priority.
The following formats are used when specifying values for a theme's base color and font.
For Base Color
Use a color value in HTML format. The following formats will be parsed correctly:
RGB or RGBA colors - Note that the alpha parameter is not taken into account for RGBA colors
In contrast to the base color value (which is validated by DevExpress internal code), the font value is not validated by default. This value must be validated manually, or set from a list of predefined valid values, to protect the application from potential malicious modifications.
The specified values for the base color and font are applied only to a global theme, which is defined using static properties (ASPxWebControl.GlobalTheme - for WebForms, DevExpressHelper.Theme - for MVC) or through the web.config option (theme). If a global theme is not defined, the specified base color and font settings are not in effect.
The table below lists available themes and describes which parameters (base color or font) can be specified.
For the font value, if you only need to change part of a font setting (such as font size or font family) and leave other settings unchanged (default), use the theme-related default font value as the font value and modify its parts as required. Default theme settings are listed in the table below.