vibe-ui-suite 4.8.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -46,14 +46,18 @@ This interactive command sets up:
46
46
  Add verified, zero-emoji, accessible React 19 component templates directly into your codebase (`components/vibe-ui/`):
47
47
 
48
48
  ```bash
49
- # Add an expandable reasoning / thinking trace drawer
49
+ # Core AI & Telemetry Primitives:
50
50
  npx vibe-ui-suite add thinking-drawer
51
-
52
- # Add a dense telemetry HUD with live metric formatting
53
51
  npx vibe-ui-suite add telemetry-hud
54
-
55
- # Add a real-time WCAG AAA contrast indicator badge
56
52
  npx vibe-ui-suite add contrast-badge
53
+ npx vibe-ui-suite add theme-toggle
54
+
55
+ # Living Micro-Interactions (v6.1.0):
56
+ npx vibe-ui-suite add shimmer-button
57
+ npx vibe-ui-suite add cyber-loader
58
+ npx vibe-ui-suite add holographic-card
59
+ npx vibe-ui-suite add tactile-switch
60
+ npx vibe-ui-suite add glow-input
57
61
  ```
58
62
 
59
63
  ### 3. List Registry Components (`list`)
@@ -62,6 +66,13 @@ npx vibe-ui-suite add contrast-badge
62
66
  npx vibe-ui-suite list
63
67
  ```
64
68
 
69
+ ### 4. Galaxy Inspiration Engine (`inspire`)
70
+
71
+ Search 3,800+ community micro-interactions with offline caching:
72
+ ```bash
73
+ npx vibe-ui-suite inspire "neon button"
74
+ ```
75
+
65
76
  ---
66
77
 
67
78
  ## 🎨 Programmatic Usage
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vibe-ui-suite",
3
- "version": "4.8.0",
4
- "description": "Deterministic design contracts, component recipes, and WCAG AA evaluation gates for AI coding agents (Cursor, Claude Code, Windsurf, Antigravity).",
3
+ "version": "6.3.0",
4
+ "description": "Deterministic design contracts, 11 visual paradigms, flagship component recipes, and WCAG AA evaluation gates for AI coding agents.",
5
5
  "bin": {
6
6
  "vibe-ui-suite": "./dist/cli.js",
7
7
  "vibe-ui": "./dist/cli.js"
@@ -21,15 +21,30 @@
21
21
  "require": "./dist/tailwind.js"
22
22
  },
23
23
  "./v4": "./dist/v4.css",
24
- "./v4.css": "./dist/v4.css"
24
+ "./v4.css": "./dist/v4.css",
25
+ "./registry": {
26
+ "types": "./dist/registry/components.d.ts",
27
+ "import": "./dist/registry/components.mjs",
28
+ "require": "./dist/registry/components.js"
29
+ },
30
+ "./registry/*": {
31
+ "types": "./dist/registry/*.d.ts",
32
+ "import": "./dist/registry/*.mjs",
33
+ "require": "./dist/registry/*.js"
34
+ }
25
35
  },
26
36
  "files": [
27
37
  "dist",
38
+ "skills",
28
39
  "README.md"
29
40
  ],
30
41
  "scripts": {
31
42
  "build": "node build.js"
32
43
  },
44
+ "devDependencies": {
45
+ "@types/node": "^20.14.0",
46
+ "typescript": "^5.6.3"
47
+ },
33
48
  "keywords": [
34
49
  "vibe-ui",
35
50
  "vibe-ui-suite",
@@ -0,0 +1,114 @@
1
+ ---
2
+ name: autonomous-intent-expander
3
+ description: Streamlined intent expansion engine that synthesizes architectural specifications from sparse prompts anchored in the Two Golden Pillars (Trend Inspiration & Living Visual Feedback).
4
+ triggers: ["expand intent", "auto-spec", "read my mind", "full architecture", "scale this", "deepen constraints", "lazy prompt", "complete website design", "requirements spec"]
5
+ ---
6
+
7
+ # 🧠 Autonomous Intent Expander (v6.1.1 Architecture Core)
8
+
9
+ ## 🎯 Purpose & Philosophy
10
+ The `autonomous-intent-expander` skill eliminates friction and interrogation fatigue while preventing blind hallucinations. When a user provides a minimal or ambiguous prompt (e.g., *"Build gym website"*, *"Design aesthetic dental clinic website"*), this engine applies **opinionated default inference** strictly governed by **The 5 Immutable Execution Gates (پروتکل ۵ مرحله ای مهندسی شاهکار)**:
11
+ 1. **Gate 1: Intent & Domain Deliberation** (Deeply understanding persona, trust factors, conversion goals, and enforcing crisp Light-First canvas with unbounded deliberate craft).
12
+ 2. **Gate 2: Deep Trend & Pattern Hunting** (Benchmarking premier aesthetics from Dribbble, Figma Community, Mobbin, and Awwwards; harvesting Galaxy micro-interactions; planning real HD media).
13
+ 3. **Gate 3: Clean Semantic Architecture & Library Synthesis** (Standard React 19, Tailwind v4, Lucide vector icons, and typed OKLCH tokens with zero imaginary packages).
14
+ 4. **Gate 4: Multi-Viewport Living Visual Audit & Self-Critique** (Mandatory browser rendering, Desktop 1440px / Mobile 390px screenshots into `screenshots/`, and multimodal self-correction).
15
+ 5. **Gate 5: Dual Functional & Mathematical Quality Assurance** (Verifying 100% interactive state feedback, WCAG AAA contrast >= 18:1, 0px horizontal overflow, and zero raw emojis).
16
+
17
+
18
+ ---
19
+
20
+ ## ⚙️ Operating Rules & Ambiguity Budget
21
+
22
+ 1. **The 3-Tier Ambiguity Budget:**
23
+ - **Tier 1: Visual, Aesthetic & Component Selection (100% Autonomous):**
24
+ Do NOT interrogate the user for layout, color palettes, visual chemistries, or component choices. Select the most cohesive, modern default and implement it directly.
25
+ - **Tier 2: Product Architecture & Standard Workflows (Autonomous with Stated Assumptions):**
26
+ Infer standard industry user flows and data shapes. Always report these under a clear `⚠️ Assumptions Made:` section so the user can steer if needed, without halting execution.
27
+ - **Tier 3: High-Risk Logic, Financials, Auth & Legal/Compliance (Zero Guesswork):**
28
+ Never blindly guess transaction logic, payment split math, HIPAA/GDPR constraints, or authentication models. If critical information is missing that changes liability or data integrity, surface the exact decision fork.
29
+
30
+ 2. **Domain Archetype & 24 Taxonomy Classification:**
31
+ The expander queries `scripts/search.py` (<10ms zero-token retrieval) and aligns with the 24 canonical domains in `data/taxonomy.json`, 24 architectural blueprints in `data/domain_blueprints.json`, and 26 orthogonal style families in `data/styles.json`:
32
+ - `beauty_clinical_wellness` (Quiet Luxury / Soft Humanist / Warm Light)
33
+ - `fintech_banking` (Clean Stripe / Minimal Swiss / High-Trust Light)
34
+ - `crypto_trading_web3` (Linear Dark / Terminal HUD / Live Telemetry)
35
+ - `devops_cloud_terminal` (Data-Dense Terminal / Linear Dark)
36
+ - `saas_b2b_enterprise` (Clean Stripe / Minimal Swiss / Executive ROI)
37
+ - `ai_developer_platform` (Linear Dark / Modern Glass 2.0 / Reasoning HUD)
38
+ - `creative_portfolio_agency` (Neo-Brutalism / Editorial / Magnetic Bento)
39
+ - Plus 17 additional specialized domains with bilingual Persian/English blueprints.
40
+ - **Stack-Sensor Integration:** Automatically detects React 18/19, Tailwind v3/v4, and existing CSS tokens via `vibe_core.stack_sensor`.
41
+
42
+ 2.1. **Fast Zero-Token Retrieval Command:**
43
+ ```bash
44
+ python scripts/search.py "<user prompt>" --pretty
45
+ ```
46
+
47
+ 3. **The 6-Dimensional Streamlined Architecture:**
48
+ Instead of overwhelming the agent's attention window with legacy parameter bloat, the expander synthesizes 6 essential dimensions:
49
+ 1. **D1: Domain Archetype & Target Persona** (Operational stakes, trust level, and primary conversion goal).
50
+ 2. **D2: Living Visual Direction & Vibrant Light Mode Default** (Crisp white canvas `#ffffff` / `oklch(0.99 0.002 260)`, surface `oklch(0.97 0.005 260)`, dark slate text `#0f172a`, and vibrant primary accent `oklch(0.55 0.22 260)`).
51
+ 3. **D3: Curated Real Imagery Specification** (High-res Unsplash CDN URLs from `data/unsplash_assets.json` and `skills/ui-kit/references/curated_unsplash_vault.md`).
52
+ 4. **D4: Typography & 8pt Spatial Rhythm** (Bold display headers, readable body font, and generous padding).
53
+ 5. **D5: Living Micro-States & Components** (Modular cards, active navigation, interactive sliders/tabs from `skills/ui-kit`).
54
+ 6. **D6: On-Demand RTL & Language Protocol** (Disabled by default; activated strictly on-demand for Persian/Arabic queries with `<bdi>` isolation).
55
+
56
+ ---
57
+
58
+ ## 📄 4. Canonical Machine-Readable Output (`design-spec.json`)
59
+
60
+ When requested or when compiling specs for downstream build pipelines, `autonomous-intent-expander` outputs this clean JSON Design Contract:
61
+
62
+ ```json
63
+ {
64
+ "$schema": "../../schemas/design-spec.v1.schema.json",
65
+ "spec_version": "6.0.0",
66
+ "domain_archetype": "HIGH_PERFORMANCE_SAAS",
67
+ "visual_chemistry": "STRIPE_CRISP_LIGHT",
68
+ "core_parameters": {
69
+ "primary_palette": {
70
+ "canvas_oklch": "oklch(0.99 0.002 260)",
71
+ "surface_oklch": "oklch(0.97 0.005 260)",
72
+ "primary_accent_oklch": "oklch(0.55 0.22 260)",
73
+ "border_oklch": "oklch(0.92 0.008 260)"
74
+ },
75
+ "typography_pair": {
76
+ "display_font": "Plus Jakarta Sans, Inter, system-ui, sans-serif",
77
+ "body_font": "Inter, system-ui, sans-serif",
78
+ "mono_font": "JetBrains Mono, monospace"
79
+ },
80
+ "surface_treatment": "crisp_light_with_subtle_elevation",
81
+ "grid_density": "bento_asymmetric",
82
+ "hero_composition": "split_visual_showcase"
83
+ },
84
+ "asset_strategy": {
85
+ "provider": "curated_unsplash_vault",
86
+ "domain_key": "saas_b2b_enterprise",
87
+ "dimensions": {
88
+ "hero": "&auto=format&fit=crop&w=1200&q=80",
89
+ "card": "&auto=format&fit=crop&w=600&h=400&q=80"
90
+ }
91
+ },
92
+ "accessibility_contract": {
93
+ "wcag_level": "AA",
94
+ "min_touch_target_px": 24,
95
+ "target_recommendation_px": 44,
96
+ "focus_visible_required": true,
97
+ "reduced_motion_strategy": "functional_only"
98
+ },
99
+ "semantic_rtl_contract": {
100
+ "enabled": false,
101
+ "physical_macro_stability": true,
102
+ "bidi_isolation": false,
103
+ "code_ltr_enforced": true
104
+ },
105
+ "novelty_budget": {
106
+ "dimensions_varied": [
107
+ "hero_composition",
108
+ "grid_density",
109
+ "accent_palette"
110
+ ],
111
+ "entropy_heuristic": 0.85
112
+ }
113
+ }
114
+ ```
@@ -0,0 +1,65 @@
1
+ ---
2
+ name: conversion-copy-engine
3
+ description: Strategic value copywriting, objection neutralization frameworks, and domain-calibrated narrative architecture with strict anti-dark-pattern compliance.
4
+ triggers: ["write copy", "conversion", "sales page", "persuasive", "CTA", "landing page copy", "a/b test copy", "cro copy"]
5
+ ---
6
+
7
+ # ✍️ Conversion Copy Engine & Strategic Value Architecture
8
+
9
+ ## 🎯 Purpose
10
+ The `conversion-copy-engine` transforms standard marketing filler into high-converting, domain-calibrated narrative architecture anchored in **Pillar 1: Deep Trend Research & World-Class Inspiration** (benchmarking premier SaaS and product copy from Linear, Stripe, Apple, Notion, and Framer). It applies behavioral clarity, objection neutralization, and transparent risk reversal to maximize conversion rates without resorting to manipulative tricks.
11
+
12
+ ---
13
+
14
+ ## 🧩 1. Domain-Calibrated Copy Frameworks
15
+
16
+ Choose the narrative formula that matches the product category (avoid forcing acute pain/embarrassment onto professional tools):
17
+
18
+ | Product Domain | Primary Framework | Core Hook & Narrative Focus |
19
+ | :--- | :--- | :--- |
20
+ | **B2B SaaS / DevTools** | **JTBD + ROI + Friction Reduction** | Quantifiable efficiency gain, hours saved per sprint, zero workflow disruption. |
21
+ | **Luxury / High-Ticket** | **Status + Exclusivity + Craftsmanship** | Heritage, discerning taste, white-glove concierge, scarcity. |
22
+ | **Healthcare / Clinical** | **Trust + Clinical Evidence + Clarity** | Board certification, verified outcomes, transparent methodology, peace of mind. |
23
+ | **Consumer / Creator** | **Identity + Convenience + Desire** | Frictionless self-expression, lifestyle alignment, immediate gratification. |
24
+ | **Local Services / Trades** | **Proximity + Reliability + Fast Availability** | 24/7 dispatched response, upfront transparent pricing, licensed & insured guarantee. |
25
+
26
+ ---
27
+
28
+ ## ⚡ 2. Universal Conversion Mechanics
29
+
30
+ ### A. The Hero Headline Formula
31
+ $$\mathbf{\text{Hero Headline}} = [\text{Dream Outcome}] + [\text{Without Main Fear / Friction}] + [\text{Unique Mechanism / Timeframe}]$$
32
+
33
+ ### B. PAS Framework (Problem - Agitation - Solution)
34
+ *Best for: Consumer, Health, High-Pain problem spaces.*
35
+ 1. **Problem (Acute Friction):** State the persistent obstacle or wasted cost.
36
+ 2. **Agitation (Cost of Inaction):** Highlight the compounding risk, missed opportunity, or frustration.
37
+ 3. **Solution (Proprietary Mechanism):** Present the unique, credible vehicle that reliably resolves it.
38
+
39
+ ### C. Objection Inversion Microcopy
40
+ Place risk-reversal microcopy directly below primary CTAs to dissolve hesitation at the point of action:
41
+ - *«No credit card required • 2-minute instant setup • Cancel anytime»*
42
+ - *«Transparent pricing • Free migration • Live 24/7 human support»*
43
+ - *«14-day free trial • No credit card required • Instant 2-minute setup»*
44
+
45
+ ### D. Direct Concierge Conversion Funnel
46
+ Move high-intent traffic into direct 1-on-1 conversations using context-aware, pre-filled deep links (WhatsApp, Telegram, or Live Chat).
47
+
48
+ ---
49
+
50
+ ## 🛡️ 3. Inviolable Anti-Dark-Pattern Policy
51
+
52
+ High conversion is built on radical trust, not deceptive manipulation:
53
+ 1. **Zero Synthetic Social Proof:** Never fabricate customer testimonials, invent user avatars, or generate fake reviews.
54
+ 2. **Zero Fake Scarcity or Urgency:** Never generate countdown timers that reset on page reload, or false stock counters ("Only 1 seat left!").
55
+ 3. **Zero Unsubstantiated ROI Claims:** Never promise arbitrary financial multiples ("300% guaranteed ROI in 7 days") unless backed by verifiable customer case studies.
56
+ 4. **Transparent Cancellation & Terms:** Clearly state trial periods, billing cadences, and cancellation rights.
57
+
58
+ ---
59
+
60
+ ## 🌐 4. Multilingual & Persian Copy Protocol (Zero ZWNJ Standard)
61
+
62
+ When synthesizing Persian or bilingual conversion copy:
63
+ 1. **Natural Standard Persian:** Write compelling, fluent copy using standard Persian with regular spaces exclusively.
64
+ 2. **Absolute Prohibition of ZWNJ:** Never use the zero-width non-joiner (`\u200c` / half-space) in any headline, body text, or CTA label per User Global Rule 9. Standard spaces must be used exclusively (e.g., `ثبت نام سریع`, `شروع رایگان`, `پشتیبانی مداوم`).
65
+ 3. **On-Demand `<bdi>` Isolation:** Wrap Latin brand tokens, acronyms, and product terms inside `<bdi>` elements when embedded within Persian phrases to prevent bidirectional text reversals.
@@ -0,0 +1,131 @@
1
+ ---
2
+ name: ui-kit
3
+ description: Exhaustive, domain-agnostic UI/UX Component Engine & Design Intelligence. Curated from Beautiful UI (beautifului.dev - 20 AI primitives), Shadcn UI (ui.shadcn.com - 50+ components), BeUI (beui.dev), Rare UI (rareui.com), and Transitions.dev. Provides copy-paste primitives for AI Thinking states, Streaming text, Tool chips, Approval cards, Task rows, Flowcharts, Insight sparklines, Bento grids, Physics transitions, and accessible UI controls for any tech stack (React, Next.js, Vue, Tailwind, HTML/Vanilla, Flutter) in any visual style or language (LTR/RTL).
4
+ triggers: ["ui-kit", "uikit", "beautifului", "beui", "rareui", "transitions.dev", "shadcn", "component library", "ui components", "ai ui", "components", "ui design", "frontend design"]
5
+ ---
6
+
7
+ # 🎨 UI-Kit: Exhaustive AI-Native & Modern Component Recipes
8
+
9
+ `ui-kit` is a 100% domain-agnostic component encyclopedia and design intelligence engine. It contains 70+ accessible component recipes and reference implementations across premier modern design ecosystems, anchored directly in **The Two Golden Pillars** (Trend Inspiration & Living Visual Feedback).
10
+
11
+ ---
12
+
13
+ ## 🏛️ The Two Golden Pillars of Component Selection
14
+
15
+ 1. **Pillar 1: Deep Trend Inspiration & Benchmark Aesthetics**:
16
+ Select components sourced from elite design benchmarks (Beautiful UI, Shadcn, BeUI, Rare UI, Transitions.dev, and Curated Unsplash Vault). Default to vibrant, modern light mode with high-contrast typography, avoiding dark-mode bias unless the domain explicitly demands it (e.g., terminal or crypto trading).
17
+ 2. **Pillar 2: Living Visual Feedback & Render Verifiability**:
18
+ Every component enforces deterministic container sizing, responsive aspect ratios (`16:9`, `3:2`, `4:5`, `1:1`), zero cumulative layout shift (CLS), and explicit demarcation slots, calibrated for headless Playwright multi-viewport screenshot auditing and automated healing.
19
+
20
+ ---
21
+
22
+ ## 🌐 The 9 Pillar Resource Catalogs
23
+
24
+ | Catalog Reference | Source / Provenance | Component Scope |
25
+ | :--- | :--- | :--- |
26
+ | [`references/living_micro_interactions.md`](references/living_micro_interactions.md) | **Uiverse Galaxy & Living Micro-Interactions** | **Living Micro-Interactions:** Shimmer Button, Cyber Loader, Holographic 3D Tilt Card, Tactile Switch, Glow Input, Autonomous Living Injection Matrix, and Zero-Hallucination Guardrails. |
27
+ | [`references/ai_native_full_catalog.md`](references/ai_native_full_catalog.md) | **[Beautiful UI](https://beautifului.dev)** (Adapted) | **20 AI Primitives:** Loading State, Thinking State, Streaming Text, Approval Card, Tool Chips, Task Rows, Chat, Prompt Bar, Recommendation Card, Context Cards, Diff Table, Records Table, Filter Table, Sidebar Nav, Search HUD, Insight Cards / Sparklines, Code Block with Copy, Fine-tune Card, Selection Actions. |
28
+ | [`references/shadcn_full_catalog.md`](references/shadcn_full_catalog.md) | **[Shadcn UI](https://ui.shadcn.com)** (MIT) | **50+ UI Primitives:** Forms & Inputs (Input, Textarea, Select, Checkbox, Switch, InputOTP, Slider), Overlays & Modals (Dialog, Sheet/Drawer, Popover, Tooltip, Dropdown), Navigation (Command Palette `Cmd+K`, Tabs, Breadcrumb), Feedback (Sonner Toast, Skeleton Shimmer, Progress), Data Display (Accordion, Avatar, Table). |
29
+ | [`references/bento_grids_and_cards.md`](references/bento_grids_and_cards.md) | **[BeUI](https://beui.dev) & [Rare UI](https://rareui.com)** (MIT) | **Bento & Interactive Cards:** 3-Col & 4-Col Asymmetric Bento Grids, Glassmorphism 2.0 Inset Specular Cards, Animated Gradient Shimmer Buttons, Metric HUD Tiles. |
30
+ | [`references/modern_vibe_components.md`](references/modern_vibe_components.md) | **[Aceternity](https://ui.aceternity.com) & [Magic UI](https://magicui.design)** (Adapted) | **Modern Vibe Recipes:** Aurora Glow Background, Spotlight Hero, Neon Border-Beam Cards, 3D Tilt Cards, Infinite Smooth Marquee, Shimmer Glow Buttons, Floating Dock Island. |
31
+ | [`references/data_and_flow.md`](references/data_and_flow.md) | **Flow & Metric Visualization** | **Workflow & Canvas Nodes:** Modular Trigger Nodes, If/Else Conditional Splitters, Action Execution Cards, Micro Sparkline Meters, Dotted Grid Canvas. |
32
+ | [`references/physics_transitions_catalog.md`](references/physics_transitions_catalog.md) | **[Transitions.dev](https://transitions.dev)** (Zero-Dep) | **Zero-Dependency Motion:** Pure CSS Grid Dynamic Height Accordions (`0fr` -> `1fr`), Spring Easing Bezier Curves, Staggered List Reveals, JS Number Flip Counters, 3D Tilt Cards. |
33
+ | [`references/tokens_and_theme_engine.md`](references/tokens_and_theme_engine.md) | **Universal Design System** | **Tokens & Layouts:** Theme Variables (Light, Dark, Custom), Directional Logical CSS (`ms-*`, `me-*`, `start-*`, `end-*`) for universal LTR & RTL support. |
34
+ | [`references/curated_unsplash_vault.md`](references/curated_unsplash_vault.md) | **Curated Unsplash Asset Vault** | **24 Canonical Domains:** Verified high-resolution CDN photography with responsive WebP focal dimensions (`w=1200` heroes, `w=600&h=400` cards) across all 24 industry domains with zero gray placeholder boxes. |
35
+
36
+ ---
37
+
38
+ ## ♿ Mandatory Accessibility & Quality Contract (WCAG AA)
39
+
40
+ When generating or adapting any component from this kit, the AI Agent must strictly uphold:
41
+ 1. **Semantic HTML Elements:** Use `<button>` for clickables (never `<div onclick>`), `<nav>`, `<aside>`, `<dialog>`, etc.
42
+ 2. **Keyboard Operability & Visible Focus:** All interactive controls must respond to `Enter`/`Space` and feature high-contrast `focus-visible:ring-2` states.
43
+ 3. **Screen Reader Semantics:** Provide `aria-expanded`, `aria-controls`, `aria-label`, and `role="region"` for collapsing or stateful elements.
44
+ 4. **Functional Motion Sensitivity:** Disable non-essential decorative loops, parallax, and continuous spring animations under `@media (prefers-reduced-motion: reduce)`; preserve essential functional state transitions (e.g. accordion disclosure, button states) with short, non-disorienting durations ($\le 150\text{ms}$).
45
+
46
+ ---
47
+
48
+ ## ⚡ Universal Usage Workflow
49
+
50
+ Whenever asked to build, design, or refactor any frontend component or view:
51
+ 1. **Identify the Component Domain & Aesthetic Anchor:** Anchor to Pillar 1 by selecting cohesive primitives matching domain blueprints. Default to vibrant light mode unless domain explicitly dictates otherwise.
52
+ 2. **Read the Target Reference:** Pull exact markup, Tailwind utility classes, zero-JS transitions, and verified photography from `references/`.
53
+ 3. **Adapt Seamlessly:** Match the target framework (React, Vue, HTML/JS, Tailwind), color theme, and language direction.
54
+ 4. **Verify Living Visuals:** Align with Pillar 2 by ensuring all media containers and layout nodes render cleanly under multi-viewport Playwright screenshot audits.
55
+
56
+ ---
57
+
58
+ ## 📐 On-Demand Scoped RTL & Semantic Architecture
59
+
60
+ RTL layout rules and `<bdi>` bidirectional contracts are strictly scoped to on-demand Persian/Arabic execution (never enforced by default on universal or English interfaces). When explicitly executing for Persian, Arabic, or bilingual viewports:
61
+ 1. **Preserve Macro Layout & Coordinates:**
62
+ Global grid columns, module cards, slider tracks, and navigation bars remain physically stable. Do not indiscriminately flip entire layout grids.
63
+ 2. **Target Textual & Paragraph Direction:**
64
+ Apply `direction: rtl` and text alignments to text nodes, headings, and descriptions.
65
+ 3. **Mirror Semantic Directional Affordances:**
66
+ Navigation arrows (previous/next), sequential timelines, step wizards, and back-buttons must mirror semantically to follow reading flow.
67
+ 4. **BiDi Resilience & Strict Monospace LTR:**
68
+ Mixed English brand names or tech terms inside Persian sentences must not scramble punctuation (`unicode-bidi: plaintext` or `<bdi>`).
69
+ Code blocks, numbers, metric counters (`99.98%`), and URLs always stay strictly `direction: ltr !important; text-align: left !important`.
70
+ 5. **Zero ZWNJ Protocol:**
71
+ All Persian text in copy, comments, and configuration must use standard spaces exclusively. The zero-width non-joiner (`\u200c`) is strictly forbidden.
72
+
73
+ ---
74
+
75
+ ## 📱 Mobile-Native Resilience & Touch Polish
76
+
77
+ To ensure web interfaces feel as polished and responsive as native iOS and Android apps, enforce the following ergonomic invariants:
78
+
79
+ 1. **Dynamic Viewport Height (`100dvh`):**
80
+ - Never use static `height: 100vh` for full-screen modals, sheets, or mobile heroes. Mobile browser address bars collapse/expand on scroll, causing jarring layout jumps.
81
+ - Use `min-height: 100dvh;` with graceful fallback:
82
+ ```css
83
+ min-height: 100vh;
84
+ min-height: 100dvh;
85
+ ```
86
+
87
+ 2. **iOS Safari Input Auto-Zoom Guard:**
88
+ - In iOS Safari, any `<input>`, `<select>`, or `<textarea>` with `font-size < 16px` triggers an involuntary, disruptive zoom on touch focus.
89
+ - Always ensure base font size for form controls on mobile is at least `16px` (`text-base` in Tailwind):
90
+ ```css
91
+ @media (max-width: 640px) {
92
+ input, select, textarea {
93
+ font-size: 16px !important;
94
+ }
95
+ }
96
+ ```
97
+
98
+ 3. **Tap Highlight Suppression:**
99
+ - Remove default WebKit gray rectangular tap flash on clickable elements:
100
+ ```css
101
+ button, a, [role="button"] {
102
+ -webkit-tap-highlight-color: transparent;
103
+ touch-action: manipulation; /* Eliminates 300ms tap delay */
104
+ }
105
+ ```
106
+
107
+ 4. **Sticky Hover State Elimination:**
108
+ - Touch devices emulate mouse hover upon touch tap, leaving buttons permanently stuck in their hover visual state after the finger lifts.
109
+ - Strictly encapsulate all hover pseudo-classes in fine pointer media queries:
110
+ ```css
111
+ @media (hover: hover) and (pointer: fine) {
112
+ .interactive-element:hover {
113
+ /* Hover transformation/glow here */
114
+ }
115
+ }
116
+ ```
117
+
118
+ 5. **Physical Touch Target Dimensions (WCAG 2.5.8):**
119
+ - All interactive touch targets (buttons, icon triggers, pills) must provide an active bounding box of at least **44px × 44px** on touch viewports, even if the visible icon is smaller (use transparent hit padding or pseudo-elements).
120
+
121
+ ---
122
+
123
+ ## 📜 Provenance, Adaptation & Legal Licensing
124
+
125
+ - **Clean-Room Implementation:** All 70+ components in this encyclopedia are clean-room adaptations, re-written from scratch as portable semantic Tailwind CSS / HTML / React recipes.
126
+ - **No Proprietary Runtime Bundles:** This library does not import or re-distribute proprietary binaries or runtime npm packages.
127
+ - **MIT & Open Source Attribution:**
128
+ - **Shadcn UI:** Re-implemented following the open-source patterns under the MIT License.
129
+ - **Transitions.dev:** Pure CSS motion patterns adapted from open CSS specifications.
130
+ - **Beautiful UI, BeUI & Rare UI:** Conceptual layout patterns synthesized into production-ready accessible code recipes.
131
+