aura-glass
v2.16.2
Published
A comprehensive glassmorphism design system for React applications with 142+ production-ready components
Maintainers
Readme
AuraGlass
The living glass OS for interfaces that feel hand-polished, emotionally aware, and production ready from day one. AuraGlass marries premium-grade craft with quantum-inspired intelligence, delivering self-healing glassmorphism, multi-sensory feedback, and Genesis-powered AI systems that rewrite what premium software can feel like.
Over 356 adaptive components. 17 world-first inventions. 8 AI-powered suites. One cohesive ecosystem that designs, optimizes, and deploys itself.
Table of Contents
- Vision
- What’s New in 2.1
- Signature Systems
- Liquid Glass Parity+
- Multi-Sensory + AI Suite
- Production Blueprint
- Developer Experience
- Install in Minutes
- Use AuraGlass
- Deploy with Confidence
- Key Resources
Vision
A new class of interface deserves more than a component library. AuraGlass senses biometrics, adapts in milliseconds, and orchestrates spatial audio, haptics, neuromorphic learning networks, and GPU-grade material physics. It is a self-optimizing foundation for premium flagships, immersive commerce, and consciousness-aware control rooms.
Proof points
- Future-native – Quantum UI states, neural weights, and probabilistic gestures allow interfaces that anticipate intention.
- Self-healing – GlassMetaEngine detects visual or accessibility drift and restores perfection automatically.
- Environmental intelligence – Sensors, biometrics, and contextual cues feed a contextual engine that reharmonizes tint, tone, and behavior in real time.
- Enterprise hardening – Auth, rate limiting, Redis caching, Sentry monitoring, Docker/Kubernetes assets, and CI/CD templates ship in the box.
What’s New in 2.1
Design Matrix Persona System
AuraGlass 2.1 introduces the Design Matrix: a canonical system of ten personas (Midnight Slate, Midnight Meridian, Solar Apex, Violet Nebula, Aurora Noir, Helios Foundry, Glacier Morn, Terra Inflect, Lumen Veil, Nimbus Relay) that power runtime theming, metadata, and adaptive styling. Each persona defines semantic tokens for backgrounds, text, borders, accents, states, shadows, gradients, and charts, ensuring cohesive experiences across applications.
Key Features:
- Canonical Dataset: Defined in
src/theme/designMatrix.ts, personas include metadata (name, description, context) and tokens for colors, typography, motion, and glassmorphism parameters. - Runtime Theming: Use
ThemeProviderwithinitialPersonaor controlledpersonaprops to apply themes; persists via localStorage ifpersistPersonais enabled. - PersonaPicker Component: Drop-in
<PersonaPicker />for seamless switching, sourced from the Design Matrix. - Autogenerated CSS: Run
npm run glass:generate-persona-cssto create[data-persona]variables insrc/styles/generated/persona-variables.css; validate in CI withnpm run glass:validate-persona-css. - Integration: Components like
GlassAppShell,GlassHeader, and charts automatically consume persona tokens for focus rings, shadows, and palettes.
Usage Example:
import { ThemeProvider, PersonaPicker, usePersonaTheme } from 'aura-glass';
function App({ children }) {
return (
<ThemeProvider initialPersona="midnight-slate" persistPersona>
<PersonaPicker orientation="horizontal" />
{children}
</ThemeProvider>
);
}
function PersonaAwareComponent() {
const { personaId, persona, setPersona } = usePersonaTheme();
return (
<button onClick={() => setPersona('solar-apex')}>
Switch to {persona.meta.name} ({personaId})
</button>
);
}This system eliminates manual theming, ensures WCAG compliance per persona, and scales to new domains while maintaining AuraGlass's glassmorphism DNA.
- Universal SSR helpers – Import from
aura-glass/utils/envforisBrowser,safeMatchMedia,getSafeWindow,useClientEffect, and deterministic hydration everywhere. - Deterministic effects –
SeededRandomplusseedprops onSeasonalParticlesandGlassShatterEffectsrender identical markup on the server and the client. - Advanced + quantum components – Living ecosystem simulators, neuromorphic learning networks, and quantum entanglement visualizers extend AuraGlass beyond UI.
- Consciousness streaming –
ConsciousnessStreamProvidercentralizes event logging and response logic for consciousness-aware flows. - Exported tooling constants – Access
component_inventory_json_pathand reduced-motion guides at build time to automate audits.
React 18/19 + 3D Effects Compatibility (2.1.5)
AuraGlass 2.1.5 hardens React 18/19 compatibility for all 3D glass effects while keeping standard components drop-in safe for existing React 18 stacks.
- Isolated 3D entrypoint – All R3F-heavy components now live under the
aura-glass/threeentry (e.g.GlassShatterEffects,SeasonalParticles,AuroraPro,ARGlassEffectsand helpers likeshatterPresets,auroraThemes,ARGlassAnimations). The rootaura-glassentry no longer imports@react-three/fiber. - React-aware lazy loading – 3D components are implemented as
.r3fmodules with thin wrappers that lazily import them only when React 19 is detected at runtime; React 18 receives styled fallback containers that preserve layout without touching R3F internals. - Safer presets & factories – Presets and AR helper factories have been moved into non-R3F helper modules so they can be imported without forcing Three/Fiber into SSR bundles.
- Next.js integration matrix – CI now spins up two Next.js test apps from the published tarball: React 18 + Next 14.2 (root entry only) and React 19 + Next 15 (using
aura-glass/three); Playwright smoke tests fail the build if hook/registry errors or reconciler crashes are detected.
Signature Systems
Living Intelligence
- GlassMetaEngine rebalances layouts with quantum-inspired optimization and neural healing models.
- AI Auto-Composer translates natural language prompts into layouts that match design tokens and performance budgets.
- Contextual Engine fuses biometrics, sensor arrays, and environment data to deliver perfectly tuned states.
- NeuroSync introduces EEG-aware UI modulation for focus, calm, or celebration moments.
Spatial + Sensory Presence
- Omniverse Engine synchronizes AR, VR, MR, and web surfaces with holographic glass rendering.
- Multi-Sensory Hub choreographs haptics, spatial audio, ambient particles, and lighting cues.
- Spatial Persistence preserves component state across devices for always-on experiences.
Quantum & Neuromorphic R&D
- Quantum UI States keep interactions in graceful superposition until intent collapses.
- Quantum-Neuromorphic Engine brings biometric stress detection, molecular bonding interactions, multi-dimensional gesture recognition, and living ecosystem simulation into a single programmable layer.
Liquid Glass Parity+
AuraGlass reproduces the physics and restraint of handcrafted premium glass, then adds controls for every production edge case.
- LiquidGlassMaterial primitive – Physically accurate Snell’s law refraction, tunable IOR bands (1.33–1.52), and thickness controls.
- Environmental adaptation – Automatic WCAG AA/AAA compliance by sampling real-time luminance.
- GPU acceleration with grace – WebGL shaders where available, CSS fallbacks everywhere else.
- Motion responsiveness – Device tilt, micro-interactions, and ripple physics connect touch to light.
- Contrast Guard – Backdrop-aware tinting keeps text legible across unpredictable imagery.
- Quality tiers – Ultra/High/Balanced/Efficient profiles decide shader cost, particle density, and sampling budgets.
- Zero breaking changes – Opt into
material="liquid"for legacy safety.
Multi-Sensory + AI Suite
- GlassIntelligentFormBuilder, GlassPageBuilder, and Genesis-inspired CMS tools craft intelligent content journeys.
- GlassAdvancedDataViz, GlassHeatmap, and Molecular Bonding visualizers make data feel alive.
- GlassAdvancedVideoPlayer + AudioPlayer harmonize adaptive bitrate, haptics, and spatial audio.
- GlassEcommerceProvider, SmartShoppingCart, and ProductRecommendations power luxury retail fuelled by predictive AI.
- GlassMediaProvider, ImageProcessingProvider, and IntelligentImageUploader bridge OpenAI, Google Vision, Remove.bg, and on-device optimizations.
- VoiceGlassControl + EyeTrackingProvider unlock natural voice and gaze navigation, with wake words, feedback loops, and transcript overlays.
- GlassBiometricAdaptation + Achievement systems personalize experiences using heart rate, stress signals, or goals.
Production Blueprint
- Infrastructure – Docker and docker-compose files, Nginx reverse proxy, PM2 profiles, and Kubernetes-ready Helm charts.
- Realtime collaboration – WebSocket server backed by Socket.io and Redis pub/sub for presence, reactions, and cursors.
- Security & auth – JWT flow with refresh support, role-based access control, API key governance, rate limiting, and input sanitization.
- AI integrations – OpenAI, Anthropic, Google Vertex, Stability AI, Vision APIs, Remove.bg, Redis caching, and S3-compatible storage.
- Cost intelligence – Automatic model tiering, batching, LRU caches, graceful fallbacks, and usage analytics baked into the services.
- Observability – Sentry tracing plus logs flowing through
logs.txtandbuild-log.txtfor post-mortems.
Developer Experience
- Persona-aware theming –
ThemeProvider,usePersonaTheme(), and<PersonaPicker />hydratehtml[data-persona], persist selections, and expose persona metadata instantly. - TypeScript all the way down – 100% strict-mode safe with zero
anys across physics, gestures, and AI services. - World-class accessibility – Entire system honors
prefers-reduced-motion, exposesuseEnhancedReducedMotion, and keeps every animation optional without reducing functionality. - SSR-native – Guarded browser globals,
initializeAuraGlassClient(), andAuraGlassClientBoundaryremove hydration traps for Next.js, Remix, or bespoke servers. - Testing discipline – AI service validation, rate-limit suites, integration tests, and Playwright + Jest tooling keep regressions out of flight.
- Houdini-ready –
HoudiniGlassProvider,HoudiniGlassCard, and shader presets unlock CSS Houdini acceleration with progressive enhancement.
Install in Minutes
Step 1 – Peer dependencies
npm install react react-dom react-hook-form react-chartjs-2 framer-motion lucide-react
npm install three @react-three/fiber # required only if you use 3D effects
npm install @radix-ui/react-dropdown-menu @radix-ui/react-select @radix-ui/react-label @radix-ui/react-slot
npm install @sentry/react
npm install @react-three/drei # optional helpers for advanced 3D scenesStep 2 – AuraGlass
npm install aura-glass
# or yarn add aura-glass
# or pnpm add aura-glassStep 3 – Global styles
// root layout or entry file
import 'aura-glass/styles';Step 4 – (Optional) SSR support
import { AuraGlassSSRProvider } from 'aura-glass/ssr';
export function App({ children }) {
return <AuraGlassSSRProvider>{children}</AuraGlassSSRProvider>;
}Step 5 – Design tokens & Tailwind helpers
import auraTokens, { personas } from 'aura-glass/tokens';
console.log(auraTokens.version); // 1.0.0
console.log(personas[0].metadata.displayName);// tailwind.config.ts
import type { Config } from 'tailwindcss';
import theme from 'aura-glass/tokens/tailwind';
export default {
content: ['./src/**/*.{ts,tsx}'],
theme,
} satisfies Config;After adjusting personas inside
src/theme/designMatrix.ts, runnpm run glass:generate-persona-css(andnpm run glass:validate-persona-cssin CI) to regenerate[data-persona]variables atsrc/styles/generated/persona-variables.css.
Use AuraGlass
import { useEffect } from 'react';
import {
OptimizedGlass,
GlassCard,
MagneticButton,
GlassMagneticCursor,
Motion,
GlassModal,
initializeAuraGlass,
} from 'aura-glass';
import 'aura-glass/styles';
export function Hero() {
useEffect(() => {
initializeAuraGlass({
qualityTier: 'auto',
monitoring: true,
animations: {
enabled: true,
duration: 280,
easing: 'cubic-bezier(0.4, 0, 0.2, 1)',
},
}).catch(console.error);
}, []);
return (
<div className="min-h-screen bg-gradient-to-br from-slate-100 via-sky-50 to-blue-100">
<GlassMagneticCursor variant="glow" showCursor />
<OptimizedGlass variant="frosted" className="p-8 m-6" physics>
<Motion type="spring" animateOnMount>
<GlassCard hoverable className="space-y-6">
<h1 className="text-3xl font-semibold">Welcome to AuraGlass</h1>
<p>Liquid glass, spatial audio, and predictive AI in one responsive canvas.</p>
<MagneticButton
variant="primary"
intent="primary"
aria-label="Launch experience"
>
Launch Experience
</MagneticButton>
</GlassCard>
</Motion>
</OptimizedGlass>
</div>
);
}// Liquid Glass Parity+ modal usage
function LiquidGlassModal({ open, onClose }: { open: boolean; onClose(): void }) {
return (
<GlassModal
open={open}
onClose={onClose}
title="Liquid Glass Modal"
description="Environmental tinting, GPU refinement, WCAG confidence."
material="liquid"
materialProps={{
ior: 1.52,
thickness: 12,
tint: { r: 0, g: 0, b: 0, a: 0.1 },
variant: 'regular',
quality: 'high',
}}
>
<div className="space-y-4">
<p>This modal uses liquid glass with:</p>
<ul className="space-y-2 text-sm">
<li>• Physically accurate IOR refraction</li>
<li>• Environmental backdrop adaptation</li>
<li>• Automatic WCAG compliance</li>
<li>• Motion-responsive effects</li>
<li>• GPU-accelerated rendering</li>
</ul>
</div>
</GlassModal>
);
}Deploy with Confidence
cp .env.example .env
npm install
# Recommended
docker-compose up -d
# Manual path
./scripts/deploy.sh- Frontend
http://localhost:3000 - API
http://localhost:3002 - WebSocket
ws://localhost:3001
Need to scale? Slide the Docker images into Kubernetes with the provided Helm charts, wire Redis + Postgres, and plug Sentry + analytics directly into initializeAuraGlass.
Key Resources
INSTALLATION.md– Upgrade guides, troubleshooting, and migration notes.docs/README.md– Component encyclopedias, design tokens, and architecture briefs.docs/tokens/design-tokens.md– Lighting, motion, and color blueprints.docker-compose.yml– Reference deployment stack.
AuraGlass is licensed under the MIT License. Craft with care, push the frontier, and let the glass come alive.
