A collection of AI agent skills focused on modern CSS/SVG visual effects and web UI techniques.
This repository contains focused, self-contained skills that teach AI agents how to implement advanced visual effects — starting with Apple's Liquid Glass refraction system introduced in iOS 26 / macOS 26.
Install via the skills CLI:
npx skills add Zettersten/skills@liquid-glassOr browse at: zettersten.github.io/skills
This repo currently includes 1 skill:
| Skill | Folder | Description |
|---|---|---|
| Liquid Glass | liquid-glass |
Implements Apple's iOS 26 / macOS 26 Liquid Glass UI effect using CSS backdrop-filter and SVG feDisplacementMap. Covers the full technique from physics (Snell's law, SDF) to copy-paste HTML/React templates with a zero-dependency displacement map generator. |
Each skill is self-contained. Refer to the SKILL.md file in each skill directory for triggers, workflow guidance, examples, and supporting references.
# Install liquid-glass skill
npx skills add Zettersten/skills@liquid-glass
# Or generate a custom displacement map directly
python liquid-glass/scripts/generate-displacement-map.py \
--width 300 --height 56 --radius 28 --mode sdf --datauriliquid-glass/
├── SKILL.md # Triggers + 4-layer composition guide
├── scripts/
│ └── generate-displacement-map.py # Zero-dep Python: SDF + Snell's law modes
├── references/
│ ├── physics.md # Snell's law, surface functions, SDF math
│ └── filter-pipeline.md # SVG filter primitives, browser compat, perf
└── assets/templates/
├── glass-button.html # Standalone pill button demo (Chrome)
├── glass-card.html # Card with chromatic aberration
├── glass-pill-navbar.html # Apple-style tab bar with nested active state
└── LiquidGlass.tsx # React 18+ component, browser fallback
The full refraction effect requires Chrome / Chromium (backdrop-filter: url(#svg-filter)).
Firefox and Safari gracefully degrade to frosted blur (backdrop-filter: blur()).
Skills are designed to be focused and reusable. When adding new skills, ensure they:
- Have a clear, single purpose
- Include comprehensive documentation
- Follow consistent patterns with existing skills
- Include reference materials when applicable
MIT