FlashCrafter Logo
FlashCrafterbeta

CTA Component Visual Regression Test

This page displays all CTA components across all background types to ensure proper visibility, contrast, and styling in both light and dark modes. Use this for visual inspection and automated testing.

⚠️ Test Page - Not for Production

Toggle light/dark mode in top-right to test both themes

Light Background (Default Pages)

Background Type: light

Light Gradient (Hero Sections)

Background Type: gradient-light

Purple Gradient (CTA Sections)

Background Type: gradient-purple

Dark Background

Background Type: dark

Accent Background

Background Type: accent

Button Variant Strategy Reference

Background TypePrimary VariantSecondary VariantReasoning
lightdefaultoutlinePurple bg stands out on light background
gradient-lightdefaultoutlineSame as light - subtle gradient
gradient-purplemodernglassWhite/glass contrasts with purple bg
darkmodernglassWhite/glass contrasts with dark bg
accentmodernglassWhite/glass contrasts with accent bg

✅ WCAG Accessibility Compliance

All button/background combinations maintain a minimum 4.5:1 contrast ratio for WCAG AA compliance. The automated Playwright test will verify this programmatically.