Neumorphism
Stat Cards
Four neumorphic stat cards (temp, humidity, power, signal) cycle through live-updating values one at a time, each card pulsing its shadow on update.
csslight complexitysubtle motion
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
IoT dashboards, ambient data displays, smart-home panels, or any context showing slowly changing numeric metrics.
When not to
Dark backgrounds — neumorphic shadows rely on the hardcoded #e0e5ec light gray. Not suitable where real-time data binding is needed.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the tick interval from 900ms to 500ms, add a fifth card with icon "🔋" label "BATT" and range [10,100], and update the neu-grid to a 3-column layout. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.
Safe to edit
- tick interval (setInterval 900ms)
- vals array (initial values)
- limits array (min/max per card)
- card icons and labels
- card size (width/height 108px)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- visibilitychange stop/play guard
- prefers-reduced-motion early return
- IIFE wrapper
- neu-pulse class timeout cleanup
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded to #e0e5ec — neumorphic effect breaks on any other background
- No aria live region — screen readers won't announce value updates
More Neumorphism components
- Toggle SwitchesThree neumorphic toggle switches auto-cycle on/off with a smooth ochre-accented thumb slide and inset shadow track.
- Progress TrackNeumorphic inset progress track fills 0→100% via a slate-to-olive gradient fill, cycling with a percentage counter. Resets and loops automatically.
- Volume KnobA neumorphic volume knob with 24 tick marks auto-rotates back and forth over 6 seconds, its gradient marker sweeping the full 360 degrees.
- Ring GaugeSVG ring gauge fills with a sage-to-slate gradient arc over 4 seconds, counting a numeric percentage; resets and loops continuously.