theme-evaluation
Evaluate themes for accessibility, contrast, and design issues. Use when auditing themes for WCAG compliance, checking color contrast ratios, or identifying visual/UX problems.
Install
mkdir -p .claude/skills/theme-evaluation && curl -L -o skill.zip "https://mcp.directory/api/skills/download/4893" && unzip -o skill.zip -d .claude/skills/theme-evaluation && rm skill.zipInstalls to .claude/skills/theme-evaluation
About this skill
Theme Evaluation for PropertyWebBuilder
Overview
This skill provides comprehensive theme evaluation focusing on:
- WCAG AA/AAA contrast compliance (primary focus)
- Color palette consistency
- Typography readability
- Component styling issues
- Dark mode compatibility
- Responsive design problems
Quick Evaluation Commands
Using Built-in Tools
# Check WCAG AA compliance for any color pair
Pwb::ColorUtils.wcag_aa_compliant?('#ffffff', '#333333')
# => true (14.0:1 ratio)
# Get exact contrast ratio
Pwb::ColorUtils.contrast_ratio('#ffffff', '#6b7280')
# => 4.5:1 (borderline AA for normal text)
# Suggest text color for a background
Pwb::ColorUtils.suggest_text_color('#1a2744')
# => '#ffffff' (white for dark backgrounds)
# Check if ratio meets specific threshold
Pwb::ColorUtils.meets_contrast_threshold?('#fff', '#666', 4.5)
# => true/false
# Validate all palettes
rake palettes:validate
# Check contrast for a specific palette
rake palettes:contrast[default,classic_red]
# List all palettes for a theme
rake palettes:list[brisbane]
WCAG Contrast Requirements
Minimum Ratios (WCAG 2.1 AA)
| Text Type | Minimum Ratio | Examples |
|---|---|---|
| Normal text (<18px) | 4.5:1 | Body text, labels, captions |
| Large text (>=18px bold or >=24px) | 3:1 | Headings, hero text |
| UI components & graphics | 3:1 | Buttons, icons, borders |
| Incidental/decorative | None | Logos, disabled elements |
Enhanced Ratios (WCAG AAA)
| Text Type | Enhanced Ratio |
|---|---|
| Normal text | 7:1 |
| Large text | 4.5:1 |
Common Color Reference
Good Contrast Colors on White (#FFFFFF)
| Color | Hex | Contrast | WCAG Level |
|---|---|---|---|
| Black | #000000 | 21:1 | AAA |
| Gray 900 | #111827 | 16.8:1 | AAA |
| Gray 800 | #1f2937 | 14.3:1 | AAA |
| Gray 700 | #374151 | 10.7:1 | AAA |
| Gray 600 | #4b5563 | 6.3:1 | AA |
| Gray 500 | #6b7280 | 4.5:1 | AA (borderline) |
| Gray 400 | #9ca3af | 2.9:1 | FAIL |
| Gray 300 | #d1d5db | 1.8:1 | FAIL |
Good Contrast Colors on Dark (#1f2937)
| Color | Hex | Contrast | WCAG Level |
|---|---|---|---|
| White | #ffffff | 14.3:1 | AAA |
| Gray 100 | #f3f4f6 | 12.7:1 | AAA |
| Gray 200 | #e5e7eb | 11.0:1 | AAA |
| Gray 300 | #d1d5db | 7.5:1 | AAA |
| Gray 400 | #9ca3af | 4.1:1 | FAIL |
| Gray 500 | #6b7280 | 3.2:1 | FAIL |
Evaluation Checklist
1. Hero Section
- [ ] Hero title contrast (white text on image overlay)
- [ ] Hero subtitle/paragraph contrast (>=4.5:1)
- [ ] Overlay opacity sufficient for text readability
- [ ] CTA button primary has sufficient contrast
- [ ] CTA button secondary/outline readable on background
- [ ] Text shadow enhances readability (not just decorative)
Common Issues:
- Transparent overlay too light (use
rgba(0,0,0,0.45)minimum) - Subtitle using gray instead of white
- Outline buttons invisible on image backgrounds
Fixes:
/* Hero overlay for WCAG AA compliance */
.hero-bg-wrapper::after {
content: '';
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 1;
}
/* Outline button on dark/image backgrounds */
.hero-section .btn-outline {
background: rgba(0, 0, 0, 0.35);
border-color: #ffffff;
color: #ffffff;
}
2. Navigation/Header
- [ ] Nav links contrast against header background
- [ ] Active/hover states clearly visible
- [ ] Dropdown menus readable
- [ ] Mobile menu toggle visible
- [ ] Logo readable (if text)
3. Footer
- [ ] Footer text contrast (>=4.5:1)
- [ ] Footer links contrast (>=4.5:1)
- [ ] Social icons visible
- [ ] Copyright text readable
- [ ] Footer heading contrast
Common Issues:
- Light gray text (#9ca3af) on dark background fails
- Links using opacity < 0.85
Fixes:
/* Footer link improvements */
.footer-links {
color: #d1d5db; /* 7.5:1 on #1f2937 (was #9ca3af at 4.1:1) */
}
/* For themes using rgba */
footer a {
color: rgba(255, 255, 255, 0.9); /* Not 0.7 or 0.8 */
}
4. Body Content
- [ ] Body text contrast (>=4.5:1)
- [ ] Heading contrast
- [ ] Link color distinguishable and sufficient contrast
- [ ] Blockquote/testimonial text
- [ ] Caption/small text
- [ ] Form labels
- [ ] Placeholder text (informational only, not critical)
Common Issues:
- Testimonial quotes using muted gray (#6b7280)
- Small text/captions too light
Fixes:
.testimonial-text {
color: #374151; /* 10.7:1 on white (was #6b7280 at 4.5:1) */
}
5. Cards & Components
- [ ] Card text on card background
- [ ] Price text visible
- [ ] Badge/tag text readable
- [ ] Icon colors sufficient contrast
- [ ] Border visibility (3:1 for UI)
6. Buttons
- [ ] Primary button text contrast (white on brand color)
- [ ] Secondary button contrast
- [ ] Outline button visible on all backgrounds
- [ ] Disabled state still minimally visible
- [ ] Hover/focus states visible
7. Forms
- [ ] Input text contrast
- [ ] Label contrast
- [ ] Error message contrast (red on background)
- [ ] Help text contrast
- [ ] Border visibility
8. Dark Mode (if supported)
- [ ] All light mode checks apply to dark mode
- [ ] Cards have sufficient contrast against dark background
- [ ] Links visible in dark mode
- [ ] Form inputs styled for dark
Theme Files to Check
CSS Files Location
app/views/pwb/custom_css/
├── _default.css.erb
├── _brisbane.css.erb
├── _bologna.css.erb
├── _barcelona.css.erb
├── _biarritz.css.erb
└── _base_variables.css.erb
Palette Files Location
app/themes/
├── default/palettes/
│ ├── classic_red.json
│ ├── ocean_blue.json
│ ├── forest_green.json
│ ├── sunset_orange.json
│ ├── midnight_purple.json
│ └── natural_earth.json
├── brisbane/palettes/
│ ├── gold_navy.json
│ ├── rose_gold.json
│ ├── platinum.json
│ ├── emerald_luxury.json
│ ├── azure_prestige.json
│ └── champagne_onyx.json
└── bologna/palettes/
├── terracotta_classic.json
├── sage_stone.json
├── coastal_warmth.json
└── modern_slate.json
Key CSS Selectors to Audit
/* Hero */
.hero-section, .hero-bg-wrapper, .hero-title, .hero-subtitle
.hero-section::before, .hero-bg-wrapper::after
/* Navigation */
.navbar, header, .nav-link, .navbar-brand
/* Footer */
footer, .site-footer, .footer-links, .footer-contact-list
.footer-copyright, .social-icon-link
/* Content */
.testimonial-text, .testimonial-content
.service-content, .service-description
.card-body, .property-card
/* Buttons */
.btn-primary, .btn-secondary, .btn-outline
.btn-base, .btn-action
.pwb-btn--primary, .pwb-btn--secondary
Running an Evaluation
Step 1: Load Theme and Palette Colors
# Get theme info
theme = Pwb::Theme.find_by(name: 'brisbane')
theme.palettes.keys
# => ["gold_navy", "rose_gold", "platinum", ...]
# Load specific palette colors
loader = Pwb::PaletteLoader.new
colors = loader.get_light_colors('brisbane', 'gold_navy')
# => { "primary_color" => "#c9a962", "secondary_color" => "#1a2744", ... }
Step 2: Check Critical Color Pairs
# Check all critical combinations
colors = loader.get_light_colors('brisbane', 'gold_navy')
# Text on backgrounds
Pwb::ColorUtils.contrast_ratio(colors['text_color'], colors['background_color'])
Pwb::ColorUtils.contrast_ratio(colors['header_text_color'], colors['header_background_color'])
Pwb::ColorUtils.contrast_ratio(colors['footer_text_color'], colors['footer_background_color'])
# Primary color on white (for buttons)
Pwb::ColorUtils.contrast_ratio('#ffffff', colors['primary_color'])
# Links on background
Pwb::ColorUtils.contrast_ratio(colors['link_color'], colors['background_color'])
Step 3: Generate Contrast Report
# Quick contrast audit
def audit_palette(theme_name, palette_id)
loader = Pwb::PaletteLoader.new
colors = loader.get_light_colors(theme_name, palette_id)
checks = [
['Body text', colors['text_color'], colors['background_color'], 4.5],
['Header text', colors['header_text_color'], colors['header_background_color'], 4.5],
['Footer text', colors['footer_text_color'], colors['footer_background_color'], 4.5],
['Link on bg', colors['link_color'], colors['background_color'], 4.5],
['Primary on white', '#ffffff', colors['primary_color'], 4.5],
]
checks.each do |name, fg, bg, required|
ratio = Pwb::ColorUtils.contrast_ratio(fg, bg)
status = ratio >= required ? 'PASS' : 'FAIL'
puts "#{status} #{name}: #{ratio.round(2)}:1 (need #{required}:1)"
end
end
audit_palette('brisbane', 'gold_navy')
Step 4: Document Failures
Create a report:
## Theme: brisbane Contrast Audit
### FAILURES (Must Fix)
| Element | Foreground | Background | Ratio | Required | Fix |
|---------|-----------|------------|-------|----------|-----|
| Footer links | #9ca3af | #1f2937 | 4.1:1 | 4.5:1 | Use #d1d5db |
| Hero subtitle | #f3f4f6 | image | ~4.2:1 | 4.5:1 | Add overlay |
### WARNINGS (Should Fix)
| Element | Issue | Recommendation |
|---------|-------|----------------|
| Testimonials | Borderline 4.5:1 | Darken to #374151 |
### PASSED
- Hero title: White on overlay (21:1)
- Primary buttons: White on brand (8.2:1)
- Body text: #333 on white (12.6:1)
Using ColorUtils API
Full API Reference
# Contrast calculations
Pwb::ColorUtils.contrast_ratio('#ffffff', '#333333')
# => 12.63
Pwb::ColorUtils.wcag_aa_compliant?(foreground, background)
# => true/false (checks 4.5:1)
Pwb::ColorUtils.wcag_aa_large_compliant?(foreground, background)
# => true/false (checks 3:1 for large text)
Pwb::ColorUtils.meets_contrast_threshold?(fg, bg, threshold)
# => true/false
# Color suggestions
Pwb::ColorUtils.suggest_text_color(background_color)
# => '#ffffff' or '#000000' based on luminance
# Shade generation
Pwb::ColorUtils.generate_
---
*Content truncated.*
More by etewiah
View all skills by etewiah →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversQuick color contrast checker to validate WCAG color contrast with a contrast ratio checker — find accessible color combo
Mobile Next offers fast, seamless mobile automation for iOS and Android. Automate apps, extract data, and simplify mobil
Create and edit PowerPoint presentations, apply themes, add slides and export to PDF quickly using pptxgenjs and officeg
Boost your AI code assistant with Context7: inject real-time API documentation from OpenAPI specification sources into y
Enhance software testing with Playwright MCP: Fast, reliable browser automation, an innovative alternative to Selenium s
Use Chrome DevTools for web site test speed, debugging, and performance analysis. The essential chrome developer tools f
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.