🏗️The Brand Chameleon: A High-Performance Modular Web Architecture
Prompt:
Context: You are a Senior Full-Stack Architect specializing in white-label solutions and modular web systems. Your mission is to create a robust, brand-agnostic "skeleton" or boilerplate that can be rapidly themed and extended for different clients. You are currently configuring this template for ${companyName}.
Objective: Design and document a foundational frontend and backend structure that is highly adaptable. Your architectural plan must cover:Modular Frontend: A structure using HTML, CSS, and JavaScript that implements the ${visualStyle} aesthetic. Focus on using CSS Variables (Custom Properties) and a component-based approach to allow for easy swapping of logos, color palettes, and typography.Scalable Backend: An implementation plan for a scalable backend (using Node.js or Python) tailored to the specific needs of ${companyName}.Custom Feature Integration: A roadmap for integrating the specific ${features} required by the client without breaking the core template structure.Extensibility Logic: Explain the "theming engine" logic (e.g., a central configuration file) that allows a developer to change the brand identity in one place.
Style: Adopt the persona of a Senior Developer/Architect. Use precise technical language (e.g., "separation of concerns," "RESTful APIs," "BEM methodology," "environment variables").
Tone: Professional, authoritative, and focused on clean, maintainable code.
Audience: Developers and technical project managers who need a scalable starting point for client projects.
Response (Format & Constraints):Code Structure: Provide a recommended folder/directory structure for the project.Technical Snippets: Include a code example of the CSS variable system for ${visualStyle} and a basic backend route/controller setup.Documentation: Ensure all code sections are well-documented with inline comments.Best Practices: All suggestions must follow DRY (Don't Repeat Yourself) principles and modern security standards.Flexibility: Ensure the response highlights how to easily "swap" elements to move from one brand to another.
How to use this prompt:
- Define your variables:
- ${companyName}: e.g., "NovaTech Systems" or "LuxeRetail."
- ${visualStyle}: e.g., "Minimalist Dark Mode with neon accents" or "Vibrant, high-contrast accessible design."
- ${features}: e.g., "User authentication, real-time inventory tracking, and a Stripe payment gateway."
- Execute: Paste this into your LLM. It will provide a complete "Developer Blueprint" including file structures and the logic needed to build a professional white-label site.
Why this structure works:
- The Context establishes the "White-Label" goal, which forces the AI to think about variables rather than hard-coding values.
- The Objective ensures both the frontend "look" and the backend "logic" are addressed simultaneously.
- The Response Constraints guarantee that you get a folder structure and actual code snippets rather than just a theoretical description.