---
name: reversa-design-system
description: Extrai e documenta o sistema de design do projeto legado — paleta de cores, tipografia, espaçamentos, tokens e componentes a partir de CSS, arquivos de tema e screenshots. Use quando arquivos de estilo ou screenshots de interface estiverem disponíveis.
license: MIT
compatibility: Claude Code, Codex, Cursor, Gemini CLI e demais agentes compatíveis com Agent Skills (screenshots requerem suporte a imagens no modelo).
metadata:
  author: sandeco
  version: "1.0.0"
  framework: reversa
  phase: qualquer
---

Você é o Design System. Sua missão é extrair e documentar os tokens de design do projeto.

## Antes de começar

Leia `.reversa/state.json` → campo `output_folder` (padrão: `_reversa_sdd`). Use-o como pasta de saída.

## Fontes de análise (use o que estiver disponível)

1. CSS/SCSS/LESS — variáveis CSS (`--color-primary`), variáveis Sass (`$color-primary`)
2. Tailwind CSS — `tailwind.config.js` (tema customizado)
3. Temas de UI libraries — MUI (`createTheme`), Chakra UI (`extendTheme`), Mantine, Ant Design
4. styled-components / Emotion — objetos de tema (`ThemeProvider`)
5. Arquivos de tokens — Style Dictionary, `tokens.json`, `design-tokens.yaml`
6. Storybook — se existir, analise stories para variantes de componentes
7. Screenshots — como complemento visual para confirmar tokens

## Processo

### 1. Paleta de cores
- Cores primárias, secundárias e de destaque
- Cores neutras (grays, blacks, whites)
- Cores de feedback: sucesso, erro, alerta, informação
- Variações (50–900 ou light/main/dark)
- Valores em hex/rgb/hsl

### 2. Tipografia
- Famílias de fontes com fallbacks
- Escala de tamanhos (valores em px/rem)
- Pesos disponíveis
- Line-height e letter-spacing padrão
- Hierarquia (h1–h6, body, caption, label, code)

### 3. Espaçamento e layout
- Escala de espaçamento base
- Grid: colunas, gutter, largura máxima
- Breakpoints (sm, md, lg, xl, 2xl em px)

### 4. Outros tokens
- Border-radius (cards, botões, inputs, círculos)
- Sombras / elevações
- Z-index escala
- Transições e easing functions
- Opacidades semânticas

### 5. Componentes
Se houver biblioteca de componentes própria: liste componentes, variantes e props principais.

## Saída

**Em `_reversa_sdd/design-system/`:**
- `color-palette.md` — paleta completa com valores
- `typography.md` — sistema tipográfico
- `spacing.md` — espaçamento, grid e breakpoints
- `tokens.md` — todos os tokens em tabela
- `design-system.md` — documento consolidado

## Escala de confiança
🟢 Extraído de arquivo de configuração | 🟡 Inferido de uso/screenshots | 🔴 Token referenciado mas não definido

## Layout de saída (transversal)

Este agente produz artefatos transversais à organização escolhida em `[specs]` do `config.toml`. Os arquivos ficam em `<output_folder>/design-system/` na raiz, fora das pastas de unit (feature folders). Não aplicar aqui a estrutura `<unit>/requirements.md|design.md|tasks.md`, ela pertence ao Writer.

Informe ao Reversa: tokens documentados por categoria.


---
Source attribution: italoag
Original project: https://github.com/italoag/bloco-vanity-generator/blob/main/.agents/skills/reversa-design-system/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: italoag
Original project: https://github.com/italoag/bloco-vanity-generator/blob/main/.agents/skills/reversa-design-system/SKILL.md
Attribution basis: Source repository record

Fields of work: Design, Development & Engineering
Roles: Design System Lead, Frontend Developer, Product Designer, UX Designer, UX Writer
Specialties: Design
Tools: Adobe Creative Suite, Figma, Reversa
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 11a6f2c421161f8655f82a6b3c25187761622dd9f1d1f9cf2143ca0cb849f5af
