Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

ThemeScope

Since 0.1.0-alpha.22
Themes part of a page: its brand color, density, shape or color scheme.

IzzyBlazor.ThemeScope in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (10)

ColorSchemeColorScheme?Added in 0.1.0-alpha.22

The color scheme here: ColorScheme.Light, ColorScheme.Dark, or ColorScheme.Inverse for the opposite of the page's. Unset: the page's.

ChildContentRenderFragment? requiredAdded in 0.1.0-alpha.22

The part of the page to theme.

Classstring?Added in 0.1.0-alpha.22

Classes for the div, such as one that sets CSS variables in your stylesheet.

Stylestring?Added in 0.1.0-alpha.22

Inline style for the div, such as "--ib-card-padding: 1rem".

PresetThemePreset?Added in 0.1.0-alpha.22

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?Added in 0.1.0-alpha.22

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?Added in 0.1.0-alpha.22

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?Added in 0.1.0-alpha.22

The radius scale, over the preset's.

DensityThemeDensity?Added in 0.1.0-alpha.22

Control heights, table rows and card padding, over the preset's.

ChartPaletteThemeChartPalette?Added in 0.1.0-alpha.24

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

enum

Light, 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.

ColorScheme values
ValueDescription
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

enum

The 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.

ThemeChartPalette values
ValueDescription
Brand

The default: the brand color first, so a chart of one series is the app's color, then the ThemeChartPalette.Contrast colors without the one nearest the brand, ordered to keep neighbors apart. Charts of two, three or four series get sets that start at the brand too. A brand with no color of its own (ink, a gray) keeps ThemeChartPalette.Contrast.

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

enum

How much room controls and content take: control heights, table rows and card padding together.

ThemeDensity values
ValueDescription
Compact

More on screen: 32px controls, tight table rows.

Standard

The default: 36px controls.

Comfortable

Roomier: 40px controls, generous rows and padding.

ThemePreset

enum

A 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>.

ThemePreset values
ValueDescription
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

enum

The radius scale: controls, cards and dialogs shift together.

ThemeRadius values
ValueDescription
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.

Connection lost

Rejoining the server…