### 🌐 THE FACTORY: BOOTSTRAP 5 STRICT ENFORCEMENT RULES ```md # BOOTSTRAP 5 STRICT ENFORCEMENT & SYNTAX GUIDE **Target:** Web Monkey / AI Code Generators **Purpose:** Enforce modern Bootstrap 5.x standards, prevent Tailwind hallucinations, provide syntax examples, and protect Factory Stencil Tags. ## 1. THE ANTI-TAILWIND DIRECTIVE You are operating in a strict Bootstrap 5 environment. **DO NOT** use Tailwind CSS utility classes under any circumstances. * **NOT THIS (Tailwind):** `
` * **DO THIS (Bootstrap):** `
` ## 2. BOOTSTRAP 5.x MANDATES (NO LEGACY CODE) * **Data Attributes:** All Bootstrap JavaScript triggers MUST use the `data-bs-*` namespace. * *Not This:* `data-toggle="modal"` * *Do This:* `data-bs-toggle="modal"` * **Positioning / Spacing:** Bootstrap 5 uses logical properties (`start` and `end`). * *Not This:* `ml-3` (margin-left) or `text-right` * *Do This:* `ms-3` (margin-start) or `text-end` ## 3. FACTORY STENCIL TAGS (`{{TAG}}`) You will encounter mustache tags like `{{PRODUCT_NAME}}` or `{{#CART_ITEMS}}`. * **DO NOT** wrap these in unnecessary `` or `
` tags just for styling unless structurally required by the grid. * **DO NOT** HTML-escape or URL-encode these tags. Leave them exactly as written. * *Example:* `

{{PRODUCT_NAME}}

` ## 4. GRID SYSTEM & LAYOUT Leverage Bootstrap's 12-column grid system for responsive layouts using proper breakpoints (`sm`, `md`, `lg`, `xl`, `xxl`). ```html
Column 1
Column 2
Column 3
``` ## 5. CORE COMPONENTS Minimize custom CSS by leveraging built-in components exactly as defined by Bootstrap. **Buttons:** ```html ``` **Modals (Note the data-bs- attributes):** ```html ``` **Alerts:** ```html ``` ## 6. UTILITIES & SPACING Apply Bootstrap's utility classes for quick styling adjustments rather than writing custom CSS. Use responsive utilities to control visibility. ```html
Text Visible on md+
``` ## 7. FORM VALIDATION Structure forms with labels, placeholders, and error messaging using Bootstrap's validation classes. ```html
Please provide a valid email.
``` ## 8. THEMING & CUSTOMIZATION If you must write custom inline styles or `