ColorTokens class abstract final

Defines the base color tokens for the design system.

Color tokens represent raw, context-independent color values. They provide a minimal, opinionated palette that can be used as defaults or reference values when constructing application themes.

These tokens should not be accessed directly from widgets. Instead, they are composed into semantic color roles via AppColors during theme creation.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

accent → const Color
A supporting accent color used alongside the primary brand color.
accentDark → const Color
A supporting accent color used on dark surfaces.
error → const Color
Color used to signal errors, validation failures, and destructive actions.
errorDark → const Color
Error color used on dark surfaces.
onAccent → const Color
The color used for text and icons displayed on accent backgrounds.
onAccentDark → const Color
The color used for text and icons displayed on accentDark.
onError → const Color
The color used for text and icons displayed on error backgrounds.
onErrorDark → const Color
The color used for text and icons displayed on errorDark.
onPrimary → const Color
The color used for text and icons displayed on primary backgrounds.
onPrimaryDark → const Color
The color used for text and icons displayed on primaryDark.
onSurface → const Color
Color used for text and icons displayed on surface backgrounds.
onSurfaceDark → const Color
Color used for text and icons displayed on surfaceDark.
primary → const Color
The primary brand color.
primaryDark → const Color
The primary brand color used on dark surfaces.
surface → const Color
Background color used for the main application surface.
surfaceDark → const Color
Background color used for the main application surface in dark mode.
textPrimary → const Color
Primary text color used for high-emphasis content.
textPrimaryDark → const Color
Primary text color used for high-emphasis content in dark mode.
textSecondary → const Color
Secondary text color used for supporting content.
textSecondaryDark → const Color
Secondary text color used for supporting content in dark mode.
textTertiary → const Color
Tertiary text color used for low-emphasis or helper content.
textTertiaryDark → const Color
Tertiary text color used for low-emphasis content in dark mode.