liquid-glass
БесплатноБез исполняемых скриптовНе проверенImplement and review macOS SwiftUI Liquid Glass UI. Use when adopting system glass, removing conflicting custom chrome, or building glass surfaces.
от openai★ 8 494 звезды на GitHubОб этом скилле
Liquid Glass
Overview
Use this skill to bring a macOS SwiftUI app into the modern macOS design system with the least custom chrome possible. Start with standard app structure, toolbars, search placement, sheets, and controls, then add custom Liquid Glass only where the app needs a distinctive surface.
Prefer system-provided glass and adaptive materials over bespoke blur, opaque backgrounds, or custom toolbar/sidebar skins. Audit existing UI for extra fills, scrims, and clipping before adding more effects.
Workflow
- Read the relevant scene or root view and identify the structural pattern:
NavigationSplitView,TabView, sheet presentation, detail/inspector layout, toolbar, or custom floating controls. - Remove custom backgrounds or darkening layers behind system sheets, sidebars, and toolbars unless the product explicitly needs them. These can obscure Liquid Glass and interfere with the automatic scroll-edge effect.
- Update standard SwiftUI structure and controls first.
- Add custom
glassEffectsurfaces only for app-specific UI that standard controls do not cover. - Validate that glass grouping, transitions, icon treatment, and foreground activation are visually coherent and still usable with pointer and keyboard.
- If the UI change also affects launch behavior for a SwiftPM GUI app, use
build-run-debugso the app runs as a foreground.appbundle rather than as a raw executable.
App Structure
- Prefer
NavigationSplitViewfor hierarchy-driven macOS layouts. Let the sidebar use the system Liquid Glass material instead of painting over it. - For hero artwork or large media adjacent to a floating sidebar, use
backgroundExtensionEffectso the visual can extend beyond the safe area without clipping the subject. - Keep inspectors visually associated with the current selection and avoid giving them a heavier custom background than the content they inspect.
- If the app uses tabs, keep
TabViewfor persistent top-level sections and preserve each tab's local navigation state. - Do not force iPhone-only tab bar minimize/accessory behavior onto a Mac app. On macOS, prefer a conventional top toolbar and native tab/search placement.
- If a sheet already uses
presentationBackgroundpurely to imitate frosted material, consider removing it and letting the system's new material render. - For sheet transitions that should visually originate from a toolbar button, make the presenting item the source of a navigation zoom transition and mark the sheet content as the destination.
Toolbars
- Assume toolbar items are rendered on a floating Liquid Glass surface and are grouped automatically.
- Use
ToolbarSpacerto communicate grouping:- fixed spacing to split related actions into a distinct group,
- flexible spacing to push a leading action away from a trailing group.
- Use
sharedBackgroundVisibilitywhen an item should stand alone without the shared glass background, for example a profile/avatar item. - Add
badgeto toolbar item content for notification or status indicators. - Expect monochrome icon rendering in more toolbar contexts. Use
tintonly to convey semantic meaning such as a primary action or alert state, not as pure decoration. - If content underneath a toolbar has extra darkening, blur, or custom background layers, remove them before judging the new automatic scroll-edge effect.
- For dense windows with many floating elements, tune the content's scroll-edge
treatment with
scrollEdgeEffectStyleinstead of building a custom bar background.
Search
- For a search field that applies across a whole split-view hierarchy, attach
searchableto theNavigationSplitView, not to just one column. - When search is secondary and a compact affordance is better, use
searchToolbarBehaviorinstead of hand-rolling a toolbar button and a separate field. - For a dedicated search page in a multi-tab app, assign the search role to one
tab and place
searchableon theTabView. - Make most of the app's content discoverable from search when the field lives in the top-trailing toolbar location.
- On iPad and Mac, expect the dedicated search tab to show a centered field above browsing suggestions rather than a bottom search bar.
Controls
- Prefer standard SwiftUI controls before creating custom glass components.
- Expect bordered buttons to default to a capsule shape at larger sizes. On macOS, mini/small/medium controls preserve a rounded-rectangle shape for denser layouts.
- Use
buttonBorderShapewhen a button shape needs to be explicit. - Use
controlSizeto preserve density in inspectors and popovers, and reserve extra-large sizing for truly prominent actions. - Use the system glass and glass-prominent button styles for primary actions instead of recreating a translucent button background by hand.
- For sliders with discrete values, pass
stepto get automatic tick marks or provide spec
Установить liquid-glass в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл liquid-glass?
Implement and review macOS SwiftUI Liquid Glass UI. Use when adopting system glass, removing conflicting custom chrome, or building glass surfaces.
Как установить скилл liquid-glass?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл liquid-glass запускает скрипты?
Нет, скилл состоит только из инструкций (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