CarpenterThemeData class final

Immutable semantic theme assembled from generated Carpenter tokens for one brightness, contrast, and density combination.

Annotations

Constructors

CarpenterThemeData.dark({ContrastMode contrast = ContrastMode.standard, CarpenterDensity density = CarpenterDensity.normal})
Builds the dark token theme for the requested contrast and density.
factory
CarpenterThemeData.light({ContrastMode contrast = ContrastMode.standard, CarpenterDensity density = CarpenterDensity.normal})
Builds the light token theme for the requested contrast and density.
factory

Properties

actions CarpenterActionTheme
Semantic action palette and interaction-state resolver.
final
brightness Brightness
Effective light/dark brightness used to select generated token values.
final
content CarpenterContentTheme
Semantic foreground colors for ordinary content.
final
contrast ContrastMode
Requested semantic contrast mode used while selecting token values.
final
density CarpenterDensity
Global density used by semantic size and spacing resolvers.
final
feedback CarpenterFeedbackTheme
Passive feedback/status role palette.
final
fields CarpenterFieldTheme
Semantic field palette and interaction/validation-state resolver.
final
focus CarpenterFocusTheme
Focus-ring color and geometry.
final
hashCode int
The hash code for this object.
no setterinherited
motion CarpenterMotionTheme
Semantic durations, curves, and loading-motion metrics.
final
overlay CarpenterOverlayTheme
Shared overlay/menu/dialog/toast surface colors.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection CarpenterSelectionTheme
Semantic selection palette and selected/disabled-state resolver.
final
shapes CarpenterShapeTheme
Semantic radii, border widths, and shape-related metrics.
final
sizes CarpenterSizeTheme
Semantic component and layout size resolver.
final
spacing CarpenterSpacingTheme
Density-aware component and layout spacing resolver.
final
surface CarpenterSurfaceTheme
Base and subtle application surface colors.
final
typography CarpenterTypographyTheme
Typography resolver for general text and component-specific text roles.
final

Methods

copyWith({CarpenterContentTheme? content, CarpenterActionTheme? actions, CarpenterFieldTheme? fields, CarpenterSelectionTheme? selection, CarpenterFeedbackTheme? feedback, CarpenterFocusTheme? focus, CarpenterSurfaceTheme? surface, CarpenterOverlayTheme? overlay}) CarpenterThemeData
Returns a theme with selected semantic contracts replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited