Table of Contents

Class TwContainerTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Theme configuration for TwContainer. Override any property to customize container styles globally.

[ExcludeFromCodeCoverage]
public class TwContainerTheme
Inheritance
TwContainerTheme
Inherited Members

Remarks

The maximum widths and the numeric padding steps come from the shared MaxWidth and TwBlazorSpacing scales.

Constructors

TwContainerTheme()

public TwContainerTheme()

Properties

Base

Gets or sets the classes every container has, such as its full width.

public required string Base { get; set; }

Property Value

string

Centered

Gets or sets the classes that center the container in its parent.

public required string Centered { get; set; }

Property Value

string

DefaultMaxWidth

Gets or sets the maximum width used when no MaxWidth is set.

public ContainerSize DefaultMaxWidth { get; set; }

Property Value

ContainerSize

Gutter

Gets or sets the start and end padding used when no Gutter is set, typically growing with the screen.

public required string Gutter { get; set; }

Property Value

string

QueryContainer

Gets or sets the class that makes the container a query container, so its children can respond to its width with Tailwind's @sm:, @md: and similar prefixes.

public required string QueryContainer { get; set; }

Property Value

string

SurfaceDefault

Gets or sets the classes for Default.

public required string SurfaceDefault { get; set; }

Property Value

string

SurfaceElevated

Gets or sets the classes for Elevated.

public required string SurfaceElevated { get; set; }

Property Value

string

SurfaceSubtle

Gets or sets the classes for Subtle.

public required string SurfaceSubtle { get; set; }

Property Value

string