Skip to main content
A newer version of this page is available. .
All docs
V23.1

Themes and Styles in ASP.NET MVC Applications

  • 3 minutes to read

Themes for Web Reporting are based on Generic, Generic Compact, Material Design, and Material Design Compact themes. For more information, review the following help topic: Predefined Themes. Due to design considerations, compact themes for web reporting components are the same as the themes without the word “compact” in their names.

You can view all available themes in our demo application. To switch themes, use the theme selector in the upper right corner of the application.

Run Demo

The predefined themes and their respective files are listed below. A theme consists of stylesheets that contain a collection of CSS classes.

Predefined Themes

Generic Themes

Theme CSS File (Generic) CSS File (Generic Compact)
Light dx.light.css
dx-analytics.light.css
dx.light.compact.css
dx-analytics.light.compact.css
Dark dx.dark.css
dx-analytics.dark.css
dx.dark.compact.css
dx-analytics.dark.compact.css
Carmine dx.carmine.css
dx-analytics.carmine.css
dx.carmine.compact.css
dx-analytics.carmine.compact.css
Soft Blue dx.softblue.css
dx-analytics.softblue.css
dx.softblue.compact.css
dx-analytics.softblue.compact.css >
Green Mist dx.greenmist.css
dx-analytics.greenmist.css
dx.greenmist.compact.css
dx-analytics.greenmist.compact.css
Dark Moon dx.darkmoon.css
dx-analytics.darkmoon.css
dx.darkmoon.compact.css
dx-analytics.darkmoon.compact.css
Dark Violet dx.darkviolet.css
dx-analytics.darkviolet.css
dx.darkviolet.compact.css
dx-analytics.darkviolet.compact.css

How to Customize a Generic Theme

Review the following help topics for information on how to customize a color scheme in a web reporting application:

Material Design Themes

Theme CSS File (Material Design) CSS File (Material Design Compact)
Blue Light dx.material.blue.light.css
dx-analytics.material.blue.light.css
dx.material.blue.light.compact.css
dx-analytics.material.blue.light.compact.css
Blue Dark dx.material.blue.dark.css
dx-analytics.material.blue.dark.css
dx.material.blue.dark.compact.css
dx-analytics.material.blue.dark.compact.css
Lime Light dx.material.lime.light.css
dx-analytics.material.lime.light.css
dx.material.lime.light.compact.css
dx-analytics.material.lime.light.compact.css
Lime Dark dx.material.lime.dark.css
dx-analytics.material.lime.dark.css
dx.material.lime.dark.compact.css
dx-analytics.material.lime.dark.compact.css
Orange Light dx.material.orange.light.css
dx-analytics.material.orange.light.css
dx.material.orange.light.compact.css
dx-analytics.material.orange.light.compact.css
Orange Dark dx.material.orange.dark.css
dx-analytics.material.orange.dark.css
dx.material.orange.dark.compact.css
dx-analytics.material.orange.dark.compact.css
Purple Light dx.material.purple.light.css
dx-analytics.material.purple.light.css
dx.material.purple.light.compact.css
dx-analytics.material.purple.light.compact.css
Purple Dark dx.material.purple.dark.css
dx-analytics.material.purple.dark.css
dx.material.purple.dark.compact.css
dx-analytics.material.purple.dark.compact.css
Teal Light dx.material.teal.light.css
dx-analytics.material.teal.light.css
dx.material.teal.light.compact.css
dx-analytics.material.teal.light.compact.css
Teal Dark dx.material.teal.dark.css
dx-analytics.material.teal.dark.css
dx.material.teal.dark.compact.css
dx-analytics.material.teal.dark.compact.css

How to Apply a Predefined Theme

To apply a predefined theme, pass its name as the optional clientUIControlColorScheme parameter to the GetStyleSheets method. Use one of the DevExpress.Web.ASPxWebClientUIControl constant fields to get a theme name. The following code applies the Material Orange Light color scheme to the Reporting application:

<head>
...
@Html.DevExpress().GetStyleSheets(ASPxWebClientUIControl.ColorSchemeMaterialOrangeLight,
        new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout },
        new StyleSheet { ExtensionSuite = ExtensionSuite.Editors },
        new StyleSheet { ExtensionSuite = ExtensionSuite.Report }
)
...
</head>

As an alternative, use the ASPxWebClientUIControl.GlobalColorScheme property to specify the theme.

using DevExpress.Web;
//...

    public class HomeController : Controller
    {
        public ActionResult Viewer() {
            ASPxWebClientUIControl.GlobalColorScheme = ASPxWebClientUIControl.ColorSchemeMaterialOrangeLight;
            return View();
        }
    //...
    }