liquid-logo
БесплатноБез исполняемых скриптовНе проверенRender a brand mark in liquid metal on the web, and export the same mark as a still and a loop. Use when someone asks for a liquid metal, chrome, or molten…
от frankxai★ 51 звезда на GitHubОб этом скилле
Liquid logo
One shader turns the outline of a mark into moving metal. This skill prepares the mark, builds the one place it runs live, and exports a still and a loop for everywhere else.
The vector logo stays the identity. The metal version is an application of it, like an embossed business card: use it where the brand is the subject.
Run gpu-surface section 1 first. Its answer may be "the flat mark is enough".
1. Which code to use
Use the LiquidMetal component from @paper-design/shaders-react
(Apache-2.0). Pin it exactly; this recipe was built and rendered against
0.0.82.
Do not copy code from the paper-design/liquid-logo repository. It is the
source of the hosted tool at liquid.paper.design, its licence is PolyForm
Shield 1.0.0 (read at commit 689bb38a1e0d on 2026-11-12), and it pins
@paper-design/[email protected]. The hosted tool is useful for trying
settings on a mark. Carry over the numbers it shows and write the component
from this recipe.
2. Prepare the mark
The shader reads one thing from the image: which pixels have any opacity. Colour is ignored.
- SVG or transparent PNG, served from the site's own origin. The shader
loads it with
crossOrigin = "anonymous". - Holes are transparency. A counter drawn in white is part of the shape and fills with metal. Cut it out of the path.
- One silhouette. Thin strokes and small text lose the effect; the metal needs area to move across. Use the symbol on its own; leave the wordmark flat.
- Square artboard with padding of about 8% a side, so the edge distortion has room.
- The shader prepares the image in the browser when it mounts. The wrapper shows the flat mark until that finishes.
3. Build
use-surface.ts is in gpu-surface section 3.
// components/effects/LiquidMetalLayer.tsx — the only file that imports the shader package
'use client'
import { LiquidMetal, type LiquidMetalProps } from '@paper-design/shaders-react'
export default function LiquidMetalLayer(props: LiquidMetalProps) {
return <LiquidMetal {...props} />
}
// components/effects/LiquidMark.tsx
'use client'
import dynamic from 'next/dynamic'
import { createContext, Suspense, useContext, type ReactNode } from 'react'
import type { LiquidMetalProps } from '@paper-design/shaders-react'
import { useGpu, useReducedMotion } from './use-surface'
const Fallback = createContext<ReactNode>(null)
const LiquidMetalLayer = dynamic(() => import('./LiquidMetalLayer'), {
ssr: false,
loading: function MarkFallback() {
return <>{useContext(Fallback)}</>
},
})
type LiquidMarkProps = {
/** Same-origin SVG or transparent PNG of the mark. */
src: string
/** The mark is content: this is its accessible name. */
label: string
/** CSS size of the square the mark sits in. */
size: number | string
/** Token values: the metal's base and its tint. */
colorBack: string
colorTint: string
/** Milliseconds into the animation. Shown under reduced motion; the loop and the still start here. */
stillFrame: number
speed?: number
} & Pick<LiquidMetalProps, 'repetition' | 'softness' | 'shiftRed' | 'shiftBlue' | 'distortion' | 'contour' | 'angle'>
export function LiquidMark({ src, label, size, colorBack, colorTint, stillFrame, speed = 0.6, ...look }: LiquidMarkProps) {
const reduced = useReducedMotion()
const gpu = useGpu()
// The flat mark is the server render, the no-WebGL render, and the fallback while the shader chunk loads and prepares the image.
const flat = <img src={src} alt="" style={{ position: 'absolute', inset: 0, width: '100%', height: '100%', objectFit: 'contain' }} />
return (
<span role="img" aria-label={label} style={{ position: 'relative', display: 'inline-block', width: size, aspectRatio: '1' }}>
{gpu ? (
<Fallback.Provider value={flat}>
<Suspense fallback={flat}>
<LiquidMetalLayer
aria-hidden
image={src}
suspendWhenProcessingImage
shape="none"
fit="contain"
scale={1}
colorBack={colorBack}
colorTint={colorTint}
{...look}
speed={reduced ? 0 : speed}
frame={stillFrame}
maxPixelCount={1024 * 1024}
style={{ position: 'absolute', inset: 0 }}
/>
</Suspense>
</Fallback.Provider>
) : (
flat
)}
</span>
)
}
The flat mark is the server render, the no-WebGL render, and the fallback while the image is prepared, so the mark is visible at first paint in every case. The wrapper carries the accessible name; the canvas and the fallback image are hidden from it.
Rendered in headless Chromium in three states with zero console errors:
moving, reduced motion (still at stillFrame), and WebGL switched off (flat
mark, no canvas).
4. Tune
Set colorTint to the brand's accent token and leave colorBack transparent
(`#000
Установить liquid-logo в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл liquid-logo?
Render a brand mark in liquid metal on the web, and export the same mark as a still and a loop. Use when someone asks for a liquid metal, chrome, or molten logo; shares liquid.paper.design or the paper-design/liquid-logo repository; wants an animated logo for a hero, a loader, a brand page, an Open Graph image, or a social clip; or asks to tune the metal's colour, refraction, or speed to the brand. Builds one wrapper around the LiquidMetal shader from @paper-design/shaders-react with the flat mark as its fallback, then exports frames by number. Starts and ends in gpu-surface.
Как установить скилл liquid-logo?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл liquid-logo запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic