Free Material theme, new UI fundamentals, CSS variables and utility classes

The latest version of our open-source Radzen Blazor Components delivers major UI improvements across the board.

TLDR, in no particular order:

  • FREE Material theme - based on Google’s famous Material Design 2 guidelines for developing modern Web and mobile applications.
  • CSS Variables - all components now use custom CSS properties for theming.
  • UI Fundamentals - a new <RadzenText> component and a set of predefined utility CSS classes for applying various text, background or border colors, border radiuses, and shadows.
  • Color palettes - all themes now share the same color palette system that enables quick predictable customizations, and scalability.
  • Optimized components’ sizing - updated sizing in all themes with respect to component’s specifics, such as ease of use and accessibility.

Open-sourced Material Theme

We are happy to share with the community our revamped Material design light theme. The theme shares the same theming mechanism (explaned further below) with the rest of the Radzen Blazor themes.

new-theming-material-theme.png

CSS Variables

CSS properties (variables) add dynamic values to static CSS files - a value stored in one place can be referenced in multiple other places. Using our predefined set of CSS variables, you can make non-Radzen UI elements look consistent when used together with Radzen Blazor Components.

new-theming-css-variables.png

See a list of Radzen Blazor color variables in the Colors demo, and a list of text variables in the Typography demo.

Read more about Using CSS custom properties

UI Fundamentals

If you prefer to add CSS classes instead of inline styles, you can do so using Radzen Blazor utility CSS classes. The classes use CSS variables underneath and allow you to effortlessly adjust the styling of UI elements and components.

You can use CSS classes to set:

  • Text Color, e.g. .rz-color-primary applies theme’s primary color to the text
  • Background Color, e.g. .rz-background-color-primary applies theme’s primary color to the background
  • Border Color, e.g. .rz-border-color-primary applies theme’s primary color to the border
  • Border, e.g. .rz-border-primary applies theme’s primary border 1px solid var(--rz-primary)
  • Shadow, e.g. .rz-shadow-2 applies theme’s predefined shadow with level 2

new-theming-css-classes.png

New RadzenText Component

Use the RadzenText component to format text in your application. The component allows you to apply various predefined styling and alignment for headings and content while keeping the compiled code semantically correct.

new-theming-typography.png

Color Palettes

We’ve reorganized the themes’ color system to make it more universal. The update impacts the relationships between color values and properties to create scalable palettes. It is important to note that introducing new color schemes does not implicitly mean new color values, yet some of the colors have been updated to improve themes’ overall look and feel.

new-theming-humanistic-color-palette.png

All themes now ship with a predefined:

  • Base color palette --rz-base-50 to --rz-base-900. The palette includes hardcoded hex values of tints and shades of the base theme color, used to style components’ base backgrounds, texts and borders.
  • Primary --rz-primary and Secondary --rz-secondary accent colors. They have lighter tints and darker shades that are automatically generated via SCSS.
  • Info, Success, Warning, and Danger functional colors. They also have lighter tints and darker shades that are automatically generated via SCSS.
  • Default chart series palette.

At the very top of each theme SCSS file you can find a mapping between the legacy color variables and the new ones.

See Colors demo.

Optimized sizing

We reviewed thoroughly each UI theme across components and optimized spacing and sizing to better match component’s functionality, ease of use, accessibility, and comply with different design languages (e.g. Material, Fluent).

new-theming-tabs-cards-pager-before-after.png

new-theming-forms-before-after.png

Don’t forget to follow us for more Blazor goodness on GitHub, Twitter, LinkedIn and YouTube.

Leverage Radzen on LinkedIn

Yes, we are on LinkedIn and you should follow us!

Now, you have the opportunity to showcase your expertise by adding Radzen Blazor Studio and Radzen Blazor Components as skills to your LinkedIn profile. Present your skills to employers, collaborators, and clients.

All you have to do is go to our Products page on LinkedIn and click the + Add as skill button.

by Vasil Yordanov

Raising the standard with a new Standard theme for Radzen Blazor Components

The Radzen team is happy to share with the community a new Standard theme for our free set of Blazor Components. The theme brings classic yet modern look and feel to Blazor applications.
Read more