apple-design
O que ela faz
Esta skill compartilha princípios de palestras de design da Apple e os aplica a interfaces web. É para desenvolvedores e designers que querem que arrastar, deslizar e folhas de interface pareçam físicos e responsivos.
Quando usar
- ✓Quando você constrói ou revisa uma interface guiada por gestos, como arrastar, deslizar ou folhas.
- ✓Quando você quer animações de mola que possam ser interrompidas e redirecionadas.
- ✓Quando você precisa oferecer suporte ao movimento reduzido ou refinar tipografia e materiais.
Link da skill
https://github.com/spree/spree/blob/main/.agents/skills/apple-design/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Faça esta folha inferior seguir meu dedo, manter o impulso e parecer natural quando eu soltar.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente aplica um conjunto de princípios: o movimento começa a partir do valor atual na tela, mantém a velocidade do usuário e pode ser capturado e revertido a qualquer momento. Usa molas e eventos de entrada da web para isso.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Apple Design
How Apple builds interfaces that stop feeling like a computer and start feeling like an extension of you. This knowledge comes from Apple's WWDC design talks — chiefly Designing Fluid Interfaces (WWDC 2018) — distilled and translated into the web platform (CSS, Pointer Events, requestAnimationFrame, spring libraries like Motion/Framer Motion).
The through-line: an interface feels alive when motion starts from the current on-screen value, inherits the user's velocity, projects momentum forward, and can be grabbed and reversed at any instant. Springs are the tool that makes all of this natural, because they are inherently interruptible and velocity-aware.
The Core Idea
"When we align the interface to the way we think and move, something magical happens — it stops feeling like a computer and starts feeling like a seamless extension of us."
An interface is fluid when it behaves like the physical world: things respond instantly, move continuously, carry momentum, resist at boundaries, and can be redirected mid-motion. Everything below is a way to get closer to that.
Apple frames design as serving four human needs: safety/predictability, understanding, achievement, and joy. Every rule here serves one of them.
1. Response — kill latency
The moment lag appears, the feeling of directness "falls off a cliff." Response is the foundation everything else is built on.
- Respond on pointer-down, not on release. Highlight a button the instant it's pressed. Waiting for
click/touch-up to show feedback feels dead. - Be vigilant about every latency. Audit debounces, artificial timers, transition waits, and the ~300ms tap delay. Anything on the input path that isn't essential is a regression.
- Feedback must be continuous during the interaction, not just at the end. For a drag, slider, or drawer, update the UI 1:1 with the pointer the whole way through — never animate only when the gesture completes.
/* Feedback lives on the press, and it's instant */
.button:active {
transform: scale(0.97);
transition: transform 100ms ease-out;
}
2. Direct manipulation — 1:1 tracking
"Touch and content should move together."
When the user drags something, it must stay glued to the finger — and respect the offset from where they grabbed it. Snapping to the element's center on grab breaks the illusion immediately.
- Use Pointer Events with
setPointerCaptureso tracking continues even when the pointer leaves the element's bounds. - Track a short velocity/position history (last few
pointermoveevents), not just the current point — you'll need velocity at release.
el.addEventListener('pointerdown', (e) => {
el.setPointerCapture(e.pointerId);
const grabOffset = e.clientY - el.getBoundingClientRect().top; // respect where they grabbed
// ...track position + timestamp history for velocity
});
3. Interruptibility — the single most important principle
"The thought and the gesture happen in parallel."
Every animation must be interruptible and redirectable at any moment. A user must be able to grab a moving element mid-flight and reverse it without waiting for the animation to finish. A closing modal the user grabs again should follow the finger — not finish closing first, then reopen.
- Never lock out input during a transition.
- Always animate from the presentation (current) value, never the target value. On interrupt, read the element's live on-screen transform and start the new animation from there. Starting from the logical/target value causes a visible jump.
- Avoid CSS transitions and
@keyframesfor anything gesture-driven — they can't be smoothly grabbed and reversed mid-flight. Springs animate from the current value by default, which is exactly what interruption needs. - When a gesture reverses, blend velocity — don't hard-cut it. Replacing one animation with another at a reversal creates a velocity discontinuity, a "brick wall." Spring libraries that carry velocity through a re-target avoid it. (This is what iOS's additive animations do natively; on the web, choose a spring library that re-targets from the current velocity.)
- Decompose 2D motion into independent X and Y springs. A single spring on a 2D distance desyncs when X and Y have different velocities.
4. Behavior over animation — use springs
"Think of animation as a conversation between you and the object, not something prescribed by the interfac
Perguntas frequentes
Isso é só para dispositivos Apple?
Não. Ele traduz os princípios de design da Apple para ferramentas web, como CSS, Pointer Events e bibliotecas de mola.
O que significa interrompível?
Um movimento pode ser capturado e revertido no meio do caminho, em vez de precisar terminar primeiro.
Ele cobre o movimento reduzido?
Sim. A skill inclui orientações para as configurações de movimento reduzido.
Detalhes
Descrição original do autor
Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations (feedback, spatial consistency, restraint) behind Apple-style interfaces.
repo: spree/spree
Popularidade
- Estrelas no GitHub
- 16 mil
- Posição no ranking
- #10874
- Licença
- BSD-3-Clause
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
animate
16 milCria uma animação do zero, decidindo primeiro se ela deve mesmo ter movimento e depois escolhendo sua finalidade, o tempo e a curva antes de escrever o código.
animation-vocabulary
16 milTransforma uma descrição vaga de uma animação ou efeito de movimento no nome técnico exato, para que você saiba o que pedir.
find-animation-opportunities
16 milProcura numa interface os lugares que se beneficiariam de movimento e descarta o resto. Entrega uma lista curta de sugestões exatas de animação sem alterar o código.
improve-animations
16 milAudita as animações da base de código e escreve planos priorizados que outro agente pode executar. Só cria planos; não altera o código-fonte.
Skills parecidas
canvas
394 milPermite que seu agente mostre um widget visual hospedado em um painel conectado a um Mac e depois oculte o painel ou o mova para outra página.
control-ui
394 milAjuda seu agente a organizar e diagnosticar a Control UI do OpenClaw, incluindo sessões, painéis e Gateways conectados.
diagram-maker
394 milAjuda seu agente a criar diagramas claros em SVG, HTML ou Excalidraw editável, para processos, arquitetura de sistemas e esboços de quadro branco.