ThemeScope
Since 0.1.0-alpha.22IzzyBlazor.ThemeScope in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (10)
ColorSchemeColorScheme?The color scheme here: ColorScheme.Light, ColorScheme.Dark, or ColorScheme.Inverse for the opposite of the page's. Unset: the page's.
ChildContentRenderFragment? requiredThe part of the page to theme.
Classstring?Classes for the div, such as one that sets CSS variables in your stylesheet.
Stylestring?Inline style for the div, such as "--ib-card-padding: 1rem".
PresetThemePreset?The starting set of defaults: density, shape and type, and a default accent and gray, which the other settings override. Unset: Standard (or, in a ThemeScope, what's around it).
Brandstring?The brand color, over the preset's: a hex color ("#0a7d5a"), from which the fill, the text on it, the accent as text and the soft tint are derived in light and dark, each pair at AA (see BrandPalette); or a built-in, hand-tuned one: blue (the default), ink (monochrome), indigo, violet, teal, green, rose. Primary controls are painted with it.
Graystring?The grays (page, surfaces, fills, borders and text), over the preset's: a built-in set, neutral (the default), slate (cool) or stone (warm paper). The app's IzzyTheme also takes a hex color for your light page background ("#f4efe6"), from which the rest is derived with contrast checked (see GrayPalette).
RadiusThemeRadius?The radius scale, over the preset's.
DensityThemeDensity?Control heights, table rows and card padding, over the preset's.
ChartPaletteThemeChartPalette?The colors charts, gauges and the scheduler use, unless a chart sets its own ChartPalette. Unset: ThemeChartPalette.Brand, which starts at the brand color (in a ThemeScope, what's around it, or its own Brand's).
Events (0)
No events.
Types (5)
ColorScheme
enumLight, dark, or automatic. For the app (ColorScheme, the user's pick in a ColorSchemeSwitch), ColorScheme.Auto follows the device. For part of a page (ColorScheme on Box and the App layout parts), ColorScheme.Auto follows the page, and ColorScheme.Inverse is the opposite of it. Every color token switches with the scheme, so links, buttons, badges, fields and focus rings inside keep their contrast.
| Value | Description |
|---|---|
Auto | Follow the device for the app, or the page for part of it (the default). |
Light | Always light. |
Dark | Always dark, such as a dark sidebar in a light app. |
Inverse | For part of a page: the opposite of the page, dark on a light page and light on a dark one. |
ThemeChartPalette
enumThe chart palette for the app or part of a page: which colors charts, gauges and the scheduler use when a chart doesn't set its own ChartPalette. Each is checked for color-blind readers in light and dark.
| Value | Description |
|---|---|
Brand | The default: the brand color first, so a chart of one series is the app's color, then the |
Contrast | Eight colors of one lightness whatever the brand, each 3:1 or more on the surface, with sets picked for charts of two, three or four series. |
OkabeIto | Okabe-Ito, the widely used color-blind-safe set: seven colors, then gray. |
Calm | Muted colors, for finance and dashboards read all day. |
ThemeDensity
enumHow much room controls and content take: control heights, table rows and card padding together.
| Value | Description |
|---|---|
Compact | More on screen: 32px controls, tight table rows. |
Standard | The default: 36px controls. |
Comfortable | Roomier: 40px controls, generous rows and padding. |
ThemePreset
enumA preset: density, shape and type, with a default brand color and gray suited to the products likely to use it. Set it with IzzyTheme or data-ib-preset on <html>.
| Value | Description |
|---|---|
Standard | The default: 36px controls, medium radius, hairline shadows; Blue on Neutral. |
Compact | Dense data and admin: 32px controls, tight rows, small radius, borders only; Indigo on Slate. |
Soft | Consumer apps and portals: 40px controls, roomy, large radius, gentle shadows; Teal on Neutral. |
Editorial | Reading and docs: IBM Plex Sans with Newsreader headings, large radius; Ink on Stone. |
ThemeRadius
enumThe radius scale: controls, cards and dialogs shift together.
| Value | Description |
|---|---|
None | Square corners everywhere. |
Sm | Small. |
Md | Medium (the default). |
Lg | Large. |
Full | Pill-shaped controls: buttons, fields, segmented controls, tags and badges. Cards, popovers and dialogs take the large scale; joined button groups round only their outer ends. |