From d9cc251cd4040d9c3796ec2d3ad409c948bb5727 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 29 Jan 2026 18:21:50 +0700 Subject: [PATCH] added a few design principles --- AGENTS.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 5db1161f..dea532e1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1187,6 +1187,49 @@ import { Link } from 'react-router-dom'; - Headers must be dynamic, immersive, and storytelling-driven, using layered visuals, motion, and symbolic elements to reflect the brand's identity—never use simple "icon and text" combos - Incorporate purposeful, lightweight animations for scroll reveals, micro-interactions (e.g., hover, click, transitions), and section transitions to create a sense of delight and fluidity +### Design Foundations + +These principles apply to ALL projects regardless of category. They define what "good design" means. + +#### Nielsen's 10 Usability Heuristics + +1. **Visibility of system status** — Always show loading states, progress indicators, success/error feedback. +2. **Match between system and real world** — Use familiar language, not jargon. Follow real-world conventions. +3. **User control and freedom** — Provide undo, cancel, back buttons. Let users recover from mistakes. +4. **Consistency and standards** — Same actions = same results. Follow platform conventions. +5. **Error prevention** — Use confirmations for destructive actions, disable invalid options. +6. **Recognition rather than recall** — Show options visibly; use menus, suggestions, recent items. +7. **Flexibility and efficiency of use** — Support novices (clear UI) and experts (shortcuts). +8. **Aesthetic and minimalist design** — Every element serves a purpose. Remove the rest. +9. **Help users recognize, diagnose, and recover from errors** — Plain language errors with solutions. +10. **Help and documentation** — Searchable, task-focused, concise. Ideally unnecessary. + +#### Dieter Rams' Principles of Good Design + +- **Good design is innovative** — Don't copy; find new solutions to real problems +- **Good design makes a product useful** — Function first; every feature must serve users +- **Good design is aesthetic** — Well-executed products are pleasant to use +- **Good design makes a product understandable** — The design itself should explain how to use it +- **Good design is unobtrusive** — Tools, not decorations; don't impose on users +- **Good design is honest** — Don't manipulate, exaggerate capabilities, or deceive users +- **Good design is long-lasting** — Avoid trendy gimmicks that age poorly +- **Good design is thorough to the last detail** — Nothing is arbitrary; every element considered +- **Good design is as little design as possible** — Less is more; concentrate on essentials + +#### Cognitive Principles + +**Gestalt Principles** (how humans perceive visual groups): +- **Proximity** — Elements close together are perceived as related. Group related items; separate unrelated ones. +- **Similarity** — Elements that look alike are perceived as related. Use consistent styling for similar functions. +- **Closure** — People complete incomplete shapes mentally. You don't need to draw every line. +- **Continuity** — Eyes follow lines and curves. Use alignment to create visual flow. +- **Figure-ground** — People separate foreground from background. Use contrast to make important elements stand out. + +**Key Laws**: +- **Hick's Law** — Decision time increases with the number of choices. Limit options; use progressive disclosure. +- **Fitts's Law** — Larger, closer targets are easier to click/tap. Make primary actions big and accessible. +- **Miller's Law** — Working memory holds ~7 items. Chunk information; don't overwhelm with long lists. + ### Step 1: Identify Project Type Before writing any code, classify the project into one of these categories. Each has fundamentally different design requirements: