better-ui
O que ela faz
Esta skill adiciona detalhes finais a uma interface, como raio de canto, sombras, estados de ícones e animação. É para designers e desenvolvedores que querem uma aparência refinada e consistente.
Quando usar
- ✓Quando cartões, botões ou superfícies aninhadas parecem irregulares nos cantos.
- ✓Quando ícones ou animações parecem estranhos ou inconsistentes.
- ✓Quando você quer verificar os detalhes finais de uma interface.
Link da skill
https://github.com/jakubkrehel/skills/blob/main/skills/better-ui/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
“Meus cartões e botões parecem irregulares e a animação do menu parece lenta. Refine os detalhes da interface.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA aplica valores exatos de raio de canto, sombras, alinhamento de ícones e tempo de animação, ajustados aos componentes e tokens do seu projeto. Ela refina apenas depois que a interação subjacente está correta.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
UI polish
This skill holds the visual polish for surfaces, icons and motion, with the exact value each detail takes. It applies once the underlying interaction is sound, and a polish finding never outranks a broken interaction.
Exact values, optional polish
The values below are exact, not ranges to approximate. cubic-bezier(0.2, 0, 0, 1) is not cubic-bezier(0.4, 0, 0.2, 1), and 0.96 is not 0.95. The optical nudges and the concentric padding cutoff are the exceptions. They are starting points, judged by eye.
Keep the project's component library, tokens and density, and match its motion language wherever no rule here gives a value. A deliberate and consistent project convention, such as a style with no shadows, is a preference and not a finding. The same detail done two ways within the project is a finding.
Text wrapping, font rendering, tabular numbers and text spacing belong to better-typography. Hit areas, keyboard support, ARIA and the reduced-motion requirement belong to better-accessibility. Grouping, section spacing, breakpoints and spatial RTL belong to better-layout, except directional icon mirroring. Color tokens and contrast measurement belong to better-colors.
Outer radius equals inner radius plus padding
Where nested surfaces share a visible, even inset, the outer radius is the inner radius plus the padding plus any border width. Past 24px of padding, or where the padding is deliberately asymmetric, treat the layers as separate surfaces and keep each one's radius token. Recipes are in surfaces.md.
Align optically where geometry looks off
Where geometric centering looks off, nudge by eye. Give a button 2px less padding on its icon side, shift a play triangle toward its point and fix asymmetric glyphs in the SVG itself. Recipes are in surfaces.md.
Shadows for elevation, borders for structure
Where a border exists only to create depth, replace it with layered transparent box-shadow values. Keep borders on dividers, separators, table cells and selected states. Keep them on form inputs too, whose boundary needs 3:1 non-text contrast under better-accessibility. Focus rings belong to better-accessibility as well.
Forced-colors mode removes every box-shadow. Keep border: 1px solid transparent under a shadow ring so that mode still draws an edge. Recipes are in surfaces.md.
Outline images in pure black or white
Give content images a 1px outline inset by 1px. Use oklch(0 0 0 / 0.1) in light mode and oklch(1 0 0 / 0.1) in dark. Never use a palette near-black, a tinted neutral or the accent color, because the tint shows as a colored fringe on the image edge. Skip transparent artwork such as logos and illustrations. The recipe is in surfaces.md.
Transitions, not keyframes, for interactive state
Drive interactive state changes with CSS transitions or a motion library's springs, which retarget when the user reverses mid-flight. Keyframes run a fixed timeline and cannot reverse, so reserve them for sequences that run once. See animations.md.
Press scales to 0.96
A pressed button scales to 0.96 over 150ms with ease-out, and a disabled one never scales. Give the button an opt-out where the motion would distract, through the component's existing variant API or a static prop. See recipes for CSS, Tailwind and Motion.
High-frequency interactions respond instantly
Keystrokes, row hovers and tab switches get instant feedback, or a transition of 150ms or less on opacity or background-color. Reserve expressive motion for infrequent moments such as a view's first load, a success state or an empty state.
Every animated state change also leaves a static cue in the form of a color, icon or label. Motion is never the only feedback channel.
Gate motion behind the reduced-motion preference
better-accessibility owns the requirement, and no recipe here ships without it. Run movement, scale and blur only under prefers-reduced-motion: no-preference. Under reduced motion, replace them with an opacity cross-fade rather than removing the element instantly. Recipes for CSS, Tailwind and Motion are in animations.md.
Stagger infrequent entrances by 100ms
Where sequence communicates hierarchy in a staged entrance, split the content into semant
Perguntas frequentes
Ela muda o estilo do meu design?
Não. Uma escolha de estilo consistente, como não usar sombras, é respeitada como preferência do projeto.
Ela trata a acessibilidade da animação?
Necessidades de movimento reduzido ficam a cargo da skill de acessibilidade, para a qual esta skill aponta.
Os valores são fixos?
A maioria dos valores é exata, enquanto alguns ajustes ópticos são avaliados a olho.
Detalhes
Descrição original do autor
Polishes surfaces, icons and motion with exact values for border radius, optical alignment, shadows, icon states and animation.
repo: jakubkrehel/skills
Popularidade
- Estrelas no GitHub
- 10 mil
- Posição no ranking
- #11889
- Licença
- MIT
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
better-accessibility
10 milRevisa e corrige problemas de teclado, foco, leitor de tela, formulários e movimento em uma interface, conforme os padrões WCAG 2.2.
better-colors
10 milCria e verifica sistemas de cores gerando paletas, nomeando tokens, convertendo formatos e medindo o contraste.
better-interface
10 milRevisa uma tela ou um fluxo inteiro quanto a acessibilidade, layout, escrita, tipografia, cor e acabamento, e depois ordena os problemas.
better-layout
10 milOrganiza agrupamentos, alinhamento, ordem de leitura e estrutura responsiva, e verifica se os layouts se mantêm ao serem redimensionados ou traduzidos.
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.