Glassmorphism is the primary UI surface language in Aurora Drift. Rather than solid opaque cards, every panel floats above the navy background as a semi-transparent, blurred pane — letting the animated aurora layers bleed through and keeping the cosmic atmosphere intact. This is achieved through a combination of a reusableDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/aurora-drift/llms.txt
Use this file to discover all available pages before exploring further.
.glass-panel CSS class, Tailwind opacity utilities, and carefully tuned backdrop-filter blur values.
The .glass-panel Utility Class
The .glass-panel class is defined in assets/main.css and serves as the baseline glassmorphism building block. Apply it to any container that should look like frosted deep-space glass.
Property Breakdown
border — #ffffff0d (~5% white)
A hairline 1 px border at just 5% white opacity. It catches light subtly without drawing the eye — creates a delicate edge that separates the panel from the background without harsh contrast.
background — #0a112866 (~40% opacity)
The
navy-800 surface color (#0A1128) at approximately 40% opacity. This transparency level lets the animated aurora layers bleed through clearly while keeping panel content legible against busy backgrounds.backdrop-filter: blur(12px)
A 12 px gaussian blur applied to everything behind the panel. This is the key glassmorphism effect — the aurora gradient beneath becomes a soft, dreamy wash rather than a sharp distraction. Maps to Tailwind’s
backdrop-blur-md.border-width: 1px
Explicit 1 px border ensures the hairline edge renders consistently across browsers, including those that need the border declared separately from
border-color.Applying .glass-panel in JSX
Nav Glassmorphism
The navigation bar uses a slightly different formula — thinner background opacity to feel more atmospheric at the top of the viewport:| Property | Value | Effect |
|---|---|---|
bg-navy/50 | #050814 at 50% opacity | Half-transparent — aurora is visible above the nav |
backdrop-blur-md | blur(12px) | Blurs page content scrolling behind the nav bar |
border-b | 1 px bottom border | Hairline separator at the bottom of the nav |
border-white/5 | White at 5% opacity | Barely-there divider, consistent with .glass-panel |
Card and Surface Backgrounds
Beyond.glass-panel, the project uses several opacity-modified background classes for layering surfaces:
| Class | Value | Usage |
|---|---|---|
bg-navy-800/80 | #0A1128 at 80% opacity | Primary card surface — darker panel background |
bg-navy/40 | #050814 at 40% opacity | Deep overlay sections, hero gradient overlays |
bg-navy/50 | #050814 at 50% opacity | Nav bar background |
bg-navy/60 | #050814 at 60% opacity | Modal and drawer backdrops |
bg-white/5 | White at 5% opacity | Very subtle light surface on dark panels |
bg-white/10 | White at 10% opacity | Hovered light surface (e.g. nav mobile drawer) |
Glow Shadow Utilities
Glow effects are implemented as Tailwind arbitrarybox-shadow values. They simulate the light emission of the aurora colors bleeding through the glass panels.
| Tailwind Class | Color | Hex | Spread | Opacity | Use Case |
|---|---|---|---|---|---|
hover:shadow-[0_0_20px_rgba(167,243,208,0.4)] | aurora-mint | #A7F3D0 | 20 px | 40% | Card hover — soft mint bloom |
shadow-[0_0_10px_rgba(45,212,191,0.5)] | aurora-turquoise | #2DD4BF | 10 px | 50% | Active dot / icon glow |
shadow-[0_0_15px_rgba(20,184,166,0.6)] | aurora-teal | #14B8A6 | 15 px | 60% | Focused input / selected border |
shadow-[0_0_30px_rgba(20,184,166,0.4)] | aurora-teal | #14B8A6 | 30 px | 40% | Large card section highlight |
Typical Card Pattern
A standard project or content card in Aurora Drift combinesbg-navy-800/80, a subtle white border, rounded corners, padding, and a hover state that shifts the border color and adds an aurora glow:
Aurora Layer Blending
Dark-Only Theme
Aurora Drift is designed exclusively for dark mode. There are no light-mode overrides, no
prefers-color-scheme: light media queries, and no dark: Tailwind variants. The navy background, translucent glass surfaces, and aurora glow effects all depend on a dark canvas to function correctly. Do not add light-mode styles — the entire visual language would collapse without the dark foundation.