ChicoColors class

Semantic color roles for light and dark interfaces.

Widgets must read these roles — never hard-code #FFFFFF / #000000. Tint is the only brandable color; pass it to ChicoThemeData.light / ChicoThemeData.dark.

Roles follow Apple's semantic palette (label, fill, separator) so contrast stays correct when the seed accent changes.

Constructors

ChicoColors({required Color label, required Color secondaryLabel, required Color tertiaryLabel, required Color background, required Color groupedBackground, required Color fill, required Color separator, required Color tint, required Color onTint, required Color destructive, required Color onDestructive, Color success = defaultLightSuccess, Color onSuccess = defaultOnSuccess, Color warning = defaultLightWarning, Color onWarning = defaultOnWarning, required Color pressedOverlay, double disabledOpacity = 0.4})
Creates a complete semantic palette.
const
ChicoColors.dark({Color tint = defaultDarkTint, Color destructive = defaultDarkDestructive})
Apple-like dark palette. Override tint to brand the kit.
factory
ChicoColors.light({Color tint = defaultLightTint, Color destructive = defaultLightDestructive})
Apple-like light palette. Override tint to brand the kit.
factory

Properties

background → Color
App chrome / page background.
final
destructive → Color
Destructive actions (delete, remove, sign out).
final
disabledOpacity → double
Opacity multiplied onto any disabled control. Keep in 0.3–0.5.
final
fill → Color
Subtle control fill (neutral buttons, field wells).
final
groupedBackground → Color
Grouped lists, inset panels, slightly distinct from background.
final
hashCode → int
The hash code for this object.
no setteroverride
label → Color
Primary text and icons. Highest contrast against background.
final
onDestructive → Color
Text and icons drawn on destructive.
final
onSuccess → Color
Text and icons drawn on success.
final
onTint → Color
Text and icons drawn on tint.
final
onWarning → Color
Text and icons drawn on warning.
final
pressedOverlay → Color
Scrim painted while a control is pressed. Typically black/white at low alpha.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryLabel → Color
Secondary text (subtitles, timestamps, placeholders).
final
separator → Color
Hairline dividers and outlines.
final
success → Color
Positive status (saved, online, success banners).
final
tertiaryLabel → Color
Tertiary text (hints, disabled-looking metadata).
final
tint → Color
Accent / interactive tint (links, filled buttons, selected state).
final
warning → Color
Caution status (warning banners, pending).
final

Methods

copyWith({Color? label, Color? secondaryLabel, Color? tertiaryLabel, Color? background, Color? groupedBackground, Color? fill, Color? separator, Color? tint, Color? onTint, Color? destructive, Color? onDestructive, Color? success, Color? onSuccess, Color? warning, Color? onWarning, Color? pressedOverlay, double? disabledOpacity}) → ChicoColors
Copies this palette with optional overrides.
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.
override

Constants

defaultDarkDestructive → const Color
System red, dark mode (#FF453A).
defaultDarkSuccess → const Color
System green, dark mode (#30D158).
defaultDarkTint → const Color
System blue, dark mode (#0A84FF).
defaultDarkWarning → const Color
System orange, dark mode (#FF9F0A).
defaultLightDestructive → const Color
System red, light mode (#FF3B30).
defaultLightSuccess → const Color
System green, light mode (#34C759).
defaultLightTint → const Color
System blue, light mode (#007AFF).
defaultLightWarning → const Color
System orange, light mode (#FF9500).
defaultOnSuccess → const Color
White on success / warning fills.
defaultOnWarning → const Color
White on success / warning fills.