Agent skill
ui
UI component patterns, colors, typography, and styling for PastCare Angular components
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/ui-reubenfrimpong-past-care-spring
SKILL.md
UI Design Skill
Implement UI for: $ARGUMENTS
Color Palette (USE EXACT VALUES)
Primary Colors
/* Primary Purple - buttons, FAB, main actions, toolbars */
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
/* Secondary Purple - advanced features, secondary actions */
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
/* Accent Green - success, quick add, verified badges */
background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
/* Solid: #10b981, #34d399 */
/* Accent Orange - warnings, bulk import, pending */
color: #f59e0b; /* or #f97316 */
/* Accent Blue - information, location features */
color: #3b82f6; /* or #2563eb */
/* Danger Red - delete, errors, critical actions */
color: #ef4444; /* or #dc2626 */
Neutral Colors
--text-primary: #1f2937;
--text-secondary: #6b7280;
--text-muted: #9ca3af;
--border-default: #e5e7eb;
--border-light: #d1d5db;
--bg-light: #f9fafb;
--bg-lighter: #f3f4f6;
Typography
/* Page titles */
font-size: 1.875rem; /* 30px */
font-weight: 700;
color: #1f2937;
/* Section titles */
font-size: 1.125rem; /* 18px */
font-weight: 600;
/* Subtitles */
font-size: 0.875rem; /* 14px */
color: #6b7280;
/* Form labels */
font-size: 0.875rem;
font-weight: 500;
color: #374151;
/* Body text */
font-size: 0.9375rem; /* 15px */
/* Small text */
font-size: 0.75rem; /* 12px */
color: #6b7280;
/* Tags/badges */
font-size: 0.625rem; /* 10px */
font-weight: bold;
Border Radius Hierarchy
/* Page containers/sections */
border-radius: 1.25rem; /* 20px */
/* Cards */
border-radius: 1rem; /* 16px */
/* Form inputs, buttons */
border-radius: 0.75rem; /* 12px */
/* Tags/badges */
border-radius: 0.5rem; /* 8px */
/* Pills (status badges) */
border-radius: 9999px;
/* Circular (avatars) */
border-radius: 50%;
Shadows
/* Subtle (default) */
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
/* Card hover */
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
/* Dialog/panel */
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
/* Focus state */
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
Button Patterns
Primary Button
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 0.75rem 1.5rem;
border-radius: 0.75rem;
border: none;
font-weight: 500;
transition: all 0.2s ease;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
Secondary Button
.btn-secondary {
background: #f3f4f6;
color: #4b5563;
border: 1px solid #e5e7eb;
padding: 0.625rem 1.25rem;
border-radius: 0.75rem;
}
.btn-secondary:hover {
background: #e5e7eb;
}
Danger Button
.btn-danger {
background: #fef2f2;
color: #ef4444;
border: 1px solid #fee2e2;
}
.btn-danger:hover {
background: #ef4444;
color: white;
}
Icon Button
.btn-icon {
width: 36px;
height: 36px;
border: 2px solid #e5e7eb;
border-radius: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
}
.btn-icon:hover {
border-color: #667eea;
background: rgba(102, 126, 234, 0.1);
}
Card Patterns
Standard Card
.card {
background: white;
border-radius: 1rem;
padding: 1.25rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
transition: all 0.2s ease;
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}
Card Actions (3-Column Grid)
.card-actions {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
}
Avatar Patterns
Member Avatar (Card)
.avatar-card {
width: 64px;
height: 64px;
border-radius: 1rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
font-weight: bold;
font-size: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
}
Profile Avatar (Large)
.avatar-profile {
width: 80px; /* or up to 150px */
height: 80px;
border-radius: 50%;
border: 3px solid #667eea;
}
Badge Patterns
Fellowship Tag
.tag-fellowship {
background: #eff6ff;
color: #2563eb;
padding: 0.25rem 0.625rem;
border-radius: 0.5rem;
font-size: 0.625rem;
font-weight: bold;
}
Status Badge (Pill)
.badge-status {
background: linear-gradient(135deg, var(--color1) 0%, var(--color2) 100%);
color: white;
padding: 0.375rem 0.875rem;
border-radius: 9999px;
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-size: 0.75rem;
}
Empty State
.empty-state {
background: linear-gradient(to bottom, #ffffff, #f9fafb);
border: 2px dashed #e5e7eb;
border-radius: 1.25rem;
padding: 4rem 2rem;
text-align: center;
}
.empty-icon {
width: 120px;
height: 120px;
background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
border-radius: 50%;
margin: 0 auto 1.5rem;
}
Dialog Standards
/* Widths: Small 450px, Medium 600px, Large 900px, Max 95vw */
.dialog-header {
padding: 1.5rem;
border-bottom: 1px solid #e5e7eb;
}
.dialog-content {
padding: 1.5rem;
}
.dialog-footer {
padding: 1rem 1.5rem;
border-top: 1px solid #e5e7eb;
display: flex;
justify-content: flex-end;
gap: 0.75rem;
}
PrimeNG Overrides
::ng-deep .p-inputswitch {
width: 3rem;
height: 1.75rem;
}
::ng-deep .p-select,
::ng-deep .p-chips {
font-size: 0.9375rem;
}
::ng-deep .p-focus {
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}
Critical Rules
- ALWAYS use purple gradient for primary actions
- NEVER create custom colors - use defined palette only
- ALWAYS follow border-radius hierarchy
- NEVER exceed 0.3s for animations
- NEVER use inline styles - use component CSS
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?