TwColors class

Tailwind CSS v4 complete color palette — 22 color families × 11 shades plus white, black, and transparent constants.

Every family is a TwColor (extends MaterialColor) so you can access .shade50.shade900 and .shade950 (the extra deep Tailwind v4 shade).

Usage:

.bg(TwColors.blue.shade500)
.textColor(TwColors.slate.shade700)

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

amber → const TwColor
black → const Color
Pure black — equivalent to Tailwind black.
blue → const TwColor
current → const Color
Current colour (inherits from parent) — equivalent to Tailwind currentColor.
cyan → const TwColor
emerald → const TwColor
fuchsia → const TwColor
gray → const TwColor
green → const TwColor
indigo → const TwColor
lime → const TwColor
neutral → const TwColor
orange → const TwColor
pink → const TwColor
purple → const TwColor
red → const TwColor
rose → const TwColor
sky → const TwColor
slate → const TwColor
stone → const TwColor
teal → const TwColor
transparent → const Color
Fully transparent — equivalent to Tailwind transparent.
violet → const TwColor
white → const Color
Pure white — equivalent to Tailwind white.
yellow → const TwColor
zinc → const TwColor