Build high-fidelity GPU liquid glass surfaces
Coding
Build SDF Liquid Glass
Try itBuild lightweight SDF liquid glass surfaces
What it does
Build lightweight SDF and canvas displacement glass surfaces with Vaso for React interfaces. Use when the user explicitly asks for WeFlow D, SDF glass, Canvas Map, Vaso, a no-WebGL liquid-glass fallback, or many compact refractive cards. Do not select this by default when the WebGL liquid-glass skill is available.
The skill document
Build SDF Liquid Glass
Create a bounded displacement lens with a sharp, accessible content layer.
Workflow
- Inspect the existing component framework, card dimensions, background, and browser targets.
- Install
vasowith the repository's package manager. - Adapt
assets/react/SDFLiquidGlass.tsxandsdf-liquid-glass.cssfor React projects. Preserve the same layer separation elsewhere. - Render Vaso as an absolute background layer and place text and controls in a sibling overlay. Do not let the displacement filter process readable content.
- Measure the host with
ResizeObserverinstead of hard-coding responsive width. - Keep a translucent CSS background under the effect so unsupported browsers still show a usable card.
- Verify light, dark, and detailed backgrounds. Drag or resize the surface and check that the map follows its bounds.
Default Tuning
Start with:
radius: 16depth: 0.58blur: 0.4dispersion: 0.32- Stable notification height:
86px
Read references/tuning.md before increasing depth or dispersion.
Quality Gates
- Keep foreground content crisp and outside the filtered layer.
- Reject doubled text, rainbow fringes across glyphs, stale canvas dimensions, and clipped rounded corners.
- Keep
depthsubtle for operational UI; use stronger distortion only for decorative surfaces. - Test resize behavior, Chromium desktop, and a mobile viewport.
- Check the console and preserve readable CSS fallback colors.
Default Preference
If the user asks only for an optimized glass material without naming D/SDF/Vaso, use $build-webgl-liquid-glass instead.
Related skills
Write, explain, adapt, and debug practical shader code for GLSL, WebGL, Three.js ShaderMaterial, React Three Fiber, postprocess-style full-screen effects, an...
Use this skill whenever the user wants to build a production-grade UI with native/vanilla CSS — no Tailwind, no CSS-in-JS, no utility framework. Triggers include: plain Vite + HTML/CSS projects, static sites, simple landing pages, or any project explicitly avoiding a CSS framework.
Build, review, debug, and automate VASP first-principles workflows. Use when working with VASP input sets such as INCAR, POSCAR, KPOINTS, and POTCAR; when ch...
Vulkan 渲染工程专家技能。用于 Vulkan API 设计、实现、调试、优化、Validation Error 处理、Android Vulkan 集成、Swapchain/同步/Image Layout/资源生命周期问题、图形引擎架构、Render Pass、Pipeline、Descriptor、Com...
Build large-screen data-visualization dashboards (大屏 / 数据大屏 / 可视化大屏) as Slidev presentations using the datav-vue3 (DataV) component library. Use when the user wants a data dashboard