WarcraftTokens class

Shared layout/typography constants for Warcraft UI widgets.

These are deliberately limited to values that represent layout decisions (gaps, type scale, disabled opacity, minimum tap target). Pixel values that are bound to a specific piece of frame art (e.g. a 9-slice border's carved-frame width) stay as local literals in their widget file, since they encode the artwork's geometry rather than a spacing choice.

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

disabledOpacity → const double
Opacity applied to disabled interactive widgets.
minTapTarget → const double
Minimum interactive dimension recommended by both the Material and iOS HIG accessibility guidelines (48x48 logical pixels).
motionFast → const Duration
Fast interaction animation duration.
motionNormal → const Duration
Standard component animation duration.
motionSlow → const Duration
Slower entrance/exit animation duration.
radiusLg → const double
Large corner radius for elevated surfaces.
radiusMd → const double
Default corner radius for menus and panels.
radiusSm → const double
Compact corner radius for controls and badges.
spacing2xl → const double
Double-extra-large gap, used between major page sections.
spacing3xl → const double
Triple-extra-large gap, used for spacious showcase layouts.
spacingLg → const double
Large gap, in logical pixels.
spacingMd → const double
Medium gap, in logical pixels.
spacingSm → const double
Small gap, in logical pixels.
spacingXl → const double
Extra-large gap, in logical pixels.
spacingXs → const double
Extra-small gap, in logical pixels.
type2xl → const double
Medium heading font size, in logical pixels.
type3xl → const double
Display font size, in logical pixels.
typeBase → const double
Base (body) font size, in logical pixels.
typeLg → const double
Large font size, in logical pixels.
typeMd → const double
Medium font size, in logical pixels.
typeSm → const double
Small font size, in logical pixels.
typeXl → const double
Small heading font size, in logical pixels.
typeXs → const double
Extra-small font size, in logical pixels.