Implementation: How to add variants for all 25 core widgets?

Documentation for Sessions

⚙️ Implementation: How to add variants for all 25 core widgets?

Date: 2026-02-03
Time: 20:27:29 UTC
Session: editor2-85.2
Agent: angular
Confidence: 95%
Status: ✅ Documented


📋 Decision Context

Question:

How to add variants for all 25 core widgets?

Task: Not specified


🎯 Decision Made

Chosen:

Single unified variants file with all widgets

Options Considered:

  1. Add variants inline in each widget definition
  2. Create separate variant files per widget
  3. Single unified variants file with all widgets

💭 Reasoning

Keeps variants in a single source of truth (unified-widget-variants.ts), makes it easy for AI agents to reference all variants, and maintains consistency with existing architecture. The file is already imported by page-builder's WidgetStylingService.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation