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.
API
Parameters
Theme
Parameter | Description | Type | Default |
---|---|---|---|
AlertOptions |
Theme options to override the Alert component styles. |
ThemeAlertOptions | null |
BackgroundOptions |
Used to override default background colors. |
ThemeBackgroundOptions | null |
BadgeOptions |
Theme options to override the Badge component styles. |
ThemeBadgeOptions | null |
BarOptions |
Theme options to override the Bar component styles. |
ThemeBarOptions | null |
Black |
Defines the base theme dark color. |
string | "#343a40" |
BodyOptions |
Defined the body options. |
ThemeBodyOptions | null |
BreadcrumbOptions |
Theme options to override the Breadcrumb component styles. |
ThemeBreadcrumbOptions | null |
BreakpointOptions |
Global options for media breakpoints. |
ThemeBreakpointOptions | null |
ButtonOptions |
Theme options to override the Button component styles. |
ThemeButtonOptions | null |
CardOptions |
Theme options to override the Card styles. |
ThemeCardOptions | null |
ColorOptions |
Used to override default theme colors. |
ThemeColorOptions | null |
ContainerMaxWidthOptions |
Define the maximum width of container for different screen sizes. |
ThemeContainerMaxWidthOptions | null |
DividerOptions |
Theme options to override the Divider component styles. |
ThemeDividerOptions | null |
DropdownOptions |
Theme options to override the Dropdown styles. |
ThemeDropdownOptions | null |
Enabled |
Globaly enable or disable the theme. |
bool | true |
InputOptions |
Theme options to override the BaseInputComponent component(s) styles. |
ThemeInputOptions | null |
IsGradient |
Enables the gradient background colors. |
bool | false |
IsRounded |
Globaly enables rounded elements. |
bool | true |
ListGroupItemOptions |
Theme options to override the ListGroupItem component styles. |
ThemeListGroupItemOptions | null |
LuminanceThreshold |
The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255. |
byte | 150 |
ModalOptions |
Theme options to override the Modal styles. |
ThemeModalOptions | null |
PaginationOptions |
Theme options to override the Pagination component styles. |
ThemePaginationOptions | null |
ProgressOptions |
Theme options to override the Progress |
ThemeProgressOptions | null |
RatingOptions |
Theme options to override the Rating component styles. |
ThemeRatingOptions | null |
SidebarOptions |
Theme options to override the Sidebar component styles. |
ThemeSidebarOptions | null |
SnackbarOptions |
Theme options to override the Snackbar component styles. |
ThemeSnackbarOptions | null |
SpacingOptions |
Theme options to override the spacing utilities. |
ThemeSpacingOptions | null |
SpinKitOptions |
Theme options to override the SpinKit component styles. |
ThemeSpinKitOptions | null |
StepsOptions |
Theme options to override the Steps component styles. |
ThemeStepsOptions | null |
SwitchOptions |
Theme options to override the Switch component styles. |
ThemeSwitchOptions | null |
TableOptions |
Theme options to override the Table component styles. |
ThemeTableOptions | null |
TabsOptions |
Theme options to override the Tabs component styles. |
ThemeTabsOptions | null |
TextColorOptions |
Used to override default background colors. |
ThemeTextColorOptions | null |
ThemeColorInterval |
Set a specific jump point for requesting color jumps |
float | 8f |
TooltipOptions |
Theme options to override the Tooltip component styles. |
ThemeTooltipOptions | null |
ValidBackgroundColors |
Gets the valid background colors. |
IEnumerable<ValueTuple<string, string>> | null |
ValidBreakpoints |
Gets the valid breakpoints. |
IEnumerable<ValueTuple<string, string>> | null |
ValidColors |
Gets the valid variant colors. |
IEnumerable<ValueTuple<string, string>> | null |
ValidContainerMaxWidths |
Gets the valid sizes for container. |
IEnumerable<ValueTuple<string, string>> | null |
ValidTextColors |
Gets the valid text colors. |
IEnumerable<ValueTuple<string, string>> | null |
White |
Defines the base theme light color. |
string | "#ffffff" |
Methods
Theme
Method | Description | Return | Parameters |
---|---|---|---|
ThemeHasChanged |
Must be called to rebuild the theme. | void |
ThemeGenerator
Method | Description | Return | Parameters |
---|---|---|---|
GenerateVariables |
Generates a CSS variables based on the defined Theme options. | string | Theme theme |
GenerateStyles |
Generates a CSS styles based on the defined Theme options. | string | Theme theme |