Blazorise Theme API

A set of classes that define and customize the visual appearance of Blazorise components.

On this page, you can explore the Theme API and its available classes. For more details on specific theming aspects, click the links below to access dedicated API documentation for colors, options, and palettes.

For examples and usage guidance, see the Theming documentation.

API

Parameters

Theme

ParameterDefaultType
AlertOptionsnullThemeAlertOptions

Theme options to override the Alert component styles.
BackgroundOptionsnullThemeBackgroundOptions

Used to override default background colors.
BadgeOptionsnullThemeBadgeOptions

Theme options to override the Badge component styles.
BarOptionsnullThemeBarOptions

Theme options to override the Bar component styles.
Black"#343a40"string

Defines the base theme dark color.
BodyOptionsnullThemeBodyOptions

Defined the body options.
BorderOptionsnullThemeBorderOptions

Used to override default border styles.
BreadcrumbOptionsnullThemeBreadcrumbOptions

Theme options to override the Breadcrumb component styles.
BreakpointOptionsnullThemeBreakpointOptions

Global options for media breakpoints.
ButtonOptionsnullThemeButtonOptions

Theme options to override the Button component styles.
CardOptionsnullThemeCardOptions

Theme options to override the Card styles.
ColorOptionsnullThemeColorOptions

Used to override default theme colors.
ContainerMaxWidthOptionsnullThemeContainerMaxWidthOptions

Define the maximum width of container for different screen sizes.
DividerOptionsnullThemeDividerOptions

Theme options to override the Divider component styles.
DockLayoutOptionsnullThemeDockLayoutOptions

Theme options to override the DockLayout component styles.
DropdownOptionsnullThemeDropdownOptions

Theme options to override the Dropdown styles.
Enabledtruebool

Globaly enable or disable the theme.
InputOptionsnullThemeInputOptions

Theme options to override the Input component(s) styles.
IsGradientfalsebool

Enables the gradient background colors.
IsRoundedtruebool

Globaly enables rounded elements.
ListGroupItemOptionsnullThemeListGroupItemOptions

Theme options to override the ListGroupItem component styles.
LuminanceThreshold150byte

The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
ModalOptionsnullThemeModalOptions

Theme options to override the Modal dialog styles.
PaginationOptionsnullThemePaginationOptions

Theme options to override the Pagination component styles.
ProgressOptionsnullThemeProgressOptions

Theme options to override the Progress component styles.
RatingOptionsnullThemeRatingOptions

Theme options to override the Rating component styles.
SidebarOptionsnullThemeSidebarOptions

Theme options to override the Sidebar component styles.
SnackbarOptionsnullThemeSnackbarOptions

Theme options to override the Snackbar component styles.
SpacingOptionsnullThemeSpacingOptions

Theme options to override the spacing utilities.
SpinKitOptionsnullThemeSpinKitOptions

Theme options to override the SpinKit component styles.
StepsOptionsnullThemeStepsOptions

Theme options to override the Steps component styles.
SwitchOptionsnullThemeSwitchOptions

Theme options to override the Switch component styles.
TableOptionsnullThemeTableOptions

Theme options to override the Table component styles.
TabsOptionsnullThemeTabsOptions

Theme options to override the Tabs component styles.
TextColorOptionsnullThemeTextColorOptions

Used to override default background colors.
ThemeColorInterval8ffloat

Set a specific jump point for requesting color jumps
TooltipOptionsnullThemeTooltipOptions

Theme options to override the Tooltip component styles.
ValidBackgroundColorsnullIEnumerable<ValueTuple>

Gets the valid background colors.
ValidBreakpointsnullIEnumerable<ValueTuple>

Gets the valid breakpoints.
ValidColorsnullIEnumerable<ValueTuple>

Gets the valid variant colors.
ValidContainerMaxWidthsnullIEnumerable<ValueTuple>

Gets the valid sizes for container.
ValidTextColorsnullIEnumerable<ValueTuple>

Gets the valid text colors.
White"#ffffff"string

Defines the base theme light color.

Methods

Theme

MethodReturnParameters
ThemeHasChangedvoid—

Must be called to rebuild the theme.

ThemeGenerator

MethodReturnParameters
GenerateStylesstringTheme theme

Generates a CSS styles based on the defined Theme options.
GenerateVariablesstringTheme theme

Generates a CSS variables based on the defined Theme options.
ShadeColorColorColor baseColor, double weightPercent

Sass shade-color($color, $weight) = mix(black, $color, $weight). (Not used by Bootstrap’s subtle, but handy.)
TintColorColorColor baseColor, double weightPercent

Sass tint-color($color, $weight) = mix(white, $color, $weight).