NeumorphicTokens class abstract
============================================================================= NEUMORPHIC SHADOW TOKENS
Core values for neumorphic "soft UI" effect.
Neumorphism creates depth through two shadows:
- Light shadow (top-left): simulates light source highlight
- Dark shadow (bottom-right): simulates natural shadow
Rationale: These values produce optimal depth perception on both light and dark surfaces without looking like floating paper.
Constructors
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
- blurDefault → const double
- 8px - Default blur (soft edges) - MOST COMMON Rule of thumb: blur = 2x distance for natural look
- blurMax → const double
- 16px - Maximum blur
- blurProminent → const double
- 12px - Prominent blur (very soft, dreamy)
- blurSubtle → const double
- 4px - Subtle blur (sharper edges, pressed states)
- darkIntensityDark → const double
- Dark mode: Strong shadow for visible depth
- darkIntensityLight → const double
- Light mode: Subtle shadow (too dark looks harsh)
- distanceDefault → const double
- 4px - Default distance (standard neumorphic depth) - MOST COMMON
- distanceMax → const double
- 8px - Maximum distance (very elevated)
- distanceProminent → const double
- 6px - Prominent (elevated elements like FABs)
- distanceSubtle → const double
- 2px - Subtle/pressed state (minimal depth)
- lightIntensityDark → const double
- Dark mode: Very subtle highlight (too bright looks unnatural)
- lightIntensityLight → const double
- Light mode: Strong highlight for visible depth
- pressedBlurMultiplier → const double
- pressedDistanceMultiplier → const double
- Pressed state uses reduced values for "sunken" effect