Glass
Translucent, refracting layers floating over rich backgrounds; depth carries hierarchy.
Try it
Ground
gradient
Surface
rgba(255,255,255,.14)
Text
#ffffff
Accent
#ffffff
- Type
- sans
- Radius
- 24px
- Material
- backdrop-filter:blur(20px) saturate(160%); border:1px solid rgba(255,255,255,.3)
This screen uses only the look's tokens. Click, type and toggle it. The libraries below are what your agent installs to build the real thing.
What your agent builds it with
Primitives
Base UIUnstyled, accessible React primitives from the Radix, Floating UI and MUI teams.building your own design system where every pixel is custom
you want styled components today: use shadcn-ui (Base UI flavour) or coss-ui
Motion
MotionThe default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.dialogs, popovers and panels that must animate out before they unmount (AnimatePresence)
a hover colour change or a one-shot fade: a CSS transition costs zero bytes
Icons
LucideClean 24px stroke icons, one component per icon, the default set for shadcn/ui.app UI icons in a shadcn/ui or Base UI project (buttons, menus, sidebars)
brand or company logos: Lucide 1.x ships no brand icons, use simple-icons
Backgroundsalways
Paper ShadersZero-dependency WebGL shader backgrounds: mesh gradients, grain, dithering, liquid metal and more.hero background with a slow mesh or grain gradient behind headline text
you need a real 3D scene with camera and objects: use r3f
Glassalways
GlisseA faithful web implementation of Apple's Liquid Glass: refracting buttons, switches, tab bars and menus.an iOS 26-style floating tab bar or toolbar over photos or video
glass over flat or white backgrounds: there is nothing to refract, it just looks grey; use solid surfaces
The plan your agent reads
For “landing page with a signup form, a pricing table and toasts” in Glass: the plan tool's answer, word for word
look: Glass (glass)
framework: react (assumed; pass framework)
build with every line below: run its install, build its part with it (usage under it), then adapt it to the rules below. A hand-written stand-in for a listed part (a <details> for an Accordion) is a miss
component-kit (its parts for this page) -> mantine: a dense dashboard with date range pickers, rich tables, forms with validation and notifications from one vendor | npm i @mantine/core @mantine/hooks | use its Button, Card, Badge, Table, Input | else: boardui, coss-ui
motion (presses, gestures, menus and entrances) -> motion: The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations. (look's pick) | npm i motion
feedback -> mantine: the base kit ships it | else: sonner, react-hot-toast
glass (the Glass look needs it) -> glisse: A faithful web implementation of Apple's Liquid Glass: refracting buttons, switches, tab bars and menus. (look's pick) | npm i glisse | careful: dense forms, tables or text-heavy UI: translucency hurts contrast and legibility
import { Button, Glass, Slider } from 'glisse'
import { Pause } from 'lucide-react'
// A floating panel over a photo or video: Glass is the surface, its controls are glass too.
<Glass className="absolute inset-x-4 bottom-4 flex items-center gap-3 rounded-3xl p-3">
<Button icon={<Pause />} aria-label="Pause" />
<Slider aria-label="Position" value={position} max={duration} onValueChange={seek} className="flex-1" />
<Button variant="filled">Continue</Button>
</Glass>
background (the Glass look needs it) -> paper-shaders: Zero-dependency WebGL shader backgrounds: mesh gradients, grain, dithering, liquid metal and more. (look's pick) | npm i @paper-design/shaders-react@0.0.82
import { MeshGradient } from '@paper-design/shaders-react'
const reduce = typeof window !== 'undefined' && matchMedia('(prefers-reduced-motion: reduce)').matches
<MeshGradient
colors={['#0a0a0a', '#1e1b4b', '#4c1d95', '#0a0a0a']}
distortion={0.8}
swirl={0.4}
speed={reduce ? 0 : 0.2}
style={{ position: 'absolute', inset: 0 }}
/>
icons (every icon on the page: one size and stroke, set once) -> lucide: Clean 24px stroke icons, one component per icon, the default set for shadcn/ui. (look's pick) | npm i lucide-react
import { LucideProvider, Search } from 'lucide-react'
<LucideProvider size={16} strokeWidth={1.5}>
<Search aria-hidden />
</LucideProvider>
done when: every package above is imported where its part is, and no listed part is hand-written
vs: Not apple: the translucent layer is the point, not a supporting material. Not neon: light comes from what sits behind the glass, not from glow.
type: Medium-weight grotesk with strong contrast against busy backgrounds; never thin weights on glass.
colour: Glass needs something behind it: a photo, a shader gradient, or colour fields. Keep text on glass at AA contrast with a subtle scrim.
motion: Lift glass on press (scale 1.02 and stronger refraction); move backgrounds slowly, pause them offscreen.
avoid: glass on flat black (it looks like a grey box); stacking more than two glass layers; backdrop-filter over large scrolling areas on low-end devices
refs: name a real one first: the user's, else search Mobbin, Refero or Inspo (free) if connected, else Glisse glisse.kelvinzhang.ca, Apple Liquid Glass developer.apple.com or a DESIGN.md from styles.refero.design or devault.design, and say how to connect one (get references)
brief first: build every part it names before styling; the first screen shows the main content working, not an empty hero; at desktop width fill it (columns, a side panel), never a phone-width column in empty space
never, whatever the look: text under 4.5:1 contrast (on glass, over its lightest backdrop); a headline clipped or split mid-word at 390px; a font named, not loadedRules
- Type
- Medium-weight grotesk with strong contrast against busy backgrounds; never thin weights on glass.
- Colour
- Glass needs something behind it: a photo, a shader gradient, or colour fields. Keep text on glass at AA contrast with a subtle scrim.
- Motion
- Lift glass on press (scale 1.02 and stronger refraction); move backgrounds slowly, pause them offscreen.
Goes wrong when
- glass on flat black (it looks like a grey box)
- stacking more than two glass layers
- backdrop-filter over large scrolling areas on low-end devices
Not to be confused with
- Apple-likethe translucent layer is the point, not a supporting material.
- Neon / cyberlight comes from what sits behind the glass, not from glow.
Styles in Glass
Brief words that land here
glass · liquid glass · glassmorphism · translucent · frosted · blur · refraction · visionos




