Table of Contents

Namespace TwBlazor.Configuration

Classes

TwAnchorPosition

Classes for each screen-anchored position used to place floating elements such as toasts and dialogs. For the CSS "position" property itself (absolute, relative, etc.), see TwBlazorPositioning.

TwBackgroundColor

A color palette split by weight, used for background colors in a single mode (light or dark).

TwBlazorBorder

The single combined home for everything border-related: width, semantic color, and neutral (gray-scale) color. Compose a class by picking one width and one color, e.g. \("{Border.Width.AccentEdge} {Border.Colors.Primary}"</code> or <code>\)"{Border.Width.Thin} {Border.Neutral.Base}".

TwBlazorBorderWidth

Global configuration for border-width utility classes, used by Width. Kept separate from border color so a width and a color can be mixed and matched.

TwBlazorColor

Shared color configuration used across all components: text, hover, focus, border, background, and surface colors.

TwBlazorComponents

A type-keyed bag of component themes. Only add the component themes you want to customize - e.g. new() { new TwBlazorSliderTheme { ... }, new TwBlazorSidebarTheme { ... } } - and look them up by type with Get<TTheme>(). Consumers that don't find an entry for a given theme type fall back to that component's built-in default.

TwBlazorDisplay

Global configuration for CSS display utility classes (e.g. block, flex) shared by all components. Each property holds a single, complete Tailwind class so it can be referenced from component themes or from a component's own markup without concatenation.

TwBlazorFlexbox

Global configuration for the flexbox utility classes shared by all components: direction, wrapping, grow/shrink, and the justify/align/align-content/align-self alignment scales. See TwFlexAlignmentScale for the shape of each alignment axis.

TwBlazorFontSizeScale

A reusable font-size scale (Tailwind's "text-*" size classes), used by Size.

TwBlazorFontWeightScale

A reusable font-weight scale (Tailwind's "font-*" weight classes), used by Weight.

TwBlazorGrid

Global configuration for the CSS grid utility classes shared by all components: column and row counts, spans and start lines at every breakpoint, subgrid, auto flow, implicit track sizes and cell alignment.

TwBlazorHeight

A reusable three-step height scale, used by component themes that need a small/medium/large fixed-height preset (e.g. a size variant that isn't just icon-driven).

TwBlazorIconSize

A reusable scale of square icon sizes (equal width and height, e.g. Tailwind's size-* shorthand), used by Icon.

TwBlazorInset

Global configuration for CSS inset utility classes (Tailwind's top-/bottom-/start-/end-), used to pin a relative/absolute-positioned element to an edge of its container. Kept separate from TwBlazorPositioning, which is only the CSS "position" mode itself (relative, absolute, etc.) - insets are a distinct CSS concern usually combined with it.

TwBlazorInteraction

Global configuration for interaction-state classes (cursors and disabled opacity) shared by all components.

TwBlazorOptions

Global configuration options for TwBlazor components.

TwBlazorOverflow

Global configuration for CSS overflow utility classes shared by all components.

TwBlazorPositioning

Global configuration for the CSS "position" utility classes (e.g. absolute, relative) shared by all components. For anchoring a floating element to a spot on screen (e.g. a dialog or toast corner), see TwAnchorPosition instead.

TwBlazorRounded

Global configuration for the border-radius (rounded corner) scale shared by all components.

TwBlazorRoundedScale

A reusable set of border-radius classes for one edge/corner group (e.g. top, start). Used by TwBlazorRounded for its directional variants.

TwBlazorShadow

Global configuration for the shadow (elevation) scale shared by all components.

TwBlazorSizing

Global configuration for shared width/height utility classes reused by all components, so "w-full", "h-full", and common square icon sizes aren't retyped in every component theme.

TwBlazorSpacing

Global configuration for spacing utility classes shared by all components. Each scale is keyed by its step on Tailwind's spacing scale, so Gap[4] holds gap-4 and Padding[0.5] holds p-0.5, and every class is written out once.

TwBlazorTextTransform

Global configuration for CSS text-transform utility classes shared by all components.

TwBlazorTheme

The root theme configuration, aggregating the rounded, shadow, and color scales along with per-component theme overrides.

TwBlazorTokens

Shared design tokens: the full Tailwind classes that many component themes reuse, such as the focus ring, the neutral fills and inks, and the disabled look. Each is declared once in the theme file and referenced everywhere else, so changing one changes every component that uses it.

TwBlazorTransition

Global configuration for CSS transition utility classes shared by all components: the property being transitioned, the duration scale, and the common property+duration combinations most components reach for. Compose a one-off combination from Colors/Transform, DurationFast/DurationSlow, and EaseInOut if none of the pre-combined properties fit.

TwBlazorTypography

Global configuration for shared typography utility classes (font-size scale, font-weight scale, text alignment and truncation) reused across component themes.

TwBlazorWidth

A reusable three-step width scale, used by component themes that need a small/medium/large fixed-width preset.

TwBorderNeutralTones

A reusable set of neutral (gray-scale) border tones, mirroring the border-related members of TwSurfacePalette so they can also be reached from Neutral alongside the semantic Colors and the shared Width.

TwClassGroup

A custom set of css classes that conflict with each other, so only the last one added survives a merge.

TwClassMergeOptions

Controls how conflicting Tailwind classes are merged when a component builds its class attribute.

TwClassScale

A numbered utility keyed by its number, such as order-3 under key 3.

TwDateTimeFormatOptions

The date and time formats TwBlazor components render with. Every value is optional and is a .NET custom or standard date and time format string.

TwFlexAlignmentScale

A reusable alignment scale for a single flexbox/grid alignment axis (e.g. justify-content, align-items). Not every axis supports every value - for example justify-content has no "baseline" - so leave the classes that don't apply to a given axis unset.

TwFlexBasisScale

The flex basis classes, one for each FlexBasis.

TwGridAutoFlowScale

The grid auto flow classes, one for each GridAutoFlow.

TwGridAutoSizeScale

The implicit track size classes for either axis, one for each GridAutoSize.

TwLocalizationOptions

Configures the language and the date and time formats TwBlazor components render with. It is read once, when AddTwBlazor is called, and is shared by the whole application.

TwMaxWidthScale

The maximum width classes, one for each ContainerSize.

TwResponsiveClass

One Tailwind utility written out at every breakpoint, e.g. grid-cols-2, sm:grid-cols-2 and so on.

TwResponsiveFlexDirection

The flex direction classes written out at every breakpoint, so a layout can stack on a phone and sit side by side on a wider screen.

TwResponsiveScale

A numbered utility written out at every breakpoint, keyed by its number: for example grid columns, where key 3 holds grid-cols-3, sm:grid-cols-3 and so on.

TwSpacingStepScale

A spacing utility keyed by its step on Tailwind's spacing scale, such as gap-4 under key 4 and gap-0.5 under key 0.5.

TwTextColor

A color palette split by weight, used for text colors in a single mode (light or dark).