button-styles
Sistema de estilos de botones consistentes para iqEngi (Cards, CTAs, Formularios)
Best use case
button-styles is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sistema de estilos de botones consistentes para iqEngi (Cards, CTAs, Formularios)
Teams using button-styles should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/button-styles/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How button-styles Compares
| Feature / Agent | button-styles | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sistema de estilos de botones consistentes para iqEngi (Cards, CTAs, Formularios)
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Sistema de Botones Consistentes - iqEngi
Este skill define los estilos de botones estándar para mantener consistencia visual en todo el proyecto.
## Filosofía de Diseño
- **Jerarquía Visual**: Primary para acciones principales, Outline para secundarias
- **Consistencia**: Mismo hover, transiciones y tamaños base
- **Accesibilidad**: Contraste AA garantizado con `text-white` sobre primary
---
## 🎨 Clases Base de Botones
### 1. Botón Primary (CTA Principal)
Usar para: **Inscribirse, Comprar, Guardar, Enviar, Ver Detalles principal**
```html
<!-- Tamaño Normal (Cards, Formularios) -->
<button class="btn btn-primary h-10 min-h-[40px] px-6 text-white shadow-md shadow-primary/20 hover:bg-[var(--color-btn-hover)] hover:border-[var(--color-btn-hover)] hover:shadow-lg hover:shadow-[var(--color-btn-hover)]/40 hover:scale-[1.03] rounded-xl transition-all duration-300">
Acción Principal
</button>
<!-- Tamaño Grande (Hero, CTAs destacados) -->
<button class="btn btn-primary btn-lg min-w-[160px] rounded-full shadow-lg shadow-primary/30 hover:bg-[var(--color-btn-hover)] hover:border-[var(--color-btn-hover)] hover:shadow-xl hover:shadow-[var(--color-btn-hover)]/40 hover:scale-105 transition-all duration-300">
Explorar Cursos
</button>
```
### 2. Botón Outline (Secundario)
Usar para: **Ver Detalles, Cancelar, Opciones alternativas**
```html
<!-- Tamaño Normal -->
<button class="btn btn-outline h-10 min-h-[40px] hover:!bg-[var(--color-btn-hover)] hover:!border-[var(--color-btn-hover)] hover:!text-white rounded-xl transition-all duration-300">
Ver Detalles
</button>
<!-- Tamaño Grande -->
<button class="btn btn-outline btn-lg rounded-full hover:bg-[var(--color-btn-hover)] hover:border-[var(--color-btn-hover)] hover:text-white hover:scale-105 transition-all duration-300">
Saber Más
</button>
```
### 3. Botón Ghost (Terciario/Navegación)
Usar para: **Enlaces de navegación, acciones de bajo énfasis**
```html
<button class="btn btn-ghost btn-lg min-w-[160px] rounded-full hover:bg-[var(--color-surface-2)]">
Unirse a la Comunidad
</button>
```
---
## 📐 Reglas de Tamaño
| Contexto | Tamaño Base | Altura | Border Radius |
|----------|-------------|--------|---------------|
| Cards (CourseCard, Cards) | Normal | `h-10 min-h-[40px]` | `rounded-xl` |
| Hero / CTA sections | `btn-lg` | Auto | `rounded-full` |
| Formularios | Normal | `h-10 min-h-[40px]` | `rounded-xl` |
| Navbar | `btn-sm` o Normal | Auto | Default |
---
## 🎭 Estados de Hover (Obligatorios)
Todos los botones deben incluir:
```css
/* Para Primary */
hover:bg-[var(--color-btn-hover)]
hover:border-[var(--color-btn-hover)]
hover:shadow-lg
hover:shadow-[var(--color-btn-hover)]/40
hover:scale-[1.03] /* o hover:scale-105 para btn-lg */
transition-all duration-300
/* Para Outline */
hover:!bg-[var(--color-btn-hover)]
hover:!border-[var(--color-btn-hover)]
hover:!text-white
transition-all duration-300
```
---
## 📋 Plantillas Copiables
### Card con dos botones (CourseCard)
```tsx
<div className="grid grid-cols-2 gap-3 mt-4 pt-4 border-t border-base-200">
<a
href={`/cursos/${slug}`}
className="btn btn-outline h-10 min-h-[40px] hover:!bg-[var(--color-btn-hover)] hover:!border-[var(--color-btn-hover)] hover:!text-white rounded-xl transition-all duration-300"
>
Ver Detalles
</a>
<button className="btn btn-primary h-10 min-h-[40px] text-white shadow-md shadow-primary/20 hover:bg-[var(--color-btn-hover)] hover:border-[var(--color-btn-hover)] hover:shadow-lg hover:shadow-[var(--color-btn-hover)]/40 hover:scale-[1.03] uppercase font-bold tracking-wide rounded-xl transition-all duration-300">
Inscribirme
</button>
</div>
```
### Hero CTA (dos botones)
```tsx
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center">
<a
href="/cursos"
className="btn btn-primary btn-lg min-w-[160px] rounded-full shadow-lg shadow-primary/30 hover:bg-[var(--color-btn-hover)] hover:border-[var(--color-btn-hover)] hover:shadow-xl hover:shadow-[var(--color-btn-hover)]/40 hover:scale-105 transition-all duration-300"
>
Explorar Cursos
</a>
<a
href="/comunidad"
className="btn btn-ghost btn-lg min-w-[160px] rounded-full hover:bg-[var(--color-surface-2)]"
>
Unirse a la Comunidad
</a>
</div>
```
### Botón único en Card simple
```astro
<a
href={`/cursos/${slug}`}
class="btn btn-primary h-10 min-h-[40px] px-6 text-white shadow-md shadow-primary/20 hover:bg-[var(--color-btn-hover)] hover:border-[var(--color-btn-hover)] hover:shadow-lg hover:shadow-[var(--color-btn-hover)]/40 hover:scale-[1.03] uppercase font-bold tracking-wide w-full md:w-auto rounded-xl transition-all duration-300"
>
Ver Detalles
</a>
```
---
## ⚠️ Antipatrones (NO HACER)
```html
<!-- ❌ Sin hover states -->
<button class="btn btn-primary">Acción</button>
<!-- ❌ Mezclar estilos de tamaño -->
<button class="btn btn-primary btn-lg h-10">Inconsistente</button>
<!-- ❌ Border radius inconsistente -->
<button class="btn btn-primary rounded-md">No usar rounded-md</button>
<!-- ❌ Colores hardcodeados -->
<button class="bg-purple-500 hover:bg-purple-600">No usar colores directos</button>
```
---
## 🔧 Variables CSS Relacionadas
Definidas en `src/styles/global.css`:
| Variable | Uso |
|----------|-----|
| `--color-primary` | Color base del btn-primary |
| `--color-btn-hover` | Color hover (azul #2b7fff) |
| `--color-surface-2` | Background hover para btn-ghost |
---
## Ejemplos de Archivos Correctos
- `src/components/molecules/CourseCard.tsx` - Patrón de 2 botones en card
- `src/components/home/Hero.tsx` - CTA principal con btn-lg
- `src/components/sections/CoursesHero.astro` - Hero con botones primary + outlineRelated Skills
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
obsidian-daily
Manage Obsidian Daily Notes via obsidian-cli. Create and open daily notes, append entries (journals, logs, tasks, links), read past notes by date, and search vault content. Handles relative dates like "yesterday", "last Friday", "3 days ago".
obsidian-additions
Create supplementary materials attached to existing notes: experiments, meetings, reports, logs, conspectuses, practice sessions, annotations, AI outputs, links collections. Two-step process: (1) create aggregator space, (2) create concrete addition in base/additions/. INVOKE when user wants to attach any supplementary material to an existing note. Triggers: "addition", "create addition", "experiment", "meeting notes", "report", "conspectus", "log", "practice", "annotations", "links", "link collection", "аддишн", "конспект", "встреча", "отчёт", "эксперимент", "практика", "аннотации", "ссылки", "добавь к заметке".
observe
Query and manage Observe using the Observe CLI. Use when the user wants to run OPAL queries, list datasets, manage objects, or interact with their Observe tenant from the command line.
observability-review
AI agent that analyzes operational signals (metrics, logs, traces, alerts, SLO/SLI reports) from observability platforms (Prometheus, Datadog, New Relic, CloudWatch, Grafana, Elastic) and produces practical, risk-aware triage and recommendations. Use when reviewing system health, investigating performance issues, analyzing monitoring data, evaluating service reliability, or providing SRE analysis of operational metrics. Distinguishes between critical issues requiring action, items needing investigation, and informational observations requiring no action.
nvidia-nim
NVIDIA NIM inference microservices for deploying AI models with OpenAI-compatible APIs, self-hosted or cloud
numpy-string-ops
Vectorized string manipulation using the char module and modern string alternatives, including cleaning and search operations. Triggers: string operations, numpy.char, text cleaning, substring search.
nova-act-usability
AI-orchestrated usability testing using Amazon Nova Act. The agent generates personas, runs tests to collect raw data, interprets responses to determine goal achievement, and generates HTML reports. Tests real user workflows (booking, checkout, posting) with safety guardrails. Use when asked to "test website usability", "run usability test", "generate usability report", "evaluate user experience", "test checkout flow", "test booking process", or "analyze website UX".
notebook-writer
Create and document Jupyter notebooks for reproducible analyses
nomistakes
Error prevention and best practices enforcement for agent-assisted coding. Use when writing code to catch common mistakes, enforce patterns, prevent bugs, validate inputs, handle errors, follow coding standards, avoid anti-patterns, and ensure code quality through proactive checks and guardrails.
nlss
Workspace-first R statistics suite with subskills and agent-run metaskills (including run-demo for guided onboarding, explain-statistics for concept explanations, explain-results for interpreting outputs, format-document for NLSS format alignment, screen-data for diagnostics, check-assumptions for model-specific checks, and write-full-report for end-to-end reporting) that produce NLSS format tables/narratives and JSONL logs from CSV/SAV/RDS/RData/Parquet. Covers descriptives, frequencies/crosstabs, correlations, t-tests/ANOVA/nonparametric, regression/mixed models, SEM/CFA/mediation, EFA, power, reliability/scale analysis, assumptions, plots, missingness/imputation, data transforms, and workspace management.
nexus-bootstrap
Enables your AI agent to discover and install skills from the Nexus Skills Marketplace. Install this skill first to unlock self-service skill management.