-# tidyfactor-design `v1.5.0`
+# tidyfactor-design `v1.9.0`
-**Motor de Ciclo de Vida de Design UI Nativo em Código e Prototipagem Interativa para Agentes de IA**
+**Motor de Ciclo de Vida de Design UI Nativo em Código e Suíte Anti-Slop para Agentes de IA**
[](https://www.npmjs.com/package/@tidyfactor/design)
[](LICENSE)
@@ -13,32 +13,90 @@
---
-## ⚡ Início Rápido (Quickstart)
+## 💡 Filosofia Central: Separação de Inteligência de Design da Implementação
-```bash
-# Instalação e execução via NPX
-npx @tidyfactor/cli-design
-```
+A base conceitual do **TidyFactor Design** baseia-se na separação estrita entre o **conhecimento e inteligência de design** e a **execução técnica em código**:
-Ou execute diretamente dentro do seu assistente de IA (*Google Antigravity, Claude Code, Cursor, Codex*):
-```text
-/tidyfactor-design
```
+ DESIGN INTELLIGENCE
+ │
+ ┌──────────┴──────────┐
+ ↓ ↓
+ Operational Memory Workflows
+ │ │
+ └──────────┬──────────┘
+ ↓
+ AI Agent
+ ↓
+ Design System
+ ↓
+ HTML/CSS/JS
+ ↓
+ Audit
+ ↓
+ Handoff
+```
+
+Esta arquitetura transforma a skill em um **Sistema Operacional de Engenharia de Design** reutilizável e determinístico entre projetos variados. Em vez de simplesmente solicitar ao modelo que "crie uma interface bonita", o agente executa um ciclo de vida de design formal.
---
-## 📋 Matriz de Comandos Principais
+## ⚖️ TidyFactor Design vs. Figma: Alternativa Nativa em Código
-| Comando | Objetivo e Resultado | Fluxo de Trabalho |
+O TidyFactor Design não busca ser um aplicativo de desenho vetorial convencional, mas sim uma **Alternativa Nativa em Código ao Figma (Code-Native Alternative)**:
+
+| Característica | Figma | TidyFactor Design |
|---|---|---|
-| `/brief` | Briefing de diseño y descubrimiento de marca | `workflows/brief.md` |
-| `/tokens` | Generación de design tokens y escalas | `workflows/tokens.md` |
-| `/components` | Prototipado interactivo de componentes UI | `workflows/components.md` |
-| `/page` | Montaje de páginas completas interactivas | `workflows/page.md` |
-| `/rtl` | Validación y soporte nativo RTL/Árabe | `workflows/rtl.md` |
+| **Paradigma** | Ferramenta visual de design | Fluxo de design nativo em código |
+| **Ambiente** | Focado em Canvas (Canvas-centric) | Focado em Código (Code-centric) |
+| **Público** | Designers visuais | Agentes de IA + Desenvolvedores + Design Engineers |
+| **Componentes** | Componentes e variáveis visuais | Tokens + componentes + fluxos determinísticos |
+| **Prototipagem** | Protótipos visuais de tela | Protótipos reais em HTML/CSS/JS (zero build step) |
+| **Handoff** | Transferência manual Designer → Dev | Design e implementação unificados no mesmo ambiente |
+| **Governança** | Inspeção visual manual | Validações mecânicas de qualidade automatizadas |
+| **Escopo** | Criação de interface de usuário | Gestão completa do ciclo de vida de design |
+
+---
+
+## 🧠 O Que É Memória Operacional (Operational Memory)?
+
+A memória operacional (`references/memory/`) não consiste em artigos teóricos, mas em **regras acionáveis, matrizes estruturadas, esquemas de design e restrições executáveis**:
+
+- **Matriz Tipográfica** (`01-typography-matrix.md`): Hierarquias e escalas sem suposições.
+- **Arquétipos de Layout** (`02-layout-archetypes.md`): Grades e disposições espaciais.
+- **Princípios de Movimento** (`03-motion-principles.md`): Curvas de animação física, tempos e integração GSAP.
+- **Anatomia de Componentes** (`04-component-anatomy.md`): Estrutura canônica de elementos UI.
+- **Quality Bar** (`06-quality-bar.md`): Auditoria mecânica em 7 eixos (`P5 H5 E5 S5 R5 V5 D5`).
+- **Regras RTL e Árabe** (`14-arabic-rtl-matrix.md`): Tipografia e adaptação bidirecional nativa.
+
+O modelo não precisa redescobrir como projetar uma tipografia a cada execução; ele opera sobre padrões já validados e testados.
+
+---
+
+## 🚫 Governança Anti-Slop: Qualidade Mecânica Auditável
+
+Ao contrário de geradores genéricos de IA que produzem interfaces genéricas e artificiais, o TidyFactor Design estabelece **restrições formais de auditoria**:
+
+- ❌ **Bloqueio de Clichês de IA**: Eliminação de *Purple Gradient Heros*, *Inter Everywhere*, grids de 3 colunas repetitivos, cartões aninhados sem contraste (*Card-in-card*) e orbes flutuantes (*Aurora blobs*).
+- 🎨 **Sistemas de Design Coesos**: Paletas com contraste WCAG AAA e superfícies táteis com profundidade real.
+- ⚡ **Primazia YAML (Regra 15)**: Definição de tokens de marca em `brand.yaml`, economizando entre 35% e 50% de tokens de contexto para os LLMs.
+
+---
+
+## 🔄 As 7 Fases do Ciclo de Vida e os 24 Comandos
+
+1. **Discovery**: `/study`, `/brief`
+2. **Foundation**: `/init`, `/brand`, `/typography`, `/school`, `/tokens`, `/palette`, `/assets`
+3. **Architecture**: `/layout`, `/nav-footer`, `/page`, `/dashboard`
+4. **Components**: `/components`, `/states`
+5. **Motion**: `/motion`, `/flow`, `/i18n`
+6. **Quality**: `/perf`, `/audit`, `/clone`, `/retrofit`
+7. **Delivery**: `/handoff`, `/deploy`
---
-## 📖 Especificação Técnica Canônica
+## 📚 Documentação e Guias
-Para a arquitetura detalhada, esquemas JSON completos e código fonte nativo, consulte a [Documentação Técnica Canônica em Inglês (README.md)](README.md).
+- 📖 [Guia Completo de Engenharia e Uso (docs/GUIDE.md)](docs/GUIDE.md)
+- 📖 [Guia de Engenharia em Árabe (docs/GUIDE.ar.md)](docs/GUIDE.ar.md)
+- 📋 [Especificação Técnica Completa (README.md)](README.md)
diff --git a/README.zh.md b/README.zh.md
index cc417bf..4debf2d 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -1,8 +1,8 @@
-# tidyfactor-design `v1.5.0`
+# tidyfactor-design `v1.9.0`
-**面向 AI 智能体的代码原生 UI 设计生命周期与高保真交互原型引擎**
+**代码原生 UI 设计生命周期引擎与 AI 智能体 Anti-Slop 设计系统套件**
[](https://www.npmjs.com/package/@tidyfactor/design)
[](LICENSE)
@@ -13,32 +13,90 @@
---
-## ⚡ 快速上手 (Quickstart)
+## 💡 核心设计哲学:将“设计智能”与“设计实现”彻底解耦
-```bash
-# 通过 NPX 快速运行
-npx @tidyfactor/cli-design
-```
+**TidyFactor Design** 的核心突破在于将**设计知识与智能(Design Intelligence)**与**具体的代码实现(Implementation)**进行严格解耦:
-或在 AI 编码助手 (*Google Antigravity, Claude Code, Cursor, Codex*) 中调用:
-```text
-/tidyfactor-design
```
+ DESIGN INTELLIGENCE
+ │
+ ┌──────────┴──────────┐
+ ↓ ↓
+ Operational Memory Workflows
+ │ │
+ └──────────┬──────────┘
+ ↓
+ AI Agent
+ ↓
+ Design System
+ ↓
+ HTML/CSS/JS
+ ↓
+ Audit
+ ↓
+ Handoff
+```
+
+这一架构将技能转变为一个可在多个项目间无缝复用、确定性执行的**设计工程操作系统(Design Engineering Operating System)**。AI Agent 不再仅仅根据提示词盲目生成代码,而是按照工程化设计生命周期有序推进。
---
-## 📋 核心命令矩阵
+## ⚖️ TidyFactor Design 对比 Figma:代码原生的代际替代方案
-| 命令 | 目标与产出 | 执行工作流 |
+TidyFactor Design 并不是传统的矢量画布绘制工具,而是**面向 AI 与开发者的代码原生替代方案(Code-Native Alternative)**:
+
+| 维度 | Figma | TidyFactor Design |
|---|---|---|
-| `/brief` | Briefing de diseño y descubrimiento de marca | `workflows/brief.md` |
-| `/tokens` | Generación de design tokens y escalas | `workflows/tokens.md` |
-| `/components` | Prototipado interactivo de componentes UI | `workflows/components.md` |
-| `/page` | Montaje de páginas completas interactivas | `workflows/page.md` |
-| `/rtl` | Validación y soporte nativo RTL/Árabe | `workflows/rtl.md` |
+| **核心范式** | 视觉绘图工具 | 代码原生设计工程工作流 |
+| **工作环境** | 以画布为中心 (Canvas-centric) | 以代码为中心 (Code-centric) |
+| **目标受众** | 视觉设计师 | AI Agent + 开发者 + 设计工程师 |
+| **基础单元** | 视觉组件与变量 | Design Tokens + 原生组件 + 工作流 |
+| **原型验证** | 屏幕视觉连线原型 | 真实 HTML/CSS/JS 原型(零构建开销) |
+| **交付机制** | 设计师向开发者手动 Handoff | 设计与实现在统一代码环境中闭环 |
+| **质量治理** | 人工视觉抽检 | 机械化、自动化质量审查门禁 |
+| **业务范畴** | UI 界面绘制 | 全生命周期设计工程管理 |
+
+---
+
+## 🧠 什么是操作性记忆 (Operational Memory)?
+
+操作性记忆 (`references/memory/`) 绝非冗长的泛论文章,而是**纯粹的规则、矩阵、数据架构与约束条件**:
+
+- **排版矩阵** (`01-typography-matrix.md`): 确定性字号与层级规则。
+- **布局原型** (`02-layout-archetypes.md`): 栅格与空间架构定义。
+- **动效原则** (`03-motion-principles.md`): 物理动画曲线、时间尺度与 GSAP 原生模式。
+- **组件解剖** (`04-component-anatomy.md`): 界面组件标准构造规范。
+- **质量门禁** (`06-quality-bar.md`): 七维自评质检戳记 (`P5 H5 E5 S5 R5 V5 D5`)。
+- **阿语与 RTL 规范** (`14-arabic-rtl-matrix.md`): 双向流与高质量阿文字体规范。
+
+AI 智能体无需在每次生成时从头猜测设计原则,直接调用已验证的工程矩阵。
+
+---
+
+## 🚫 Anti-Slop 治理:可验证的机械质量门禁
+
+普通 AI 生成的 UI 往往充斥着千篇一律的模式与工业废料(Slop)。TidyFactor Design 设立了强力的**机械质检验收标准**:
+
+- ❌ **严禁 AI 刻板套路**:杜绝紫色渐变 Hero(Purple Gradient)、滥用 Inter 字体、千篇一律的三栏卡片网格、无序卡片嵌套(Card-in-card)以及漂浮光斑(Aurora blobs)。
+- 🎨 **定制化设计系统**:严格遵守 WCAG AAA 对比度标准,构建具有真实触感与层次的界面。
+- ⚡ **YAML 优先原则 (Rule 15)**:品牌与设计 Token 优先采用 `brand.yaml`,降低 35–50% 的上下文 Token 占用。
+
+---
+
+## 🔄 七大生命周期阶段与 24 个指令
+
+1. **Discovery (探索阶段)**: `/study`, `/brief`
+2. **Foundation (基础阶段)**: `/init`, `/brand`, `/typography`, `/school`, `/tokens`, `/palette`, `/assets`
+3. **Architecture (架构阶段)**: `/layout`, `/nav-footer`, `/page`, `/dashboard`
+4. **Components (组件阶段)**: `/components`, `/states`
+5. **Motion (动效阶段)**: `/motion`, `/flow`, `/i18n`
+6. **Quality (质检阶段)**: `/perf`, `/audit`, `/clone`, `/retrofit`
+7. **Delivery (交付阶段)**: `/handoff`, `/deploy`
---
-## 📖 完整技术规范与文档
+## 📚 详细文档与工程指南
-如需查看深层架构设计、完整 JSON Schema 契约和原生代码,请参阅[英文权威技术文档 (README.md)](README.md)。
+- 📖 [完整设计工程与用户指南 (docs/GUIDE.md)](docs/GUIDE.md)
+- 📖 [阿拉伯语工程指南 (docs/GUIDE.ar.md)](docs/GUIDE.ar.md)
+- 📋 [完整技术规范 (README.md)](README.md)
diff --git a/SKILL.md b/SKILL.md
index b71adf2..7eff4af 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -2,38 +2,37 @@
name: tidyfactor-design
description: "Code-native UI design lifecycle engine (Figma alternative) with Contextual Decision Layer (CDL). Supports all 7 design stages with zero per-page CSS/JS and pluggable CSS foundations (Native, Tailwind, daisyUI, Pico, Hybrid). Trigger on commands 'brief', 'study', 'init', 'brand', 'tokens', 'palette', 'layout', 'components', 'page', 'dashboard', 'motion', 'i18n', 'audit', 'deploy', or design system requests."
---
+
# TidyFactor Design (Code-Native UI Design Lifecycle Engine)
A command dispatcher supporting the full UI design lifecycle—from discovery through developer handoff—with zero build steps and complete design system consistency.
-## Lifecycle Commands (7 Stages)
-
-| Lifecycle Stage | User intent | Command | What it loads |
-|---|---|---|---|
-| **1. Discovery** | Strategic Design Discovery & Brief Resolution | `references/commands/brief.md` | `references/workflows/brief.md` + `references/memory/decision-points.md` + `references/memory/quality-bar.md` |
-| **1. Discovery** | Extract design DNA from reference URL/image | `references/commands/study.md` | `references/commands/study.md` + `references/memory/01-design-schools.md` |
-| **2. Foundation** | Start brand-new design system / prototype | `references/commands/init.md` | `references/workflows/init-prototype.md` + `references/memory/architecture.md` + `references/memory/foundations.md` |
-| **2. Foundation** | Scaffold or manage brand.json v2 schema | `references/commands/brand.md` | `references/commands/brand.md` + `references/memory/11-brand-json-v2.md` |
-| **2. Foundation** | Select mood-routed typography pairing | `references/commands/typography.md` | `references/commands/typography.md` + `references/memory/12-typography-matrix.md` |
-| **2. Foundation** | Choose design movement / visual direction | `references/commands/school.md` | `references/commands/school.md` + `references/memory/01-design-schools.md` |
-| **2. Foundation** | Manage design tokens and brand colors | `references/commands/tokens.md` | `references/commands/tokens.md` + `references/memory/02-design-tokens.md` |
-| **2. Foundation** | Scaffold color palette from reference image | `references/commands/palette.md` | `references/commands/palette.md` + `references/memory/02-design-tokens.md` |
-| **2. Foundation** | Asset hygiene and image optimization | `references/commands/assets.md` | `references/commands/assets.md` + `references/memory/10-python-tooling.md` |
-| **3. Architecture** | Select macrostructure layout archetype | `references/commands/layout.md` | `references/commands/layout.md` + `references/memory/13-layout-archetypes.md` |
-| **3. Architecture** | Choose navigation (N1-N9) and footer (Ft1-Ft8) | `references/commands/nav-footer.md` | `references/commands/nav-footer.md` + `references/memory/14-nav-footer-catalog.md` |
-| **3. Architecture** | Add a new content or marketing page | `references/commands/page.md` | `references/workflows/init-prototype.md` + `references/memory/05-component-anatomy.md` |
-| **3. Architecture** | Add a new dashboard or app screen | `references/commands/dashboard.md` | `references/workflows/init-prototype.md` + `references/memory/05-component-anatomy.md` |
-| **4. Components** | Manage shared UI components (8-state wrappers) | `references/commands/components.md` | `references/commands/components.md` + `references/memory/05-component-anatomy.md` |
-| **4. Components** | Define interactive component states | `references/commands/states.md` | `references/commands/states.md` + `references/memory/05-component-anatomy.md` |
-| **5. Motion** | Add shared animations, recipes & ambient layers | `references/commands/motion.md` | `references/commands/motion.md` + `references/memory/04-motion-principles.md` |
-| **5. Motion** | Wire interactive prototype navigation | `references/commands/flow.md` | `references/commands/flow.md` + `references/memory/09-prototype-flow.md` |
-| **5. Motion** | Add Arabic/RTL or bilingual localization | `references/commands/i18n.md` | `references/commands/i18n.md` + `references/memory/08-arabic-bilingual.md` |
-| **6. Quality** | Verify asset performance budgets & size limits | `references/commands/perf.md` | `references/commands/perf.md` + `references/memory/15-performance-budget.md` |
-| **6. Quality** | Audit structural consistency & quality bar | `references/commands/audit.md` | `references/workflows/audit-prototype.md` + `references/memory/quality-bar.md` |
-| **6. Quality** | Extract design system from external site | `references/commands/clone.md` | `references/workflows/clone-prototype.md` + `references/memory/03-narrative-conversion.md` |
-| **6. Quality** | Unify drifted prototype under design system | `references/commands/retrofit.md` | `references/workflows/retrofit-prototype.md` + `references/memory/07-consistency-contract.md` |
-| **7. Delivery** | Export developer handoff specs & token map | `references/commands/handoff.md` | `references/commands/handoff.md` + `references/memory/11-brand-json-v2.md` |
-| **7. Delivery** | Local preview and deployment | `references/commands/deploy.md` | `references/commands/deploy.md` + `references/memory/06-quality-bar.md` |
+## Commands
+
+| User intent | Command | What it loads |
+|---|---|---|
+| Strategic Discovery & Brief Resolution | `references/commands/brief.md` | `workflows/brief.md` + `memory/decision-points.md` + `memory/06-quality-bar.md` |
+| Extract design DNA from reference | `references/commands/study.md` | `commands/study.md` + `memory/01-design-schools.md` + `memory/06-quality-bar.md` |
+| Start brand-new design system / prototype | `references/commands/init.md` | `workflows/init-prototype.md` + `memory/architecture.md` + `memory/foundations.md` |
+| Scaffold or manage brand tokens (YAML / JSON) | `references/commands/brand.md` | `commands/brand.md` + `memory/11-brand-json-v2.md` |
+| Mood-routed typography pairing | `references/commands/typography.md` | `commands/typography.md` + `memory/12-typography-matrix.md` |
+| Select design school & movement | `references/commands/school.md` | `commands/school.md` + `memory/01-design-schools.md` |
+| Design tokens, palette & color extraction | `references/commands/tokens.md` | `commands/tokens.md` + `memory/02-design-tokens.md` |
+| Asset hygiene, media & image optimization | `references/commands/assets.md` | `commands/assets.md` + `memory/10-python-tooling.md` |
+| Macrostructure layout archetype selection | `references/commands/layout.md` | `commands/layout.md` + `memory/13-layout-archetypes.md` |
+| Navigation (N1-N9) & Footer (Ft1-Ft8) systems | `references/commands/nav-footer.md` | `commands/nav-footer.md` + `memory/14-nav-footer-catalog.md` |
+| Add content/marketing page or app screen | `references/commands/page.md` | `workflows/init-prototype.md` + `memory/05-component-anatomy.md` |
+| Manage shared UI components & 8-state catalog | `references/commands/components.md` | `commands/components.md` + `memory/05-component-anatomy.md` |
+| Core Component Matrices (Eyebrow, Hero, Cards, CTA, Seams, Metrics) | `references/commands/components.md` | `memory/21-eyebrow-kicker-matrix.md` through `28-shared-motion-primitives.md` |
+| Shared animations, scroll & motion recipes | `references/commands/motion.md` | `commands/motion.md` + `memory/04-motion-principles.md` + `memory/28-shared-motion-primitives.md` |
+| Interactive prototype navigation flow | `references/commands/flow.md` | `commands/flow.md` + `memory/09-prototype-flow.md` |
+| Arabic/RTL localization & bidirectional UI | `references/commands/i18n.md` | `commands/i18n.md` + `memory/08-arabic-bilingual.md` |
+| Asset performance budget & size verification | `references/commands/perf.md` | `commands/perf.md` + `memory/15-performance-budget.md` |
+| Structural consistency audit & quality bar | `references/commands/audit.md` | `workflows/audit-prototype.md` + `memory/06-quality-bar.md` |
+| Extract design system from external URL/clone | `references/commands/clone.md` | `workflows/clone-prototype.md` + `memory/03-narrative-conversion.md` |
+| Unify drifted prototype under design system | `references/commands/retrofit.md` | `workflows/retrofit-prototype.md` + `memory/07-consistency-contract.md` |
+| Developer handoff specs & CSS variable map | `references/commands/handoff.md` | `commands/handoff.md` + `memory/11-brand-json-v2.md` |
+| Local preview and static deployment | `references/commands/deploy.md` | `commands/deploy.md` + `memory/06-quality-bar.md` |
Read only the command file that matches the request. Do not load all commands simultaneously.
@@ -47,8 +46,11 @@ Read only the command file that matches the request. Do not load all commands si
## Tooling Scope (Rule 10)
-- **Languages**: Python 3 (stdlib, Pillow/rembg for asset optimization)
-- **Mutations**: Read-only audits (`audit_design`), file creation (`extract_palette`), image processing (`optimize_assets`)
-- **Network**: None required
-- **Companion MCP**: Invocable via `tidyfactor-brain`'s `run_skill_tool(skill_id="tidyfactor-design", ...)`
+- **Languages**: Python 3 (stdlib, Pillow, rembg)
+- **Mutations**: Read-only audits (`audit_design`), palette token generation (`extract_palette`), image optimization (`optimize_media`)
+- **Network**: None required (100% offline deterministic execution)
+
+## Skill vs MCP Boundary (Rule 12)
+- **Inside Skill**: Static design tokens, typography pairings, layout archetypes, component matrices (21–28), and zero-build CSS templates.
+- **MCP Layer**: Companion MCP tools invocable via `tidyfactor-brain`'s `run_skill_tool(skill_id="tidyfactor-design", ...)`; live remote asset scraping and database operations delegate to external MCP servers.
diff --git a/brand.json b/brand.json
index 30ff51b..a59f4ae 100644
--- a/brand.json
+++ b/brand.json
@@ -1,6 +1,6 @@
{
"name": "TidyFactor Design",
- "version": "1.8.0",
+ "version": "1.9.0",
"schemaVersion": "brand-core-v2",
"meta": {
"product": "TidyFactor Design System",
diff --git a/brand.yaml b/brand.yaml
new file mode 100644
index 0000000..987a89e
--- /dev/null
+++ b/brand.yaml
@@ -0,0 +1,238 @@
+name: TidyFactor Design
+version: 1.9.0
+schemaVersion: brand-core-v2
+meta:
+ product: TidyFactor Design System
+ tagline: Code-Native Interactive Prototyping Engine
+ description: A zero-bundler, framework-free design system and UI prototyping engine
+ with pluggable CSS foundations and full Arabic/RTL support.
+ version: 1.8.0
+ lastUpdated: '2026-09-02'
+identity:
+ logo:
+ full: assets/logo.svg
+ fullDark: assets/logo-dark.svg
+ mark: assets/logo-mark.svg
+ favicon: assets/favicon.svg
+ minClearSpace: 1x logo-mark height on all sides
+ minSizePx: 24
+ socialPreview:
+ ogImage: assets/og-default.png
+ ogDimensions: 1200x630
+voice:
+ tone: confident, direct, teacher-not-salesperson
+ personality:
+ - direct
+ - practical
+ - warm
+ - no-fluff
+ registers:
+ professional: Direct, precise, clear, task-focused for transactions and settings
+ casual: Warm, encouraging, inviting for onboarding and feature discovery
+ error: Empathetic, clear fix provided, zero blame
+ success: Celebratory, concise, clear next step
+ readingLevel: plain language, avoid jargon unless audience is technical
+ doNotUse:
+ - synergy
+ - leverage (as a verb)
+ - revolutionary
+ - game-changing
+ - simply/just/easily
+ preferredPerson: second person (you)
+colors:
+ light:
+ background: '#FFFFFF'
+ surface: '#F8FAFC'
+ surface2: '#F1F5F9'
+ border: '#E2E8F0'
+ text: '#0F172A'
+ textMuted: '#64748B'
+ primary: '#4F46E5'
+ primaryForeground: '#FFFFFF'
+ secondary: '#06B6D4'
+ secondaryForeground: '#FFFFFF'
+ accent: '#F59E0B'
+ success: '#12B76A'
+ warning: '#F79009'
+ danger: '#EF4444'
+ info: '#4F46E5'
+ codeBackground: '#F8FAFC'
+ dark:
+ background: '#0F172A'
+ surface: '#1E293B'
+ surface2: '#334155'
+ border: '#475569'
+ text: '#F8FAFC'
+ textMuted: '#94A3B8'
+ primary: '#818CF8'
+ primaryForeground: '#0F172A'
+ secondary: '#22D3EE'
+ secondaryForeground: '#0F172A'
+ accent: '#FBBF24'
+ success: '#34D399'
+ warning: '#FBBF24'
+ danger: '#F87171'
+ info: '#818CF8'
+ codeBackground: '#1E293B'
+ chartPalette:
+ - '#4F46E5'
+ - '#06B6D4'
+ - '#F59E0B'
+ - '#12B76A'
+ - '#EF4444'
+ - '#8B5CF6'
+ contrastPolicy: WCAG AA minimum (4.5:1 body text, 3:1 large text/UI) in both light
+ and dark themes
+typography:
+ families:
+ heading:
+ primary: El Messiri
+ fallback: Georgia, serif
+ body:
+ primary: Tajawal
+ fallback: Inter, system-ui, sans-serif
+ display:
+ primary: Outfit
+ fallback: system-ui, sans-serif
+ mono:
+ primary: JetBrains Mono
+ fallback: Menlo, monospace
+ arabicHeading: El Messiri
+ arabicBody: Tajawal
+ weights:
+ light: 300
+ regular: 400
+ medium: 500
+ semibold: 600
+ bold: 700
+ scale:
+ xs: 12px
+ sm: 14px
+ base: 16px
+ lg: 18px
+ xl: 20px
+ 2xl: 24px
+ 3xl: 30px
+ 4xl: 36px
+ 5xl: 48px
+ 6xl: 60px
+ lineHeight:
+ tight: 1.2
+ normal: 1.5
+ relaxed: 1.75
+ letterSpacing:
+ tight: -0.02em
+ normal: '0'
+ wide: 0.02em
+ googleFontsUrl: https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;600;700&family=Outfit:wght@400;500;600;700&family=Tajawal:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap
+spacing:
+ baseUnit: 4px
+ scale:
+ '0': 0px
+ '1': 4px
+ '2': 8px
+ '3': 12px
+ '4': 16px
+ '6': 24px
+ '8': 32px
+ '12': 48px
+ '16': 64px
+ '24': 96px
+radius:
+ none: 0px
+ sm: 6px
+ md: 12px
+ lg: 16px
+ xl: 24px
+ full: 9999px
+ default: 12px
+shadows:
+ sm: 0 1px 2px rgba(0,0,0,0.06)
+ md: 0 4px 12px rgba(0,0,0,0.10)
+ lg: 0 12px 32px rgba(0,0,0,0.16)
+ focusRing: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent)
+motion:
+ duration:
+ fast: 120ms
+ base: 200ms
+ slow: 400ms
+ easing:
+ standard: cubic-bezier(0.4,0,0.2,1)
+ emphasized: cubic-bezier(0.2,0,0,1)
+ spring: cubic-bezier(0.34,1.56,0.64,1)
+ reducedMotion: 'honor prefers-reduced-motion: disable scroll-driven and parallax
+ effects, keep only opacity/color transitions'
+ scope: cinematic/scroll-driven motion is reserved for marketing surfaces only —
+ never in docs, dashboard, or transactional UI
+breakpoints:
+ sm: 640px
+ md: 768px
+ lg: 1024px
+ xl: 1280px
+ 2xl: 1536px
+iconography:
+ set: lucide
+ strokeWidth: 1.75
+ sizes:
+ sm: 16px
+ md: 20px
+ lg: 24px
+ rule: never mix icon sets on the same surface
+components:
+ button:
+ radius: radius.md
+ paddingX: spacing.4
+ paddingY: spacing.2
+ primaryBg: colors.primary
+ primaryFg: colors.primaryForeground
+ hoverOpacity: 0.9
+ disabledOpacity: 0.5
+ input:
+ radius: radius.sm
+ border: colors.border
+ focusRing: shadows.focusRing
+ background: colors.surface
+ card:
+ radius: radius.lg
+ border: colors.border
+ background: colors.surface
+ shadow: shadows.sm
+ codeBlock:
+ background: colors.codeBackground
+ radius: radius.md
+ fontFamily: typography.families.mono
+localization:
+ defaultLocale: en
+ supportedLocales:
+ - en
+ - ar
+ rtl: true
+ rtlLocales:
+ - ar
+ mirrorOnRtl:
+ - sidebar
+ - breadcrumb
+ - tableOfContents
+ - iconsWithDirection
+ dateFormat:
+ en: MMM D, YYYY
+ ar: D MMMM YYYY
+accessibility:
+ minTouchTarget: 44px
+ focusVisible: always visible, never suppressed with outline:none without a replacement
+ altTextPolicy: required on every meaningful image; decorative images use alt=''
+foundation: native
+school: minimalist
+usage:
+ sharedBy:
+ - tidyfactor-design
+ - tidyfactor-cinematic
+ - future kits (Dashboard, Admin, LMS, Commerce)
+ rules:
+ - Every surface reads tokens from this file — never hardcode a hex value or font
+ name inline.
+ - Brand colors (primary, logo) do not change between light/dark modes — only surface,
+ background, border, and text tokens do.
+ - If this file changes, regenerate dependent surfaces rather than manually patching
+ colors.
+ - Extend by adding new tokens, not by overriding existing ones per-surface.
diff --git a/dist/tidyfactor-design.skill b/dist/tidyfactor-design.skill
deleted file mode 100644
index 9c49cd7..0000000
Binary files a/dist/tidyfactor-design.skill and /dev/null differ
diff --git a/dist/tidyfactor-design/.tidyfactor b/dist/tidyfactor-design/.tidyfactor
deleted file mode 100644
index 085507c..0000000
--- a/dist/tidyfactor-design/.tidyfactor
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "ecosystem": "tidyfactor",
- "track": "design",
- "name": "tidyfactor-design",
- "version": "1.8.0",
- "npmPackage": "@alwkala/tidyfactor-design",
- "github": "https://github.com/TidyFactor/Design",
- "skillFile": "../tidyfactor-design-v1.8.0.skill",
- "category": "design-system",
- "type": "interactive-prototyping",
- "outputs": [
- "design-system/",
- "pages/"
- ],
- "foundations": [
- "native",
- "tailwind",
- "daisyui",
- "hybrid"
- ],
- "commands": [
- "brief",
- "init",
- "school",
- "tokens",
- "palette",
- "assets",
- "components",
- "page",
- "dashboard",
- "motion",
- "states",
- "flow",
- "i18n",
- "audit",
- "clone",
- "retrofit",
- "deploy"
- ],
- "visionRef": "../TidyFactor-VISION.md",
- "sibling": [
- "tidyfactor-html",
- "tidyfactor-php",
- "tidyfactor-js",
- "tidyfactor-htmx",
- "tidyfactor-cinematic"
- ],
- "commercialPartner": "alwkala",
- "website": "https://tidyfactor.com",
- "docs": "https://tidyfactor.com/documentation",
- "license": "Apache-2.0"
-}
diff --git a/dist/tidyfactor-design/AGENTS.md b/dist/tidyfactor-design/AGENTS.md
deleted file mode 100644
index 1c22e5c..0000000
--- a/dist/tidyfactor-design/AGENTS.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# AGENTS.md — TidyFactor Design System & Full UI Design Lifecycle Engine
-
-Build **interactive, code-native HTML/CSS/JS design prototypes** (Figma alternative) with strict structural visual consistency across all pages. Zero per-page CSS/JS, zero inline `