Glassmorphic
Frosted panels floating over a colored field, edged with a single bright hairline.
Construction · Frosted
Panels are frosted rather than clear: a soft blur, a milky translucency, and a single pale hairline instead of a lit edge.
Every style renders this same screen, so the only thing changing between two of them is the style. The component above is the file below, running.
Prompt
Design this interface in the Glassmorphic style. Panels are frosted glass over a saturated gradient field: heavy backdrop blur, a bright hairline along the edge, and nothing fully opaque. Build every surface the
The numbers in this prompt are printed from the tokens below, so it cannot drift from what the specimen renders.
What carries the look
- frosted backdrop blur
- bright edge hairline
- saturated gradient field
- nothing fully opaque
What this style refuses
- flat opaque cards
- hard black outlines
- square corners
- grey backgrounds
The refusals are the half that keeps generated interfaces from converging — a prompt that only says what to add gets the default look.
Tokens
Palette
#e9e4ff#0e0b1e#f6f4ff#191333#c9bfff#332a5c#1b1633#efecff#544d78#a49bd1#5b3df5#a78bfa#ffffff#150a34Shape and type
Measured contrast — body 14.06:1 light, 16.69:1 dark; secondary text 6.28:1 and 7.54:1. Every pair clears WCAG AA in both themes, checked on each build.
Specimen · Specimen.tsx
import type { CSSProperties } from "react";
/**
* Vibary · Glassmorphic
*
* Frosted panels floating over a colored field, edged with a single bright hairline.
*
* One complete product screen, rendered from the token object below —