Pular para o conteúdo
Skillpedia
Sites e telas (frontend)75 mil · #2794

css-at-property

O que ela faz

Esta skill explica como declarar o tipo e o valor inicial de propriedades personalizadas do CSS, para que o navegador possa animá-las. Ela é para desenvolvedores front end que criam gradientes animados ou tokens de design tipados.

Quando usar

  • ✓Quando você quer que um gradiente ou uma variável de cor seja animado suavemente.
  • ✓Quando uma propriedade personalizada muda de forma brusca em vez de fazer transição.
  • ✓Quando você quer tokens de design com tipos e escopo definidos.

Link da skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/css-at-property/SKILL.md

Copie 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

Use esta skill para me ajudar: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/css-at-property/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Faça o gradiente da minha seção principal ser animado suavemente registrando suas variáveis de cor.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente adiciona declarações at-property com um tipo de sintaxe, um valor inicial e uma configuração de herança para cada propriedade personalizada usada em uma animação ou transição.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Register CSS custom properties with @property for animation and type safety

CSS custom properties are powerful but limited by default: they are untyped string substitutions that the browser cannot interpolate during transitions or animations. Registering a property with @property gives the browser the information it needs to animate between values, validate token assignments, and scope inheritance — turning custom properties from string macros into first-class typed values. This unlocks gradient animations, typed design tokens, and scoped component theming that are impossible with unregistered properties.

Quick Reference

  • Unregistered custom properties cannot be animated — they transition as discrete strings
  • @property specifies syntax (color, length, number), initial-value, and inherits
  • Registered properties enable smooth interpolation for gradients and complex values
  • inherits: false creates scoped tokens that do not cascade to children

Check

Review the CSS custom properties in this file. Identify any properties that are used in transitions or animations — these require @property registration to animate correctly.

Fix

Add @property registrations for the custom properties used in transitions or animations in this CSS. Include the correct syntax descriptor, an initial-value, and the appropriate inherits value.

Explain

Explain how @property works, why unregistered custom properties cannot be animated, what the syntax descriptor values mean, and how inherits controls cascade behaviour.

Code Review

Inspect all CSS transitions and animations that reference custom properties. Flag any custom property used in a transition or animation that is not registered with @property, and flag any @property registration that is missing initial-value.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/css/css-at-property

Perguntas frequentes

Por que propriedades personalizadas comuns não podem ser animadas?

A skill diz que propriedades personalizadas não registradas são tratadas como texto, então o navegador não consegue fazer a transição entre valores.

O que faz inherits false?

A skill diz que ele cria tokens com escopo que não são repassados aos elementos filhos.

Que tipos de valor podem ser definidos?

A skill dá exemplos como cor, comprimento e número.

Detalhes

Descrição original do autor

Use when implementing animated gradients, complex CSS transitions that involve custom property values, or building a typed design token system where custom property misuse should produce visible errors.

repo: thedaviddias/Front-End-Checklist

Popularidade

Estrelas no GitHub
75 mil
Posição no ranking
#2794
Licença
MIT
Atualizada em
31/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas