๐จ Play Metaphor Effects Reference
Design immersive UI experiences using metaphor-based visual effects. This guide outlines core effect types, tunable intensities, theme alignment, and performance tradeoffs.
๐งพ Introductionโ
Play+ brings expressive, emotion-driven theming to enterprise UI through three core metaphors: Glass, Light, and Liquid. These effects shape how components look, feel, and respondโbringing clarity, depth, and fluidity to interactions.
This system is designed to scale. Use Minimal as your base theme. Layer on Professional, Modern, or Vibrant styles as neededโall while staying mindful of performance budgets.
Key elements:
- Metaphors: Glass (structure), Light (focus), Liquid (motion)
- Intensity levels: From subtle to dramatic
- Themes: Tailored visual personalities for different use cases
๐ญ Theme Definitionsโ
Minimalโ
- Clean lines, generous whitespace
- Neutral colors (grays, whites)
- Simple typography, low-interaction depth
- Prioritizes clarity and speed
Professionalโ
- Structured, clean, and trustworthy
- Balanced colors and layout grids
- Focus on hierarchy, legibility, and precision
- Suitable for enterprise products
Modernโ
- Trend-driven, animated, responsive
- Bold colors, smooth transitions
- Slight depth and motion for engagement
- Appeals to tech-savvy users
Vibrantโ
- Bright gradients, bold type, and energetic motion
- Playful micro-interactions for expressive feedback
- Ideal for creative tools, youth-focused or consumer apps
๐ง GLASS EFFECTSโ
Glass effects create structure and depth using layers of blur and transparency.
Variable | Description |
---|---|
glass-0 | Solid with slight gradient โ no transparency |
glass-10 | Barely visible transparency and blur |
glass-25 | Light frost with minor background diffusion |
glass-50 | Balanced transparency and blur |
glass-75 | Noticeable glass, content visible beneath |
glass-100 | Strong blur and full transparency |
โ ๏ธ Higher values (>
glass-50
) may affect performance on lower-end devices due tobackdrop-filter
usage.
๐ก LIGHT EFFECTSโ
Light effects help guide attention, add focus, and simulate ambiance. Categorized below for clarity:
Glow & Aura:
box-shadow-glow
โ Soft glowing shadow around componentneon-glow
โ Strong colored glow (neon-style)pulse-glow
โ Expanding-contracting glow cyclediffuse-glow
โ Foggy ambient glow
Motion & Focus:
shine-on-hover
โ Subtle sweep of light during hoverflicker-spark
โ Sparkling flicker for animated focusgradient-shimmer
โ Animated shimmer across surface
Ambient & Depth:
soft-ambient-shadow
โ Mild depth-inducing shadowradial-background-glow
โ Light aura behind the elementblur-opacity-layer
โ Diffuse white layer for bloom effect
Visual Tricks:
lens-flare
โ Directional light burst for highlightsreflection-transform
โ Mirror-like reflection using CSS transformprism
โ Multi-spectrum lighting for prism-like shimmer
๐ LIQUID EFFECTSโ
Liquid effects simulate organic motion, elasticity, and interaction feedback.
Variable | Description | Best For |
---|---|---|
ripple-wave | Circular ripple on tap | Buttons, cards |
drip-droplet | Droplet fall animation | Loading, progress |
blob-morph | Shape-shifting blob interaction | Backgrounds, modals |
liquid-rise | Fluid fill animation | Progress, volume bars |
surface-stretch | Elastic surface reaction | Hover/press feedback |
merge-absorb-split | Merge or split of blobs | Interactive canvases |
viscosity-drag | Resistance feel on drag | Sliders, sliders |
swirl | Swirling liquid feedback | Action transitions |
refract-distort | Water-like distortion effect | Background visuals |
splash-impact | Burst of splash at interaction point | Button tap effect |
elastic-hover | Bounce/stretch on hover | Cards, nav items |
ripple-press | Ripple-out on click or press | CTA buttons |
fill-up-hold | Hold-to-fill animation bar | Upload, hold actions |
๐๏ธ Intensity Levelsโ
Use suffixes to modulate effect strength and theme mapping:
Suffix | Visual Intensity |
---|---|
-0 | None / Off |
-10 | Barely there |
-25 | Subtle |
-50 | Balanced |
-75 | Strong |
-100 | Intense |
Examples:
glass-50
: Mid-strength frosted panelpulse-glow-75
: Vibrant heartbeat glowblob-morph-25
: Gentle morphing feedbackripple-wave-100
: Fullscreen impact ripple
๐ง Use consistent token naming:
--effect-type-intensity
oreffect-class-50
๐งฎ Performance Budgeting Guidelinesโ
Rich effects can cost performance. Balance visuals with frame budget:
Frame Budget Targetโ
- Target 60fps โ 16.6ms per frame
- Leave ~6ms for UI effects max
Cost Scale (approx.):โ
Effect Type | Example | Performance Impact |
---|---|---|
Blur (backdrop-filter ) | glass-50+ | ๐ด High (3โ8ms) |
Glows & shadows | box-shadow-glow | ๐ Medium (1โ3ms) |
Animated gradients | gradient-shimmer | ๐ Medium (1โ3ms) |
Transforms | swirl , stretch | ๐ข Low (<1ms) |
Opacity & static layers | light-fog , fill |