Pill buttons with centered icons and balanced padding
Your AI fixes your pill buttons so the icon sits centered in the round end and the label gets back the space the curve takes, with a few lines of CSS, then measures icon-left, icon-right, label-only and icon-only buttons. Based on a post by Haz.
Lo que tu IA te va a entregar
- Updated button component stylesheet using --py, --px, --pill, --r, and --edge custom properties
- Layered supports browser-compatibility fallback in the button stylesheet
- Four-variant test harness (scratch/pill-button-harness.html or local preview route)
- Rendered spacing report (scratch/pill-button-report/metrics.json) and variant screenshots
Cómo funciona
En tu IA y con tus cuentas. Lo primero que hace es conocer tu negocio. Cómo funcionan los kits ›
- 1. Entender
Primero estudia tu negocio y después te hace 4 preguntas que no puede responder por su cuenta
- 2. Elegir
Nada que elegir: el kit sigue un solo camino
- 3. Hacer
6 pasos; en los delicados, te pregunta antes
- 4. Entregar
5 verificaciones antes de entregar
Herramientas que usa
Cada herramienta la pagas directo a quien la ofrece, no a CloneKit. Tu IA revisa cuáles ya tienes.
Detalles
Lo que el creador usa como base. Tu IA lo consulta mientras trabaja.
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Fuente
- Target repository with a web button component (React, Vue, plain CSS, or Tailwind)
- Current button padding, font-size, line-height, and border-radius values or design tokens
- Project browser support target (browserslist config or target versions)
- Local preview server or static HTML harness with Playwright or Chrome DevTools
Archivos de consulta que tu IA puede leer mientras trabaja y después.
- Pill Button Verification ChecksCHECKS.md
- Compatibility Matrix and Maintenance NotesNOTES.md
- OutputsREADME.md
- Pill Button Optical Padding RulesRULES.md
- Framework Integration Templatestemplates/pill-button-components.md
- Pill button CSS templatetemplates/pill-button-css.md
- Never modify production component files or design tokens outside scratch/ without explicit user approval.
- Never leave --r set to 999px, 9999px, or infinity inside the label compensation formula; it explodes label margin to thousands of pixels.
- Never apply :first-child or :last-child rules to bare text nodes; require a direct element wrapper such as span.label.
First version.
Las mejoras les llegan a todos los que usan este kit. Ver historial de cambios ›
- Tipo
- Trabajo puntual
- Licencia
- Uso propio
- Usos
- 0
- Trabajos terminados
- 0