Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Color, contrast and motion

Text meets WCAG's 4.5:1 contrast in light and dark mode, and so does a brand color you set. In Windows high-contrast mode, components switch to the system's colors and keep their focus rings and indicators. When the user asks for reduced motion, components stop sliding and growing.

Contrast

  • Text has at least 4.5:1 contrast against its background in both color schemes; body text has 7:1. Disabled text is lighter, as WCAG allows.
  • A field's border and a switch's track have about 2:1 contrast against the page. Every field has a visible label above it. To meet a strict 3:1, darken --ib-color-outline. See Known gaps in the overview.
  • Alerts, banners and toasts show their status, such as success or danger, with an icon and a title as well as a color. A Badge's Status is color only, so its text must say what it means.

Your own brand and gray

IzzyBlazor checks IzzyTheme's Brand when the page renders. Text on a brand-colored button keeps 4.5:1 contrast. When neither white nor dark text would reach it, the button's fill gets lighter or darker. Brand-colored text, such as a link, keeps 4.5:1 on the page and on the gray fills. In dark mode, a dark brand is lightened until it stands out against the background.

A light brand, such as a yellow, keeps its color on buttons and checked boxes, where dark text or the check mark provides the contrast. The focus ring switches to the darker brand text color, so it still has 3:1 against the page. Gray is checked the same way: muted text keeps 4.5:1. See Themes and presets.

Colors you set directly aren't adjusted for contrast. This includes Accent.Of, style props such as Color and Bg, and CSS. Keep the pairs listed in Tokens and customizing together, and check their contrast yourself.

Charts

Lines don't rely on color alone. Each line has its own dash pattern and marker shape. Bars and pie slices differ only by color, and the legend, tooltips and Show data table name every series and slice. A few colors in the default palette (pink, yellow, aqua and orange) have less than 3:1 contrast against a white page. A chart that uses them should keep its legend or labels.

Windows high-contrast mode

In high-contrast mode (forced colors) the browser replaces the page's colors with the user's system colors and removes backgrounds and shadows. IzzyBlazor's components adapt:

  • Every focusable control shows its focus with an outline, which stays visible in system colors.
  • Checkboxes, radios and switches fall back to the browser's native controls.
  • Indicators shown as fills, such as a progress bar, a slider's track, a carousel's dots, a selected tab or a chosen option, switch to the system's highlight color.
  • Charts keep their own colors, so the series can still be told apart.

Reduced motion

When the user's system asks for reduced motion, components stop sliding, growing and turning:

  • Dialogs and drawers open and close without sliding, and so do popovers, menus and tooltips.
  • Accordions, collapsibles, tabs and the sidebar change at once.
  • Toasts appear without sliding in, and a carousel changes slides at once and doesn't start autoplay.
  • Rows, list items and DataGrid columns that move aside during a drag jump straight to their new places.
  • Chevrons don't turn, and the chat's typing indicator stops.
  • Spinners and progress bars slow down rather than stop, because their motion means "still working".

IzzyBlazor doesn't reduce motion across the whole page. To reduce your own animations, use @media (prefers-reduced-motion: reduce).

Connection lost

Rejoining the server…