HatangPalette class

Colour palette (ported from the agent app's theme/tokens.ts).

Constructors

HatangPalette({required Color bg, required Color surface, required Color raised, required Color elevated, required Color border, required Color borderStrong, required Color fg, required Color muted, required Color dim, required Color success, required Color successSoft, required Color warn, required Color warnSoft, required Color danger, required Color dangerSoft, required Color info, required Color infoSoft, required Color brandStart, required Color brandEnd, required Color pressed})
Creates a palette.
const

Properties

bg → Color
Page background.
final
border → Color
Hairlines.
final
borderStrong → Color
Stronger outlines.
final
brandEnd → Color
Brand gradient end (sky).
final
brandStart → Color
Brand gradient start (green).
final
danger → Color
Danger tone.
final
dangerSoft → Color
Danger background.
final
dim → Color
Tertiary text.
final
elevated → Color
Dialogs and sheets.
final
fg → Color
Primary text.
final
hashCode → int
The hash code for this object.
no setterinherited
info → Color
Info tone.
final
infoSoft → Color
Info background.
final
muted → Color
Secondary text.
final
pressed → Color
Pressed overlay.
final
raised → Color
Raised surfaces (their bubbles).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
success → Color
Success tone.
final
successSoft → Color
Success background.
final
surface → Color
Cards and bubbles.
final
warn → Color
Warning tone.
final
warnSoft → Color
Warning background.
final

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

dark → const HatangPalette
Near-black with cool grey surfaces stacked by elevation.
light → const HatangPalette
Warm off-white paper, ink-black text.