@tidyfactor/design 1.5.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.
Files changed (136) hide show
  1. package/.tidyfactor +52 -0
  2. package/AGENTS.md +75 -0
  3. package/CHANGELOG.md +210 -0
  4. package/LICENSE +17 -0
  5. package/README.ar.md +398 -0
  6. package/README.de.md +44 -0
  7. package/README.es.md +44 -0
  8. package/README.fa.md +44 -0
  9. package/README.fr.md +44 -0
  10. package/README.md +418 -0
  11. package/README.pt.md +44 -0
  12. package/README.zh.md +44 -0
  13. package/SKILL-REGISTRY.md +69 -0
  14. package/SKILL.md +46 -0
  15. package/VISION.md +43 -0
  16. package/assets/blog.png +0 -0
  17. package/assets/content_layout.png +0 -0
  18. package/assets/content_output.png +0 -0
  19. package/assets/dark.png +0 -0
  20. package/assets/dashboard_layout.png +0 -0
  21. package/assets/dashboard_output.png +0 -0
  22. package/assets/ecommerce_layout.png +0 -0
  23. package/assets/ecommerce_output.png +0 -0
  24. package/assets/github-social-preview-2.png +0 -0
  25. package/assets/github-social-preview.png +0 -0
  26. package/assets/hero-banner.png +0 -0
  27. package/assets/light.png +0 -0
  28. package/assets/media_layout.png +0 -0
  29. package/assets/media_output.png +0 -0
  30. package/assets/og-default.png +0 -0
  31. package/assets/video.png +0 -0
  32. package/bin/add-skill.js +31 -0
  33. package/bin/create-kit.js +372 -0
  34. package/bin/remove-skill.js +137 -0
  35. package/brand.json +279 -0
  36. package/memory/01-design-schools.md +85 -0
  37. package/memory/02-design-tokens.md +41 -0
  38. package/memory/03-narrative-conversion.md +47 -0
  39. package/memory/04-motion-principles.md +44 -0
  40. package/memory/05-component-anatomy.md +34 -0
  41. package/memory/06-quality-bar.md +83 -0
  42. package/memory/07-consistency-contract.md +33 -0
  43. package/memory/08-arabic-bilingual.md +54 -0
  44. package/memory/09-prototype-flow.md +36 -0
  45. package/memory/10-python-tooling.md +64 -0
  46. package/memory/11-brand-json-v2.md +86 -0
  47. package/memory/12-typography-matrix.md +31 -0
  48. package/memory/13-layout-archetypes.md +30 -0
  49. package/memory/14-nav-footer-catalog.md +26 -0
  50. package/memory/15-performance-budget.md +18 -0
  51. package/memory/16-design-movements-guide.md +1084 -0
  52. package/memory/17-storytelling-industries-ux.md +143 -0
  53. package/memory/18-design-decision-engine.md +81 -0
  54. package/package.json +64 -0
  55. package/references/commands/_template.md +27 -0
  56. package/references/commands/assets.md +35 -0
  57. package/references/commands/audit.md +15 -0
  58. package/references/commands/brand.md +85 -0
  59. package/references/commands/brief.md +107 -0
  60. package/references/commands/clone.md +26 -0
  61. package/references/commands/components.md +46 -0
  62. package/references/commands/dashboard.md +45 -0
  63. package/references/commands/deploy.md +45 -0
  64. package/references/commands/flow.md +44 -0
  65. package/references/commands/handoff.md +53 -0
  66. package/references/commands/i18n.md +64 -0
  67. package/references/commands/init.md +30 -0
  68. package/references/commands/layout.md +81 -0
  69. package/references/commands/motion.md +62 -0
  70. package/references/commands/nav-footer.md +54 -0
  71. package/references/commands/page.md +45 -0
  72. package/references/commands/palette.md +35 -0
  73. package/references/commands/perf.md +57 -0
  74. package/references/commands/retrofit.md +15 -0
  75. package/references/commands/school.md +41 -0
  76. package/references/commands/states.md +48 -0
  77. package/references/commands/study.md +98 -0
  78. package/references/commands/tokens.md +45 -0
  79. package/references/commands/typography.md +87 -0
  80. package/references/foundations/daisyui.md +44 -0
  81. package/references/foundations/hybrid.md +32 -0
  82. package/references/foundations/native.md +31 -0
  83. package/references/foundations/tailwind-utility.md +43 -0
  84. package/references/memory/01-design-schools.md +85 -0
  85. package/references/memory/02-design-tokens.md +41 -0
  86. package/references/memory/03-narrative-conversion.md +47 -0
  87. package/references/memory/04-motion-principles.md +44 -0
  88. package/references/memory/05-component-anatomy.md +34 -0
  89. package/references/memory/06-quality-bar.md +83 -0
  90. package/references/memory/07-consistency-contract.md +33 -0
  91. package/references/memory/08-arabic-bilingual.md +54 -0
  92. package/references/memory/09-prototype-flow.md +36 -0
  93. package/references/memory/10-python-tooling.md +64 -0
  94. package/references/memory/11-brand-json-v2.md +86 -0
  95. package/references/memory/12-typography-matrix.md +31 -0
  96. package/references/memory/13-layout-archetypes.md +30 -0
  97. package/references/memory/14-nav-footer-catalog.md +26 -0
  98. package/references/memory/15-performance-budget.md +18 -0
  99. package/references/memory/16-design-movements-guide.md +1084 -0
  100. package/references/memory/17-storytelling-industries-ux.md +143 -0
  101. package/references/memory/18-design-decision-engine.md +81 -0
  102. package/references/memory/architecture.md +39 -0
  103. package/references/memory/decision-points.md +50 -0
  104. package/references/memory/foundations.md +15 -0
  105. package/references/memory/quality-bar.md +20 -0
  106. package/references/tidyfactor-vision.md +66 -0
  107. package/references/workflow.md +49 -0
  108. package/references/workflows/audit-prototype.md +26 -0
  109. package/references/workflows/brief.md +30 -0
  110. package/references/workflows/clone-prototype.md +27 -0
  111. package/references/workflows/init-prototype.md +28 -0
  112. package/references/workflows/retrofit-prototype.md +25 -0
  113. package/scripts/__pycache__/_utils.cpython-312.pyc +0 -0
  114. package/scripts/_utils.py +60 -0
  115. package/scripts/build.py +194 -0
  116. package/scripts/check_alpha.py +52 -0
  117. package/scripts/extract_palette.py +139 -0
  118. package/scripts/generate_transitions.py +105 -0
  119. package/scripts/inspect_images.py +48 -0
  120. package/scripts/minify_assets.py +140 -0
  121. package/scripts/optimize_assets.py +91 -0
  122. package/scripts/optimize_images.py +176 -0
  123. package/scripts/prepare_images.py +67 -0
  124. package/scripts/remove_backgrounds.py +61 -0
  125. package/scripts/test_build.py +228 -0
  126. package/templates/design-system/base.css +75 -0
  127. package/templates/design-system/components.css +229 -0
  128. package/templates/design-system/interactions.js +31 -0
  129. package/templates/design-system/motion.js +42 -0
  130. package/templates/design-system/tokens.css +81 -0
  131. package/templates/design-system/utilities.css +47 -0
  132. package/templates/index.html +84 -0
  133. package/templates/proto-nav.js +56 -0
  134. package/tools/build-skill.js +126 -0
  135. package/tools/validate-skill.js +144 -0
  136. package/tools/validate_skill.py +121 -0
@@ -0,0 +1,143 @@
1
+ # 17 · Storytelling Archetypes, Industry Registers & UX Philosophies
2
+
3
+ Operational guide for `tidyfactor-design` establishing visual rules, layout structures, typography pairings, color systems, and execution constraints across **4 Storytelling Archetypes**, **8 Industry Registers**, and **8 UX Design Philosophies**.
4
+
5
+ ---
6
+
7
+ ## 🎬 4 Storytelling Archetypes
8
+
9
+ ### 1. Cinematic Storytelling
10
+ * **Core Philosophy**: The user experiences a luxury TV ad in continuous motion. Scroll drives product transformation, stage reveals, and lighting shifts.
11
+ * **Layout Structure**: Full-bleed hero stage with 3D product float & pointer tilt → Canvas frame-sequence scroll film (600vh stage) → Spec reveal → Lifestyle moments → Pinned video CTA with smoothstep wash overlay.
12
+ * **Typography**: Clean display serif (`El Messiri`, `Cormorant Garamond`) for headlines paired with high-contrast body sans (`Tajawal`, `Inter`). Small off-center captions over video/film.
13
+ * **Visual Tokens**: Deep dark ground (`#0F172A`), gold radial background aura, drifting particle motes, fixed z-stack layers (`#ambient`, `#glow`, `#vignette`, `#grain`, `#progress`).
14
+ * **Best For**: Physical luxury goods, flagship product launches, brand positioning, automotive, high-ticket offers.
15
+
16
+ ---
17
+
18
+ ### 2. Editorial Storytelling
19
+ * **Core Philosophy**: Literary journalism and broadsheet publishing. Focuses on narrative depth, authoritativeness, and structured typography hierarchy.
20
+ * **Layout Structure**: Magazine header masthead → Split-screen hero (image + narrative copy) → Multi-column article grid → Hairline rule dividers → Pull quote blocks → Author colophon footer.
21
+ * **Typography**: Expressive editorial serifs (`Markazi Text`, `Fraunces`, `El Messiri`) for display paired with legible sans or serif body (`IBM Plex Sans Arabic`, `Tajawal`).
22
+ * **Visual Tokens**: Warm cream/ivory grounds (`#FBF8F2`), ink black text (`#14171C`), fine hairline dividers (`1px solid #E2E5E9`), generous line-height (`1.75`).
23
+ * **Best For**: Media publications, founder origin stories, investigative reports, thought leadership, luxury brand manifests.
24
+
25
+ ---
26
+
27
+ ### 3. Documentary Storytelling
28
+ * **Core Philosophy**: Raw, unpolished, evidence-first presentation. Uses timestamped logs, concrete data points, real photography, and objective split-screen progression.
29
+ * **Layout Structure**: Metadata header bar (date, coordinates, telemetry) → Timeline sequence blocks → High-contrast photo evidence cards → Concrete metric grids → Fact verification footer.
30
+ * **Typography**: Monospaced technical typography (`JetBrains Mono`, `Oswald`) paired with neutral body sans (`Inter`, `Tajawal`).
31
+ * **Visual Tokens**: Titanium grays (`#0F172A`, `#1E293B`), signal amber accent (`#F59E0B`), telemetry badge dots (`● VERIFIED`), hairline grid borders (`1px solid #334155`).
32
+ * **Best For**: Sustainability reports, engineering case studies, NGO causes, supply-chain transparency, technical post-mortems.
33
+
34
+ ---
35
+
36
+ ### 4. Interactive Storytelling
37
+ * **Core Philosophy**: Choice-driven exploration where user interaction (clicks, toggles, hover paths) directly reveals content and alters page state.
38
+ * **Layout Structure**: Interactive hero preview → Tabbed exploration stage → Live calculator / filter widget → Before-and-after comparison slider → Interactive FAQ accordion → Action trigger CTA.
39
+ * **Typography**: Friendly modern sans-serifs (`Outfit`, `Tajawal`).
40
+ * **Visual Tokens**: Interactive hover lift (`transform: translateY(-2px)`), active press feedback (`scale-[0.98]`), focus ring glow (`color-mix()`), smooth tab transitions.
41
+ * **Best For**: SaaS product walk-throughs, pricing calculators, interactive product configurators, digital learning modules.
42
+
43
+ ---
44
+
45
+ ## 💼 8 Industry Registers
46
+
47
+ ### 1. Corporate
48
+ * **Visual Register**: Trust, stability, security, institutional authority.
49
+ * **Color Palette**: Trust Navy (`#0F172A`), Deep Sapphire (`#1E40AF`), Neutral Gray (`#F8FAFC`), Slate (`#475569`).
50
+ * **Typography**: Professional sans-serifs (`Outfit`, `Inter`, `Tajawal`).
51
+ * **Layout Rules**: 12-column grid, clean executive stat callouts, structured table matrices, WCAG AA compliance.
52
+ * **Avoid**: Neo-brutalist offset shadows, neon colors, playful illustrations.
53
+
54
+ ---
55
+
56
+ ### 2. SaaS (Software-as-a-Service)
57
+ * **Visual Register**: High efficiency, modern tech, data clarity, conversion-driven.
58
+ * **Color Palette**: Dark Slate (`#0F172A`) or Clean Light (`#FFFFFF`), Electric Indigo (`#4F46E5`), Cyan (`#06B6D4`).
59
+ * **Typography**: Modern geometric sans (`Outfit`, `Tajawal`, `Inter`).
60
+ * **Layout Rules**: Bento box feature grids, interactive app preview mockups, pricing tier comparison cards, integration logo grids.
61
+ * **Avoid**: Heavy skeuomorphic textures, illegible display fonts.
62
+
63
+ ---
64
+
65
+ ### 3. FinTech
66
+ * **Visual Register**: Precision, high security, transparency, wealth growth.
67
+ * **Color Palette**: Deep Emerald (`#065F46`), Mint (`#10B981`), Dark Indigo (`#1E1B4B`), Slate (`#F8FAFC`).
68
+ * **Typography**: Tabular numeric typography (`tabular-nums`), clean sans (`Outfit`, `Tajawal`).
69
+ * **Layout Rules**: Tabular data displays, security badge trust bars, live balance widgets, crisp financial chart surfaces.
70
+ * **Avoid**: Low-contrast text, informal casual microcopy, playful pastel colors.
71
+
72
+ ---
73
+
74
+ ### 4. AI & Emerging Tech
75
+ * **Visual Register**: Innovation, intelligence, futuristic capabilities, fluid power.
76
+ * **Color Palette**: Pitch Black (`#090A0F`), Luminescent Cyan (`#06B6D4`), Neon Purple (`#7C3AED`), Mesh Gradients.
77
+ * **Typography**: Ultra-clean sans (`Outfit`, `Inter`) paired with monospaced prompt accents (`JetBrains Mono`).
78
+ * **Layout Rules**: Aurora mesh gradient backgrounds, interactive prompt bars, glowing input borders, clean dark theme.
79
+ * **Avoid**: Traditional corporate clip-art, heavy paper textures.
80
+
81
+ ---
82
+
83
+ ### 5. Healthcare & Wellness
84
+ * **Visual Register**: Calm, empathy, hygiene, human warmth, accessible clarity.
85
+ * **Color Palette**: Soft Teal (`#0D9488`), Sage Green (`#047857`), Warm Ivory (`#FDFBF7`), Soft Blue (`#0284C7`).
86
+ * **Typography**: Highly legible rounded sans-serifs (`Tajawal`, `Outfit`, `Almarai`).
87
+ * **Layout Rules**: Generous padding, large accessible touch targets (≥44px), calm color transitions, clear patient steps.
88
+ * **Avoid**: Harsh neon contrast, aggressive countdown timers, jarring animation bounces.
89
+
90
+ ---
91
+
92
+ ### 6. Education & EdTech
93
+ * **Visual Register**: Playful engagement, encouragement, progressive growth, clarity.
94
+ * **Color Palette**: Vibrant Primary Triad (Soft Violet `#7C3AED`, Amber `#F59E0B`, Emerald `#10B981`, Sky `#0284C7`).
95
+ * **Typography**: Friendly approachble fonts (`Outfit`, `Tajawal`).
96
+ * **Layout Rules**: Gamified progress meters, rounded cards (`rounded-2xl`), badge rewards, interactive step cards.
97
+ * **Avoid**: Overly dense corporate tables, dark dystopian cyber-themes.
98
+
99
+ ---
100
+
101
+ ### 7. Luxury & Haute Couture
102
+ * **Visual Register**: Exclusivity, craftsmanship, prestige, timeless elegance.
103
+ * **Color Palette**: Espresso Black (`#0B0D10`), Warm Cream (`#FBF8F2`), Muted Gold (`#A97B33`), Ink (`#241812`).
104
+ * **Typography**: Display serifs (`El Messiri`, `Cormorant Garamond`) with delicate light-weight Latin accents.
105
+ * **Layout Rules**: Massive negative space, centered product cutouts, minimal navigation, dark/light theme commitment.
106
+ * **Avoid**: Cheap gradient badges, busy multi-column grids, aggressive sales banners.
107
+
108
+ ---
109
+
110
+ ### 8. E-Commerce & Retail
111
+ * **Visual Register**: Immediate desire, friction-free purchase flow, trust proof.
112
+ * **Color Palette**: High-contrast Primary CTA (`#4F46E5` or `#000000`), Neutral Surface (`#FFFFFF`), Soft Tint (`#F8FAFC`).
113
+ * **Typography**: Clear sans-serifs (`Outfit`, `Tajawal`).
114
+ * **Layout Rules**: Hero product image, price tag display, sticky buy bar on scroll, customer star review badges, variant selectors.
115
+ * **Avoid**: Hiding pricing or buy buttons below multiple screens of filler text.
116
+
117
+ ---
118
+
119
+ ## 🧠 8 UX Design Philosophies
120
+
121
+ ### 1. Minimalism & Flat Design
122
+ Strips away all non-essential visual fluff. Focuses on negative space, crisp typography, and clear focal hierarchy.
123
+
124
+ ### 2. Emotional Design
125
+ Incorporate purposeful micro-interactions and microcopy across 4 whimsy tiers (subtle feedback, task celebrations, discovery Easter eggs, contextual microcopy) to make interfaces delightful.
126
+
127
+ ### 3. Human-Centered Experience (HCD)
128
+ Design for human cognitive limits: progressive disclosure of complex features, clear visual hierarchy, max 3 words on primary CTAs, predictable interaction models.
129
+
130
+ ### 4. Accessibility-First (WCAG 2.1 AA)
131
+ Minimum 4.5:1 contrast for body text, 3:1 for large display text/UI controls. Touch targets minimum 44px on touch viewports. Never suppress focus outlines without a `color-mix()` replacement ring.
132
+
133
+ ### 5. Mobile-First & Responsive Physics
134
+ Design layout containers to collapse fluidly from desktop (`2xl` 1536px) to mobile (`sm` 640px). Place primary actions within natural thumb-reach zones.
135
+
136
+ ### 6. Arabic RTL First (Bidi-Native)
137
+ Design natively for Right-to-Left languages (`dir="rtl"`). Use CSS logical properties (`margin-inline-start`, `padding-inline`, `border-inline-end`). Pair **El Messiri** (headings) + **Tajawal** (body); never Amiri above 24px.
138
+
139
+ ### 7. Dark Mode Native
140
+ Treat dark mode as a first-class citizen using `brand.json` v2 dual-mode tokens (`colors.light` & `colors.dark`). Use tinted dark neutrals (`#0F172A`, `#1E293B`) instead of flat pure black `#000000`.
141
+
142
+ ### 8. Mixed Media Maximalism
143
+ Embrace high visual density, kinetic typography, multi-layered collage imagery, and bold color contrast for youth-focused, creative, or entertainment brands.
@@ -0,0 +1,81 @@
1
+ # 18 · Design Decision Engine Rules & Protocols
2
+
3
+ System operational rules for `tidyfactor-design` that transform visual references into deterministic, repeatable, and non-contradictory design decisions.
4
+
5
+ ---
6
+
7
+ ## 🌳 1. The 9-Step Design Decision Tree Protocol
8
+
9
+ Before selecting visual schools, tokens, or components, every AI agent execution MUST evaluate choices sequentially through this 9-step decision tree:
10
+
11
+ ```
12
+ Step 1: Project Scope → Determine surface type (marketing, dashboard, e-commerce, docs, spatial)
13
+ Step 2: Industry Register → Map domain (Corporate, SaaS, FinTech, AI, Healthcare, Education, Luxury, E-Commerce)
14
+ Step 3: Audience Mode → Classify user state (Inspire, Evaluate, Act, Learn)
15
+ Step 4: Brand Personality → Lock 3-5 tone adjectives (e.g. Precise, Confident, Technical, Calm)
16
+ Step 5: Storytelling → Choose archetype (Cinematic, Editorial, Documentary, Interactive)
17
+ Step 6: UX Philosophy → Lock core principles (Accessibility-first, Mobile-first, RTL-first, Dark Native)
18
+ Step 7: Visual School → Select Primary School & max 1 Secondary Influence from confidence/compatibility matrix
19
+ Step 8: Token Generation → Derive tokens.css & brand.json v2 based on Visual DNA & Color Palettes
20
+ Step 9: Component Behavior → Apply exact component shape, form, and motion language specifications
21
+ ```
22
+
23
+ ---
24
+
25
+ ## 🍲 2. Anti-"Design Soup" Constraint Rule (Mandatory)
26
+
27
+ > [!CAUTION]
28
+ > **AI Anti-Pattern Failure**: AI generators frequently create "Design Soup" by mixing 4-5 clashing design movements on a single page (e.g., Glassmorphism frosted panels + Neo-Brutalist 4px hard black offset shadows + Neumorphic extruded buttons + Cyberpunk glitch effects).
29
+
30
+ ### Strict Mixing Limits
31
+ Unless explicitly requested by the user, an AI Agent MUST NEVER exceed:
32
+ - **1 Primary Visual School** (e.g., Swiss)
33
+ - **1 Secondary Influence** (e.g., Minimalism — MUST be listed as `Compatible` in the school's matrix)
34
+ - **1 Motion Language** (e.g., Subtle / 150ms / ease-out)
35
+ - **1 Storytelling Style** (e.g., Editorial)
36
+ - **1 UX Philosophy Accent** (e.g., RTL-first + Dark Native)
37
+
38
+ Any output violating this cap fails audit and triggers an automatic revision pass.
39
+
40
+ ---
41
+
42
+ ## ⚡ 3. Executable Signature Element Rule
43
+
44
+ Every visual school defines a **Concrete Executable Signature Element**. The AI Agent MUST render this signature element at least 1-2 times on every project page to ensure the interface has distinct visual identity:
45
+
46
+ | Visual School | Executable Signature Element | Mechanical Implementation |
47
+ |---|---|---|
48
+ | **Swiss** | Asymmetric Grid Lines & Huge Type | Hairline 1px grid borders (`#E2E8F0`), display type `clamp(3rem,8vw,6rem)`, zero shadow |
49
+ | **Flat** | Saturated 2D Color Blocks | Solid 2D fills, `border-radius: 8px`, 0px shadow, high-contrast flat icon badges |
50
+ | **Material** | Floating Elevation Sheet & FAB | Floating action button, `box-shadow: 0 4px 12px rgba(0,0,0,0.15)`, touch ripple feedback |
51
+ | **Minimalism** | Massive Negative Space & Single Focal Point | Section padding `96px`+, max 1 accent color, zero clutter |
52
+ | **Neo-Brutalism** | Hard Offset Box Shadow & Black Border | `box-shadow: 4px 4px 0px #000000`, `border: 2px solid #000000`, sharp/rounded corners |
53
+ | **Bauhaus** | Primary Color Block Geometry | Red/Blue/Yellow color blocking, circular accent containers mixed with sharp grids |
54
+ | **Skeuomorphism** | Dual Inner/Outer Bevel & Tactile Surface | `box-shadow: inset 0 2px 4px rgba(255,255,255,0.6), 0 4px 12px rgba(0,0,0,0.2)` |
55
+ | **Glassmorphism** | Frosted Glass Pill / Card | `backdrop-filter: blur(12px) saturate(180%)`, `background: rgba(255,255,255,0.12)`, `border: 1px solid rgba(255,255,255,0.2)` |
56
+ | **Maximalism** | Layered Collage & Kinetic Marquee | Overlapping sticker badges, infinite text marquee ticker, dense typography contrast |
57
+ | **Industrial** | Monospaced Blueprint Telemetry | Monospace font, crosshair markers, `● LIVE` status indicator dots, titanium grounds |
58
+ | **Bento Box** | Modular Masonry Tiles | `border-radius: 20px`–`24px` compartmentalized cards, 1px subtle border |
59
+ | **Aurora UI** | Luminescent Mesh Gradient Spotlight | Radial glowing mesh gradient (`blur(60px)`) behind hero cutout or primary card |
60
+ | **Neumorphism** | Dual Soft Extrusion Shadow | Light/Dark dual shadow (`box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff`) |
61
+ | **Corporate Memphis** | Soft Pastel Pill Containers | `border-radius: 9999px` soft pill buttons, warm pastel background panels |
62
+ | **Cyberpunk** | Neon Glow Border & Monospace HUD | `box-shadow: 0 0 12px rgba(0,240,255,0.5)`, monospaced telemetry headers, pitch black ground |
63
+ | **Claymorphism** | Soft Clay 3D Extrusion | `border-radius: 24px`+, deep inner light reflection + warm outer shadow |
64
+ | **Isometric** | 30° Parallel Perspective SVG | SVG 30° parallel projection vector diagram or feature illustration |
65
+ | **Kinetic Type** | Interactive Scaling Display Headline | `font-size: clamp(4rem, 12vw, 9rem)` headline, hover stretch effect |
66
+ | **Organic UI** | Asymmetrical Morphing Blob | Fluid asymmetrical blob border (`border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%`) |
67
+ | **Frutiger Aero** | Glossy Glass Overlay & Aero Pill | Linear glossy highlight (`background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 50%)`) |
68
+
69
+ ---
70
+
71
+ ## 📊 4. School Evaluation Dimensions Schema
72
+
73
+ Every movement entry in `memory/16-design-movements-guide.md` is structured using 7 standardized evaluation dimensions:
74
+
75
+ 1. **Confidence Matrix**: Rated `★` to `★★★★★` across 6 surface targets (`production`, `marketing`, `dashboard`, `landing`, `mobile`, `accessibility`).
76
+ 2. **Compatibility Matrix**: Explicit lists of `Compatible` secondary schools and `Avoid / Not Recommended` clashing schools.
77
+ 3. **Brand Personality**: 4-6 tone keywords governing copy tone, media choices, and hover states.
78
+ 4. **Visual DNA Vector**: Rated `★` to `★★★★★` across 8 design dimensions (`Grid`, `Typography`, `Geometry`, `Illustration`, `Motion`, `Texture`, `Photography`, `Depth`).
79
+ 5. **Component Behaviour**: Concrete styling for `Buttons`, `Cards`, `Forms`, `Navigation`, and `Search`.
80
+ 6. **Motion Language**: Specified `Duration`, `Curve`, `Energy`, `Scroll`, and `Hover` behavior.
81
+ 7. **Executable Signature Element**: Exact CSS/HTML code snippet for the school's signature tell.
@@ -0,0 +1,39 @@
1
+ # Memory: architecture (Design System & Prototype Macrostructure)
2
+
3
+ Defines the zero-build design system file tree, component encapsulation, and 7 lifecycle stages.
4
+
5
+ ---
6
+
7
+ ## 📁 Standard Prototype Directory Layout
8
+
9
+ ```
10
+ project-root/
11
+ ├── brand.json # Single source of truth for design tokens & identity
12
+ ├── design-system/
13
+ │ ├── tokens.css # CSS Custom Properties (Colors, Radii, Shadows, Typography)
14
+ │ ├── base.css # Reset, font imports, and typography scale
15
+ │ ├── components/ # Pure reusable component wrappers (zero page styling)
16
+ │ │ ├── buttons.css
17
+ │ │ ├── cards.css
18
+ │ │ ├── navigation.css
19
+ │ │ ├── forms.css
20
+ │ │ └── modals.css
21
+ │ └── motion.css # Easing curves, transitions, reduced-motion rules
22
+ ├── pages/ # Individual HTML pages (markup only, loads design-system/)
23
+ │ ├── index.html
24
+ │ ├── dashboard.html
25
+ │ └── settings.html
26
+ └── assets/ # Compressed SVGs, WebP icons, and optimized imagery
27
+ ```
28
+
29
+ ---
30
+
31
+ ## 🏛️ 7 Lifecycle Stages
32
+
33
+ 1. **Discovery**: Reference study, mood extraction, and 3-question CDL brief resolution.
34
+ 2. **Foundation**: CSS foundation locking, brand tokens, typography pairing, palette calibration.
35
+ 3. **Architecture**: Layout archetypes (L1–L4), navigation (N1–N9), footer (Ft1–Ft8) catalog.
36
+ 4. **Components**: 8-state wrappers (Default, Hover, Active, Focus, Disabled, Loading, Error, Success).
37
+ 5. **Motion**: Kinetic principles, transition choreography, and reduced-motion fallback.
38
+ 6. **Quality**: 7-axis pre-emit self-critique, anti-slop checks, and token drift audits.
39
+ 7. **Delivery**: Developer handoff specs, Figma token exports, and static deployment.
@@ -0,0 +1,50 @@
1
+ # Memory: decision-points (Contextual Decision Layer — CDL v1.0)
2
+
3
+ A thin arbitration protocol for resolving high-impact design system foundations and aesthetic school ambiguities before code emission.
4
+
5
+ ---
6
+
7
+ ## 🏛️ Decision Matrix (D1–D5)
8
+
9
+ | Code | Decision Dimension | Options (Reference SSOT) | Default Fallback | Trigger / Ambiguity Condition |
10
+ |:---:|---|---|---|---|
11
+ | **D1** | **CSS Foundation Layer** | • `native` (Zero-dep vanilla CSS tokens)<br>• `tailwind` (Utility-first CDN/configured)<br>• `daisyui` (Tailwind semantic component classes)<br>• `pico` (Semantic HTML micro-framework)<br>• `hybrid` (Design tokens + utility classes) | `native` | When prompt asks to build a UI prototype without declaring the CSS engine. |
12
+ | **D2** | **Design System School** | • `swiss-international` (Clean, grid-disciplined, high whitespace)<br>• `neo-brutalist` (High contrast, bold borders, sharp shadows)<br>• `luxury-glassmorphic` (Deep dark obsidian, gold/cyan glows, frosted glass)<br>• `warm-editorial` (Serif elegance, earth tones, literary rhythm) | `swiss-international` | When request lacks specific visual styling directions. |
13
+ | **D3** | **Arabic Typography Pairing** | • `classic-display` (El Messiri + Tajawal)<br>• `modern-geometric` (Alexandria + Readex Pro)<br>• `contemporary-tech` (Cairo + IBM Plex Sans Arabic) | `classic-display` | When targeting bilingual or Arabic-first interfaces. |
14
+ | **D4** | **Layout Archetype** | • `L1` (Fullbleed Hero + Story Flow)<br>• `L2` (Split Screen App Walkthrough)<br>• `L3` (Sidebar Dashboard + Metrics Grid)<br>• `L4` (Multi-Column Magazine / Portal) | `L1` (Landing) / `L3` (App) | When building pages or app screens. |
15
+ | **D5** | **Output Scope & Depth** | • `single-screen` (Single interactive HTML prototype)<br>• `complete-design-system` (`design-system/` + multi-page prototype suite) | `single-screen` | When request could mean a quick mock or full design kit. |
16
+
17
+ ---
18
+
19
+ ## ⚡ Boolean Skip Conditions (Deterministic Bypass)
20
+
21
+ Skip interactive elicitation and proceed silently when ANY of the following are true:
22
+ 1. **Cached Brief Exists**: `.tidyfactor/design-brief.md` or root `brand.json` exists.
23
+ 2. **Explicit User Declaration**: Prompt explicitly declares foundation and school (e.g. `"Build a neo-brutalist dashboard with Tailwind"`).
24
+ 3. **Direct Command Invocation**: User invokes explicit foundation commands (`/tokens`, `/school`, `/typography`, `/layout`).
25
+ 4. **Maintenance / Audit Task**: Auditing (`/audit`), performance profiling (`/perf`), or CSS retrofit (`/retrofit`) silently preserves existing design system.
26
+
27
+ ---
28
+
29
+ ## 🎯 Single-Round Batching & Priority Overflow
30
+
31
+ When elicitation is required:
32
+ 1. **Max 3 Questions**: Ask at most 3 concise questions in a single round.
33
+ 2. **Priority Order**:
34
+ $$\mathbf{D1 \text{ (Foundation)}} > \mathbf{D2 \text{ (School)}} > \mathbf{D3 \text{ (Typography)}} > \mathbf{D4 \text{ (Layout)}} > \mathbf{D5 \text{ (Scope)}}$$
35
+ 3. **Conservative Default**: Any unasked or unanswered dimensions automatically adopt the **Default Fallback**.
36
+
37
+ ---
38
+
39
+ ## 💾 Brief Persistence Protocol
40
+
41
+ When `/brief` runs, save confirmed decisions to `.tidyfactor/design-brief.md`:
42
+ ```markdown
43
+ # Design System Brief
44
+ - Foundation: [native | tailwind | daisyui | pico | hybrid]
45
+ - Design School: [swiss-international | neo-brutalist | luxury-glassmorphic | warm-editorial]
46
+ - Typography Pairing: [classic-display | modern-geometric | contemporary-tech]
47
+ - Layout Archetype: [L1 | L2 | L3 | L4]
48
+ - Output Scope: [single-screen | complete-design-system]
49
+ - Confirmed At: YYYY-MM-DD
50
+ ```
@@ -0,0 +1,15 @@
1
+ # Memory: foundations (Pluggable CSS Foundations Catalog)
2
+
3
+ Operational rules and tokens for each pluggable CSS foundation layer.
4
+
5
+ ---
6
+
7
+ ## 🛠️ Supported CSS Foundations
8
+
9
+ | Foundation | Engine | Deliverable Shape | CDN / Runtime |
10
+ |---|---|---|---|
11
+ | `native` | Vanilla CSS | Custom properties in `design-system/tokens.css` + zero dependency reset | None (Pure CSS) |
12
+ | `tailwind` | Utility-First | Configured via `tailwind.config.js` or Tailwind CDN script | `https://cdn.tailwindcss.com` |
13
+ | `daisyui` | Semantic Components | Tailwind + DaisyUI component classes | Tailwind CDN + DaisyUI plugin |
14
+ | `pico` | Semantic Micro-CSS | Pure HTML semantic tags styled via Pico CSS | `https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css` |
15
+ | `hybrid` | Tokens + Utilities | Shared custom properties with micro-utility helpers | Custom bundle |
@@ -0,0 +1,20 @@
1
+ # Memory: quality-bar (Anti-Slop & Design Quality Gate)
2
+
3
+ Enforces uncompromising design rigor, zero per-page CSS/JS, and token consistency.
4
+
5
+ ---
6
+
7
+ ## 🛡️ 7-Axis Pre-Emit Self-Critique Stamp
8
+
9
+ Every generated prototype component, token set, or layout must be stamped:
10
+ `/* Pre-emit critique: P5 H5 E5 S5 R5 V5 D5 */`
11
+
12
+ | Axis | Dimension | Score 1 (Slop / Reject) | Score 5 (Production Pass) |
13
+ |:---:|---|---|---|
14
+ | **P** | **Philosophy & School Authenticity** | Generic Bootstrap look; inconsistent corner radii and shadows. | Pure school adherence (Swiss, Neo-Brutalist, Luxury, Editorial). |
15
+ | **H** | **Hierarchy & Layout Balance** | Crowded sections; poor whitespace ratio; no clear visual anchor. | Archetype-aligned macrostructure (L1–L4); strong focal hierarchy. |
16
+ | **E** | **Encapsulation & Architecture** | Inline styles on elements (`style="..."`); per-page CSS files. | 100% tokens in `design-system/`; clean semantic HTML pages. |
17
+ | **S** | **State Completeness** | Missing hover, focus, disabled, or loading states on inputs/buttons. | Complete 8-state wrappers across all interactive components. |
18
+ | **R** | **RTL & Typography Rigor** | Broken flow on `dir="rtl"`; Amiri used on giant display headlines. | Curated Arabic typography (El Messiri display, Tajawal body); full RTL. |
19
+ | **V** | **Velocity & Motion Polish** | Janky transitions; missing `prefers-reduced-motion` fallbacks. | Sub-200ms cubic-bezier easing curves; accessible reduced-motion rules. |
20
+ | **D** | **Decision Alignment** | Inconsistent foundation; arbitrary colors ignoring `brand.json`. | 100% synchronized with `.tidyfactor/design-brief.md` and `brand.json`. |
@@ -0,0 +1,66 @@
1
+ # TidyFactor — Shared Philosophy (all tracks)
2
+
3
+ Condensed from the ecosystem VISION.md. Every TidyFactor skill — this one
4
+ included — should be judged against this before adding any feature.
5
+
6
+ ## Design tenets
7
+ - Simple before clever.
8
+ - Explicit before implicit.
9
+ - Structured before generated.
10
+ - Portable before proprietary.
11
+ - Content before presentation.
12
+ - Standards before conventions.
13
+ - Small before bloated.
14
+ - AI-native before AI-powered.
15
+
16
+ ## The TidyFactor Test
17
+ - Is it simpler? Is it more maintainable?
18
+ - Does it improve interoperability? Does it reduce lock-in?
19
+ - Is it AI-native (structured, machine-readable, portable)?
20
+ - Can it survive future technology changes?
21
+ - Would we still choose this approach five years from now?
22
+
23
+ ## Standalone by design — why that's not a contradiction
24
+
25
+ Every other TidyFactor track shares infrastructure with its siblings
26
+ (`tidyfactor-php-micro` and `tidyfactor-htmx` compose; `tidyfactor-html`'s
27
+ componentization methods echo across tracks). `tidyfactor-design` is
28
+ deliberately different: it shares the **philosophy and command-library
29
+ format** with the family, but calls into no other skill, and no other skill
30
+ calls into it. This is itself an application of "portable before
31
+ proprietary" — a prototyping tool that only works alongside other specific
32
+ skills isn't portable to a designer's actual workflow, which usually starts
33
+ before any stack decision is made.
34
+
35
+ ## What the tenets mean concretely for this track
36
+
37
+ - **Structured before generated**: `tokens.css` + `brand.json` are the
38
+ structured source of truth. Every page is a *derivation* of them, never
39
+ hand-tuned in isolation — this is the mechanism, not just a guideline, per
40
+ the locked architecture in `SKILL.md`.
41
+ - **Portable before proprietary, applied to CSS foundations**: the choice
42
+ between Native / Tailwind / daisyUI / Hybrid (`references/foundations/`)
43
+ is the user's, made once, documented — never silently defaulted. A daisyUI
44
+ project stays portable because daisyUI itself is MIT-licensed, CDN-only,
45
+ and framework-agnostic; choosing it isn't lock-in the way a proprietary
46
+ design tool's file format would be.
47
+ - **Small before bloated**: one `components.css`, one `tokens.css`, one
48
+ `motion.js` — extending the component set is a confirmed decision routed
49
+ through the `components` command, not an ad hoc addition wherever a page
50
+ needed it.
51
+ - **AI-native**: the fixed sequencing (tokens → school → components → pages)
52
+ means any agent opening this project for the first time already knows the
53
+ build order, without re-deriving it.
54
+ - **Content before presentation**: copy in every page is real content for
55
+ that page's job — a prototype with lorem ipsum where real content should
56
+ be is treated as incomplete, same as a production page would be.
57
+
58
+ ## Relationship to Alwkala
59
+
60
+ TidyFactor is stewarded by Alwkala (alwkala.com). This track exists because
61
+ Alwkala's own production work (client landing pages, dashboard prototypes,
62
+ bilingual Arabic/English sites) repeatedly needed a fast, consistent,
63
+ code-native prototyping stage before development — `references/commands/i18n.md`
64
+ and `memory/08-arabic-bilingual.md` in particular carry conventions
65
+ (El Messiri/Tajawal, RTL correctness) drawn directly from that production
66
+ experience, not generic defaults.
@@ -0,0 +1,49 @@
1
+ # TidyFactor Design — Workflow Discipline
2
+
3
+ Applies underneath every command in `commands/`.
4
+
5
+ ## 1. Audit
6
+ - Check for `design-system/tokens.css` and `components.css` first — their
7
+ presence/absence and content decide what every later command can safely
8
+ assume.
9
+ - Check `design-system/brand.json` for a declared `cssFoundation` field
10
+ (`native` / `tailwind` / `daisyui` / `hybrid`) — if the project has pages
11
+ already, this MUST already be set; never re-ask, never silently switch it.
12
+ - Scan `pages/*.html` for violations of the locked architecture: inline
13
+ `<style>`, inline `<script>` logic, or a per-page `.css`/`.js` file. Any
14
+ hit is the primary finding, ahead of anything else.
15
+ - Report findings and the proposed changes before acting.
16
+
17
+ ## 2. Execute in batches
18
+ - One page, one component addition, or one concern at a time.
19
+ - New component need discovered while building a page → stop, route it
20
+ through the `components` command, resume the page after.
21
+ - Never touch `tokens.css` and add a new page in the same batch — token
22
+ changes affect every existing page; verify the token change alone first.
23
+
24
+ ## 3. Verify
25
+ - Serve locally (`python -m http.server 8123` or `npx serve`) and check in a
26
+ **visible** browser tab.
27
+ - Run the `audit` command's structural check (no page-level CSS/JS) plus the
28
+ quality-bar checklist (`memory/06-quality-bar.md`) before calling any page
29
+ "done".
30
+ - Confirm the new/changed page still reads identically in whichever
31
+ `cssFoundation` the project locked in — no accidental foundation mixing.
32
+
33
+ ## Mode-specific notes
34
+
35
+ **Init** — Step 0/0b answers replace the audit step. Foundation and school
36
+ choices happen here, once, and are never re-litigated per page.
37
+
38
+ **Convert (`clone`)** — audit the *reference* (existing site, screenshots)
39
+ for its actual token values (colors, type scale, spacing rhythm) before
40
+ proposing a `tokens.css`. The output is never a scrape or a copy of the
41
+ reference's markup — it's our own token/component system that produces the
42
+ same *impression*, built from `references/commands/clone.md`'s extraction
43
+ method.
44
+
45
+ **Improve (`retrofit`)** — `audit` is the primary deliverable if the user
46
+ just wants a report. Only unify pages once the user confirms which findings
47
+ to act on. A page with heavy inline styling is not deleted and rebuilt
48
+ blind — its content and layout intent are preserved, only its styling
49
+ mechanism is migrated onto `components.css`.
@@ -0,0 +1,26 @@
1
+ # Workflow: audit-prototype
2
+
3
+ Audits design system consistency, token hygiene, responsive layout behavior, and 8-state completeness.
4
+
5
+ ---
6
+
7
+ ## Steps
8
+
9
+ 1. **Verify Token & Invariant Compliance**:
10
+ - Check that all elements reference CSS custom properties.
11
+ - Check that no Amiri headings exceed 24px.
12
+ - Check that all interactive elements support focus states and reduced motion.
13
+
14
+ 2. **Generate Audit Scorecard**:
15
+ - Grade prototype against 7-axis quality gate.
16
+
17
+ 3. **Pre-Emit Self-Critique**:
18
+ - `/* Pre-emit critique: P5 H5 E5 S5 R5 V5 D5 */`
19
+
20
+ ---
21
+
22
+ ## Validation checklist
23
+
24
+ - [ ] Complete audit report produced with concrete recommendations.
25
+ - [ ] Token coverage verified across all views.
26
+ - [ ] Pre-emit critique stamp included.
@@ -0,0 +1,30 @@
1
+ # Workflow: brief
2
+
3
+ Discovers and records core design system baselines (Foundation, School, Typography, Archetype) using the Contextual Decision Layer (CDL).
4
+
5
+ ---
6
+
7
+ ## Steps
8
+
9
+ 1. **Check Existing State**:
10
+ - Inspect `brand.json` and `.tidyfactor/design-brief.md` for existing tokens and school choices.
11
+
12
+ 2. **Conduct Structured Discovery (Max 3 Questions)**:
13
+ - If not specified, ask:
14
+ 1. **CSS Foundation (D1)**: Native CSS, Tailwind, or DaisyUI?
15
+ 2. **Design School (D2)**: Swiss Clean, Neo-Brutalist, Luxury Glassmorphic, or Warm Editorial?
16
+ 3. **Layout Archetype (D4)**: L1 Landing Story, L2 Split Screen, or L3 Dashboard?
17
+
18
+ 3. **Record Decisions**:
19
+ - Save `.tidyfactor/design-brief.md` with confirmed parameters.
20
+
21
+ 4. **Report Summary**:
22
+ - Confirm baseline parameters and prompt user to invoke `/init` or `/components`.
23
+
24
+ ---
25
+
26
+ ## Validation checklist
27
+
28
+ - [ ] `.tidyfactor/design-brief.md` exists and contains confirmed values for D1–D5.
29
+ - [ ] No more than 3 questions were asked in a single round.
30
+ - [ ] Design baseline conforms to `references/memory/quality-bar.md`.
@@ -0,0 +1,27 @@
1
+ # Workflow: clone-prototype
2
+
3
+ Extracts design tokens, component styles, and layouts from an existing website or reference asset into the TidyFactor design system structure.
4
+
5
+ ---
6
+
7
+ ## Steps
8
+
9
+ 0. **Step 0: CDL Resolution & Brief Check**:
10
+ - Confirm extraction target and destination foundation.
11
+
12
+ 1. **Extract Visual DNA**:
13
+ - Extract primary/secondary colors, font families, base spacing units, and radius scale into `brand.json` and `design-system/tokens.css`.
14
+
15
+ 2. **Reconstruct Components**:
16
+ - Recreate core UI components (buttons, cards, navigation) as reusable CSS classes.
17
+
18
+ 3. **Pre-Emit Self-Critique**:
19
+ - `/* Pre-emit critique: P5 H5 E5 S5 R5 V5 D5 */`
20
+
21
+ ---
22
+
23
+ ## Validation checklist
24
+
25
+ - [ ] Extracted tokens populated in `brand.json` and `design-system/tokens.css`.
26
+ - [ ] Components follow 8-state model.
27
+ - [ ] Pre-emit critique stamp included.
@@ -0,0 +1,28 @@
1
+ # Workflow: init-prototype
2
+
3
+ Scaffolds a brand-new design system and interactive code-native prototype with zero build step.
4
+
5
+ ---
6
+
7
+ ## Steps
8
+
9
+ 0. **Step 0: CDL Resolution & Brief Check**:
10
+ - Check `.tidyfactor/design-brief.md` and `brand.json`. If missing, apply default `native` foundation and `swiss-international` school.
11
+
12
+ 1. **Scaffold Design System**:
13
+ - Create `design-system/tokens.css`, `base.css`, `motion.css`, and `components/`.
14
+
15
+ 2. **Assemble Prototype Page**:
16
+ - Create semantic HTML page (`pages/index.html` or requested view) linking `design-system/`.
17
+
18
+ 3. **Pre-Emit Self-Critique**:
19
+ - `/* Pre-emit critique: P5 H5 E5 S5 R5 V5 D5 */`
20
+
21
+ ---
22
+
23
+ ## Validation checklist
24
+
25
+ - [ ] Zero per-page CSS/JS; all styling lives in `design-system/`.
26
+ - [ ] Single CSS foundation applied consistently.
27
+ - [ ] Interactive component states defined.
28
+ - [ ] Pre-emit critique stamp included.
@@ -0,0 +1,25 @@
1
+ # Workflow: retrofit-prototype
2
+
3
+ Unifies a drifted prototype by moving hardcoded inline styles and custom per-page CSS into the centralized design system.
4
+
5
+ ---
6
+
7
+ ## Steps
8
+
9
+ 1. **Scan For Drift**:
10
+ - Locate inline `style="..."` attributes and one-off CSS classes across HTML files.
11
+
12
+ 2. **Migrate to Design System**:
13
+ - Replace one-off values with CSS custom properties from `design-system/tokens.css`.
14
+ - Extract recurring HTML patterns into reusable component classes in `design-system/components/`.
15
+
16
+ 3. **Pre-Emit Self-Critique**:
17
+ - `/* Pre-emit critique: P5 H5 E5 S5 R5 V5 D5 */`
18
+
19
+ ---
20
+
21
+ ## Validation checklist
22
+
23
+ - [ ] All inline styles and ad-hoc rules replaced with design system tokens.
24
+ - [ ] Visual consistency restored across all pages.
25
+ - [ ] Pre-emit critique stamp included.