UiColorTokens class
Semantic color tokens.
Neutral by default (surfaces, borders, text). Brand colors are only
surfaced through intent tokens (primary, secondary, danger).
- Annotations
Constructors
- UiColorTokens({required Color background, required Color surface, required Color surfaceMuted, required Color surfaceInverse, required Color border, required Color input, required Color borderStrong, required Color textPrimary, required Color textMuted, required Color textInverse, required Color primary, required Color onPrimary, required Color secondary, required Color onSecondary, required Color danger, required Color onDanger, required Color success, required Color warning, required Color focusRing, required Color overlay})
-
const
Properties
- accent → Color
-
no setter
- accentForeground → Color
-
no setter
- background → Color
-
final
- border → Color
-
final
- borderStrong → Color
-
final
- card → Color
-
no setter
- cardForeground → Color
-
no setter
- danger → Color
-
final
- destructive → Color
-
no setter
- destructiveForeground → Color
-
no setter
- focusRing → Color
-
final
- foreground → Color
-
Shadcn-style semantic aliases. Existing Open UI Kit names stay available,
while newer components can depend on role-based surface tokens.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- input → Color
-
final
- muted → Color
-
no setter
- mutedForeground → Color
-
no setter
- onDanger → Color
-
final
- onPrimary → Color
-
final
- onSecondary → Color
-
final
- overlay → Color
-
final
- popover → Color
-
no setter
- popoverForeground → Color
-
no setter
- primary → Color
-
final
- primaryForeground → Color
-
no setter
- ring → Color
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondary → Color
-
final
- secondaryForeground → Color
-
no setter
- success → Color
-
final
- surface → Color
-
final
- surfaceInverse → Color
-
final
- surfaceMuted → Color
-
final
- textInverse → Color
-
final
- textMuted → Color
-
final
- textPrimary → Color
-
final
- warning → Color
-
final
Methods
-
copyWith(
{Color? background, Color? surface, Color? surfaceMuted, Color? surfaceInverse, Color? border, Color? input, Color? borderStrong, Color? textPrimary, Color? textMuted, Color? textInverse, Color? primary, Color? onPrimary, Color? secondary, Color? onSecondary, Color? danger, Color? onDanger, Color? success, Color? warning, Color? focusRing, Color? overlay}) → UiColorTokens -
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
Static Methods
-
lerp(
UiColorTokens a, UiColorTokens b, double t) → UiColorTokens
Constants
- dark → const UiColorTokens
- light → const UiColorTokens