Search results

Overview

Theme Studio for Syncfusion Blazor can be used to customize a new theme from an existing theme. It does not support with data visualization controls such as Chart, Diagram, Gauge, Range Navigator, and Maps.

Customizing theme color from theme studio

The Syncfusion Blazor themes are developed under the SCSS environment. Each theme has a unique common variable list. When you change the common variable color code value, it will reflect in all the Syncfusion Blazor components. All Syncfusion Blazor component styles are derived from these theme-based common variables. This common variable list is handled inside the Theme Studio application for customizing theme-based colors.

Step 1: Navigate to the Theme Studio application from this link: Theme Studio.

Step 2: The Theme Studio application page can be divided into two sections: the controls preview section on the left, and the theme customization section on the right.

Theme Studio two-sections

Step 3: Click the color pickers in the theme customization section to select your desired colors.

Theme Studio colpr-picker

Step 4: The Syncfusion Blazor components will be rendered with the newly selected colors in the preview section after selecting a custom color form pickers.

Theme Studio customized

Filtering a specific list of controls

Using the theme studio, you can apply custom themes to a list of specific controls. This option is used when you integrate a selective list of Syncfusion Blazor components in your application. The theme studio will filter the selected controls and customize the final output for the controls’ styles alone by reducing the final output file size.

Step 1: Click the Filter icon at the top-right corner, and select the controls whose theme you want to customize.

Theme Studio filter-icon

Step 2: Click the Apply button in the Filter dialog. Now, only the selected controls will be rendered in the controls preview section.

Theme Studio filter-dialog

Step 3: Now, you can customize the colors in the theme customization section for the controls selected.

Theme Studio filter-customized

Download the customized theme

You can download the custom styles after customizing the theme colors.

Step 1: Click the Download button at the top-right corner, and the Download dialog will appear.

Theme Studio download-icon

Step 2: Assign a theme name in the File Name field, and click the Download button.

Theme Studio download-dialog

Step 3: The download styles will come as a zip file that contains SCSS and CSS files for the selected Syncfusion Blazor components. The current settings are stored in the settings.json file.

Theme Studio output-files

Using customized theme in a web application

You can directly use the customized CSS file in the web application.

Step 1: Copy and paste the customized CSS file from the download folder into any folder, e.g., styles\{file-name}.css.

Step 2: Refer the customized CSS file reference in the index.html or shared/_layout.cshtml main page head section.

    <head>
        <link href="styles/{file-name}.css" rel="stylesheet"/>
    </head>

Import previously changed settings into theme studio

If you need to change your application theme and UI design in future, do not customize the Syncfusion Blazor components from scratch in the theme studio. Just import the old settings.json file to review and update your stored settings in the Theme Studio application.

Step 1: Click the Import icon at the top-right corner.

Theme Studio import-icon

Step 2: The Import Theme dialog will open. Click the Browse button and select settings.json file you exported previously.

theme studio import-dialog

Step 3: Click the Import button.

Theme Studio imported-settings

Step 4: The stored data will be reflected in the Theme Studio application. Now, you can change the theme colors based on your latest design and export the theme again.

Theme Studio filter-customized

Step 5: The exported file contains your latest changes. You can just replace the older custom style with a new style to refresh your application.