@diffra-ai/cli 0.2.1 → 0.2.2

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 (108) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/bundle/chunks/{anthropic-messages-UM2LSKVG.js → anthropic-messages-VPHYDMHB.js} +1 -1
  3. package/dist/bundle/chunks/{azure-openai-responses-LLULQ6UR.js → azure-openai-responses-JYJ2VXQ2.js} +1 -1
  4. package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
  5. package/dist/bundle/chunks/{chunk-I6QEKFFB.js → chunk-2IABWVGX.js} +1 -1
  6. package/dist/bundle/chunks/{chunk-6NW7EDTU.js → chunk-6RV2XP5B.js} +6 -6
  7. package/dist/bundle/chunks/{chunk-Y5LGEDHU.js → chunk-FCSMMPE4.js} +1 -1
  8. package/dist/bundle/chunks/{chunk-MAMCTGRH.js → chunk-JEYYTVUX.js} +1 -1
  9. package/dist/bundle/chunks/chunk-NPHITI73.js +30 -0
  10. package/dist/bundle/chunks/{chunk-UBBD6YWP.js → chunk-QQYLP3HG.js} +1 -1
  11. package/dist/bundle/chunks/{chunk-J2CQ7AOB.js → chunk-QY4GYLLA.js} +1 -1
  12. package/dist/bundle/chunks/{chunk-MWJ5PWKE.js → chunk-REVASUCD.js} +1 -1
  13. package/dist/bundle/chunks/{chunk-BSCVN57O.js → chunk-S7OTLWTF.js} +1 -1
  14. package/dist/bundle/chunks/{chunk-QCEU5NDS.js → chunk-TOBZDLTR.js} +1 -1
  15. package/dist/bundle/chunks/{chunk-37INV3TW.js → chunk-Z4BBBJG4.js} +1 -1
  16. package/dist/bundle/chunks/{cli-VEFNOOXB.js → cli-I4RCHKMY.js} +1 -1
  17. package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-VQHACWH5.js → cloudflare-workers-ai-system-one-OTYUASP3.js} +1 -1
  18. package/dist/bundle/chunks/github-copilot.js +1 -1
  19. package/dist/bundle/chunks/{google-generative-ai-YFRD2UAD.js → google-generative-ai-DI3FOC25.js} +1 -1
  20. package/dist/bundle/chunks/{google-vertex-7EWCT4BL.js → google-vertex-VBHHROPU.js} +1 -1
  21. package/dist/bundle/chunks/{llama-cpp-classify-D5PC6EEP.js → llama-cpp-classify-MUFWIFOW.js} +1 -1
  22. package/dist/bundle/chunks/{mistral-conversations-ILNLXCLF.js → mistral-conversations-Q2PGF352.js} +1 -1
  23. package/dist/bundle/chunks/{openai-codex-responses-YESP5ZRN.js → openai-codex-responses-WWZAXEPG.js} +1 -1
  24. package/dist/bundle/chunks/{openai-completions-BKYCRYVB.js → openai-completions-4C7QTL2T.js} +1 -1
  25. package/dist/bundle/chunks/{openai-decisions-OZVDLRU3.js → openai-decisions-NYOT2XIF.js} +1 -1
  26. package/dist/bundle/chunks/{openai-responses-GSXMBGMK.js → openai-responses-R5MW34FB.js} +1 -1
  27. package/dist/bundle/chunks/{openrouter-images-TK5PJTOE.js → openrouter-images-FBKW4PD4.js} +1 -1
  28. package/dist/bundle/chunks/{pi-messages-AHAEGVU4.js → pi-messages-LJZPZBQY.js} +1 -1
  29. package/dist/bundle/chunks/{typesafe-system-one-XHINCFVH.js → typesafe-system-one-7MCWBLJY.js} +1 -1
  30. package/dist/bundle/chunks/{virtual-modules-7F3I52A6.js → virtual-modules-J4Z2IMRZ.js} +1 -1
  31. package/dist/bundle/cli-runtime.js +1 -1
  32. package/dist/bundle/cli.js +0 -0
  33. package/dist/bundle/index.js +1 -1
  34. package/dist/bundle/rpc-entry.js +1 -1
  35. package/dist/cli.js +0 -0
  36. package/dist/core/model-resolver.js +3 -3
  37. package/dist/core/model-resolver.js.map +1 -1
  38. package/dist/extensions/skills/bundled/find-skills/LICENSE +21 -0
  39. package/dist/extensions/skills/bundled/find-skills/SKILL.md +117 -0
  40. package/dist/extensions/skills/bundled/grill-me/LICENSE +21 -0
  41. package/dist/extensions/skills/bundled/grill-me/SKILL.md +44 -0
  42. package/dist/extensions/skills/bundled/handoff/LICENSE +21 -0
  43. package/dist/extensions/skills/bundled/handoff/SKILL.md +31 -0
  44. package/dist/extensions/skills/bundled/mcp-builder/LICENSE.txt +202 -0
  45. package/dist/extensions/skills/bundled/mcp-builder/SKILL.md +260 -0
  46. package/dist/extensions/skills/bundled/mcp-builder/reference/evaluation.md +432 -0
  47. package/dist/extensions/skills/bundled/mcp-builder/reference/mcp_best_practices.md +249 -0
  48. package/dist/extensions/skills/bundled/mcp-builder/reference/node_mcp_server.md +972 -0
  49. package/dist/extensions/skills/bundled/mcp-builder/reference/node_mcp_server_v2.md +747 -0
  50. package/dist/extensions/skills/bundled/mcp-builder/reference/python_mcp_server.md +719 -0
  51. package/dist/extensions/skills/bundled/ui-ux-pro-max/LICENSE +21 -0
  52. package/dist/extensions/skills/bundled/ui-ux-pro-max/SKILL.md +251 -0
  53. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/app-interface.csv +33 -0
  54. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/charts.csv +26 -0
  55. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/colors.csv +195 -0
  56. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/google-fonts.csv +1935 -0
  57. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/icons.csv +106 -0
  58. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/landing.csv +35 -0
  59. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/motion.csv +21 -0
  60. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/products.csv +195 -0
  61. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/react-performance.csv +45 -0
  62. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/angular.csv +51 -0
  63. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  64. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
  65. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  66. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/html-tailwind.csv +60 -0
  67. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
  68. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  69. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
  70. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/nextjs.csv +62 -0
  71. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/nuxt-ui.csv +84 -0
  72. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/nuxtjs.csv +68 -0
  73. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/pyside6-qss.csv +103 -0
  74. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  75. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/react.csv +67 -0
  76. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/shadcn.csv +69 -0
  77. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/svelte.csv +56 -0
  78. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  79. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
  80. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/uno.csv +60 -0
  81. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
  82. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  83. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/winui.csv +60 -0
  84. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
  85. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/styles.csv +90 -0
  86. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/typography.csv +75 -0
  87. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/ui-reasoning.csv +195 -0
  88. package/dist/extensions/skills/bundled/ui-ux-pro-max/data/ux-guidelines.csv +142 -0
  89. package/dist/extensions/skills/bundled/ui-ux-pro-max/references/pro-rules.md +117 -0
  90. package/dist/extensions/skills/bundled/ui-ux-pro-max/references/quick-reference.md +275 -0
  91. package/dist/extensions/skills/bundled/ui-ux-pro-max/scripts/core.py +1111 -0
  92. package/dist/extensions/skills/bundled/ui-ux-pro-max/scripts/design_system.py +1922 -0
  93. package/dist/extensions/skills/bundled/ui-ux-pro-max/scripts/preview.py +557 -0
  94. package/dist/extensions/skills/bundled/ui-ux-pro-max/scripts/reasoning_contract.py +123 -0
  95. package/dist/extensions/skills/bundled/ui-ux-pro-max/scripts/search.py +257 -0
  96. package/dist/extensions/skills/index.d.ts +4 -4
  97. package/dist/extensions/skills/index.d.ts.map +1 -1
  98. package/dist/extensions/skills/index.js +9 -4
  99. package/dist/extensions/skills/index.js.map +1 -1
  100. package/dist/rpc-entry.js +0 -0
  101. package/docs/builtin-skills.md +46 -3
  102. package/docs/docs.json +1 -1
  103. package/docs/skills.md +1 -1
  104. package/docs/slash-commands.md +2 -0
  105. package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
  106. package/examples/extensions/doom-overlay/doom/build.sh +0 -0
  107. package/package.json +6 -6
  108. package/dist/bundle/chunks/chunk-UIVU7TEF.js +0 -30
@@ -0,0 +1,142 @@
1
+ No,Category,Issue,Platform,Description,Do,Don't,Code Example Good,Code Example Bad,Severity
2
+ 1,Navigation,Smooth Scroll,Web,Anchor links should scroll smoothly to target section,Use scroll-behavior: smooth on html element,Jump directly without transition,html { scroll-behavior: smooth; },<a href='#section'> without CSS,High
3
+ 2,Navigation,Sticky Navigation,Web,Fixed nav should not obscure content,Add padding-top to body equal to nav height,Let nav overlap first section content,pt-20 (if nav is h-20),No padding compensation,Medium
4
+ 3,Navigation,Active State,All,Current page/section should be visually indicated,Highlight active nav item with color/underline,No visual feedback on current location,text-primary border-b-2,All links same style,Medium
5
+ 4,Navigation,Back Button,Mobile,Users expect back to work predictably,Preserve navigation history properly,Break browser/app back button behavior,history.pushState(),location.replace(),High
6
+ 5,Navigation,Deep Linking,All,URLs should reflect current state for sharing,Update URL on state/view changes,Static URLs for dynamic content,Use query params or hash,Single URL for all states,Medium
7
+ 6,Navigation,Breadcrumbs,Web,Show user location in site hierarchy,Use for sites with 3+ levels of depth,Use for flat single-level sites,Home > Category > Product,Only on deep nested pages,Low
8
+ 7,Animation,Excessive Motion,All,Too many animations cause distraction and motion sickness,Animate 1-2 key elements per view maximum,Animate everything that moves,Single hero animation,animate-bounce on 5+ elements,High
9
+ 8,Animation,Duration Timing,All,Motion duration depends on distance complexity platform and user context,Use shared motion tokens and test that feedback stays responsive,Present 150-300ms or any cutoff as a universal requirement,transition-colors duration-200,One duration copied to every transition,Medium
10
+ 9,Animation,Reduced Motion,All,Respect user's motion preferences,Check prefers-reduced-motion media query,Ignore accessibility motion settings,@media (prefers-reduced-motion: reduce),No motion query check,High
11
+ 10,Animation,Loading States,All,Show feedback during async operations,Use skeleton screens or spinners,Leave UI frozen with no feedback,animate-pulse skeleton,Blank screen while loading,High
12
+ 11,Animation,Hover vs Tap,All,Hover effects don't work on touch devices,Use click/tap for primary interactions,Rely only on hover for important actions,onClick handler,onMouseEnter only,High
13
+ 12,Animation,Continuous Animation,All,Infinite animations are distracting,Use for loading indicators only,Use for decorative elements,animate-spin on loader,animate-bounce on icons,Medium
14
+ 13,Animation,Transform Performance,Web,Some CSS properties trigger expensive repaints,Use transform and opacity for animations,Animate width/height/top/left properties,transform: translateY(),top: 10px animation,Medium
15
+ 14,Animation,Easing Functions,All,Easing should match how an element changes speed and purpose,Use deceleration when arriving acceleration when leaving and linear for constant-rate progress,Reject linear easing even for steady rotation or progress,ease-out for entry; linear for spinner,ease-in-out for every motion,Low
16
+ 15,Layout,Z-Index Management,Web,Stacking context conflicts cause hidden elements,Define z-index scale system (10 20 30 50),Use arbitrary large z-index values,z-10 z-20 z-50,z-[9999],High
17
+ 16,Layout,Overflow Hidden,Web,Hidden overflow can clip important content,Test all content fits within containers,Blindly apply overflow-hidden,overflow-auto with scroll,overflow-hidden truncating content,Medium
18
+ 17,Layout,Fixed Positioning,Web,Fixed elements can overlap or be inaccessible,Account for safe areas and other fixed elements,Stack multiple fixed elements carelessly,Fixed nav + fixed bottom with gap,Multiple overlapping fixed elements,Medium
19
+ 18,Layout,Stacking Context,Web,New stacking contexts reset z-index,Understand what creates new stacking context,Expect z-index to work across contexts,Parent with z-index isolates children,z-index: 9999 not working,Medium
20
+ 19,Layout,Content Jumping,Web,Images badges validation text and skeleton replacements can shift nearby content when they update,Reserve appropriate space or keep async states in a stable content-driven container,Insert compact text or media without a layout strategy,aspect-ratio for media; stable count slot for badges,Badge insertion pushes toolbar actions,High
21
+ 20,Layout,Viewport Units,Web,100vh can be problematic on mobile browsers,Use dvh or account for mobile browser chrome,Use 100vh for full-screen mobile layouts,min-h-dvh or min-h-screen,h-screen on mobile,Medium
22
+ 21,Layout,Container Width,Web,Content too wide is hard to read,Limit max-width for text content (65-75ch),Let text span full viewport width,max-w-prose or max-w-3xl,Full width paragraphs,Medium
23
+ 22,Touch,Touch Target Size,Mobile,Touch target guidance depends on platform and web context,Use 44pt on iOS and 48dp on Android; for web use the separate WCAG Target Size rule,Treat one unit or minimum as universal across platforms,iOS 44pt; Android 48dp; Web 24 CSS px plus WCAG exceptions,w-6 h-6 buttons,High
24
+ 23,Touch,Touch Spacing,Mobile,Adjacent touch targets need adequate spacing,Minimum 8px gap between touch targets,Tightly packed clickable elements,gap-2 between buttons,gap-0 or gap-1,Medium
25
+ 24,Touch,Gesture Conflicts,Mobile,Custom gestures can conflict with system,Avoid horizontal swipe on main content,Override system gestures,Vertical scroll primary,Horizontal swipe carousel only,Medium
26
+ 25,Touch,Tap Delay,Mobile,300ms tap delay feels laggy,Use touch-action CSS or fastclick,Default mobile tap handling,touch-action: manipulation,No touch optimization,Medium
27
+ 26,Touch,Pull to Refresh,Mobile,Accidental refresh is frustrating,Disable where not needed,Enable by default everywhere,overscroll-behavior: contain,Default overscroll,Low
28
+ 27,Touch,Haptic Feedback,Mobile,Tactile feedback improves interaction feel,Use for confirmations and important actions,Overuse vibration feedback,navigator.vibrate(10),Vibrate on every tap,Low
29
+ 28,Interaction,Focus States,All,"Keyboard focus, including controls inside a modal, needs a visible indicator","Use a visible focus ring on every interactive control, including modal controls",Remove focus outline without replacement,focus:ring-2 focus:ring-blue-500,outline-none without alternative,High
30
+ 29,Interaction,Hover States,Web,Visual feedback on interactive elements,Change cursor and add subtle visual change,No hover feedback on clickable elements,hover:bg-gray-100 cursor-pointer,No hover style,Medium
31
+ 30,Interaction,Active States,All,Show immediate feedback on press/click,Add pressed/active state visual change,No feedback during interaction,active:scale-95,No active state,Medium
32
+ 31,Interaction,Disabled States,All,Clearly indicate non-interactive elements,Reduce opacity and change cursor,Confuse disabled with normal state,opacity-50 cursor-not-allowed,Same style as enabled,Medium
33
+ 32,Interaction,Loading Buttons,All,Prevent double submission during async actions,Disable button and show loading state,Allow multiple clicks during processing,disabled={loading} spinner,Button clickable while loading,High
34
+ 33,Interaction,Error Feedback,All,Users need to know when something fails,Show clear error messages near problem,Silent failures with no feedback,Red border + error message,No indication of error,High
35
+ 34,Interaction,Success Feedback,All,Confirm successful actions to users,Show success message or visual change,No confirmation of completed action,Toast notification or checkmark,Action completes silently,Medium
36
+ 35,Interaction,Confirmation Dialogs,All,Prevent accidental destructive actions,Confirm before delete/irreversible actions,Delete without confirmation,Delete 'Q3 report'? dialog with Delete report and Keep report buttons,Direct delete on click,High
37
+ 36,Accessibility,Color Contrast,All,Text must be readable against background,Minimum 4.5:1 ratio for normal text,Low contrast text,#333 on white (7:1),#999 on white (2.8:1),High
38
+ 37,Accessibility,Color Only,All,Don't convey information by color alone,Use icons/text in addition to color,Red/green only for error/success,Red text + error icon,Red border only for error,High
39
+ 38,Accessibility,Alt Text,All,Images need text alternatives,Descriptive alt text for meaningful images,Empty or missing alt attributes,alt='Dog playing in park',alt='' for content images,High
40
+ 39,Accessibility,Heading Hierarchy,Web,Screen readers use headings for navigation,Use sequential heading levels h1-h6,Skip heading levels or misuse for styling,h1 then h2 then h3,h1 then h4,Medium
41
+ 40,Accessibility,ARIA Labels,All,Interactive elements need accessible names,Add aria-label for icon-only buttons,Icon buttons without labels,aria-label='Close menu',<button><Icon/></button>,High
42
+ 41,Accessibility,Keyboard Navigation,Web,Web users need complete keyboard navigation with visible focus on every operable control,Keep tab order aligned with visual order and test every action without a pointer,Keyboard traps or illogical tab order,tabIndex for custom order,Unreachable elements,High
43
+ 42,Accessibility,Screen Reader,All,Content should make sense when read aloud,Use semantic HTML and ARIA properly,Div soup with no semantics,<nav> <main> <article>,<div> for everything,Medium
44
+ 43,Accessibility,Form Labels,All,Inputs must have associated labels,Use label with for attribute or wrap input,Placeholder-only inputs,<label for='email'>,placeholder='Email' only,High
45
+ 44,Accessibility,Error Messages,All,Error messages must be announced,Use aria-live or role=alert for errors,Visual-only error indication,role='alert',Red border only,High
46
+ 45,Accessibility,Skip Links,Web,Allow keyboard users to skip navigation,Provide skip to main content link,No skip link on nav-heavy pages,Skip to main content link,100 tabs to reach content,Medium
47
+ 46,Performance,Image Optimization,All,Large images slow page load,Use appropriate size and format (WebP),Unoptimized full-size images,srcset with multiple sizes,4000px image for 400px display,High
48
+ 47,Performance,Lazy Loading,All,Load content as needed,Lazy load below-fold images and content,Load everything upfront,loading='lazy',All images eager load,Medium
49
+ 48,Performance,Code Splitting,Web,Large bundles slow initial load,Split code by route/feature,Single large bundle,dynamic import(),All code in main bundle,Medium
50
+ 49,Performance,Caching,Web,Repeat visits should be fast,Set appropriate cache headers,No caching strategy,Cache-Control headers,Every request hits server,Medium
51
+ 50,Performance,Font Loading,Web,Web fonts can block rendering,Use font-display swap or optional,Invisible text during font load,font-display: swap,FOIT (Flash of Invisible Text),Medium
52
+ 51,Performance,Third Party Scripts,Web,External scripts can block rendering,Load non-critical scripts async/defer,Synchronous third-party scripts,async or defer attribute,<script src='...'> in head,Medium
53
+ 52,Performance,Bundle Size,Web,Large JavaScript slows interaction,Monitor and minimize bundle size,Ignore bundle size growth,Bundle analyzer,No size monitoring,Medium
54
+ 53,Performance,Render Blocking,Web,CSS/JS can block first paint,Inline critical CSS defer non-critical,Large blocking CSS files,Critical CSS inline,All CSS in head,Medium
55
+ 54,Forms,Input Labels,All,Every input needs a visible label,Always show label above or beside input,Placeholder as only label,<label>Email</label><input>,placeholder='Email' only,High
56
+ 55,Forms,Error Placement,All,Each invalid field needs an inline error connected to that field,Show a specific error below the input and reference it with aria-describedby,Show only a top-level error without identifying each invalid field,"<input aria-describedby=""email-error""><p id=""email-error"">Enter an email address</p>",Red border or summary only,High
57
+ 56,Forms,Inline Validation,All,Validate as user types or on blur,Validate on blur for most fields,Validate only on submit,onBlur validation,Submit-only validation,Medium
58
+ 57,Forms,Input Types,All,Use appropriate input types,Use email tel number url etc,Text input for everything,type='email',type='text' for email,Medium
59
+ 58,Forms,Autofill Support,Web,Help browsers autofill correctly,Use autocomplete attribute properly,Block or ignore autofill,autocomplete='email',autocomplete='off' everywhere,Medium
60
+ 59,Forms,Required Indicators,All,Mark required fields clearly,Use asterisk or (required) text,No indication of required fields,* required indicator,Guess which are required,Medium
61
+ 60,Forms,Password Visibility,All,Let users see password while typing,Toggle to show/hide password,No visibility toggle,Show/hide password button,Password always hidden,Medium
62
+ 61,Forms,Submit Feedback,All,Confirm form submission status,Show loading then success/error state,No feedback after submit,Loading -> Success message,Button click with no response,High
63
+ 62,Forms,Input Affordance,All,Inputs should look interactive,Use distinct input styling,Inputs that look like plain text,Border/background on inputs,Borderless inputs,Medium
64
+ 63,Forms,Mobile Keyboards,Mobile,Show appropriate keyboard for input type,Use inputmode attribute,Default keyboard for all inputs,inputmode='numeric',Text keyboard for numbers,Medium
65
+ 64,Responsive,Mobile First,Web,Design for mobile then enhance for larger,Start with mobile styles then add breakpoints,Desktop-first causing mobile issues,Default mobile + md: lg: xl:,Desktop default + max-width queries,Medium
66
+ 65,Responsive,Breakpoint Testing,Web,Test at all common screen sizes,Test at 320 375 414 768 1024 1440,Only test on your device,Multiple device testing,Single device development,Medium
67
+ 66,Responsive,Touch Friendly,Web,Mobile layouts need touch-sized targets,Increase touch targets on mobile,Same tiny buttons on mobile,Larger buttons on mobile,Desktop-sized targets on mobile,High
68
+ 67,Responsive,Readable Font Size,All,Text must be readable on all devices,Minimum 16px body text on mobile,Tiny text on mobile,text-base or larger,text-xs for body text,High
69
+ 68,Responsive,Viewport Meta,Web,Set viewport for mobile devices,Use width=device-width initial-scale=1,Missing or incorrect viewport,<meta name='viewport'...>,No viewport meta tag,High
70
+ 69,Responsive,Horizontal Scroll,Web,Avoid horizontal scrolling,Ensure content fits viewport width,Content wider than viewport,max-w-full overflow-x-hidden,Horizontal scrollbar on mobile,High
71
+ 70,Responsive,Image Scaling,Web,Images should scale with container,Use max-width: 100% on images,Fixed width images overflow,max-w-full h-auto,width='800' fixed,Medium
72
+ 71,Responsive,Table Handling,Web,Tables can overflow on mobile,Use horizontal scroll or card layout,Wide tables breaking layout,overflow-x-auto wrapper,Table overflows viewport,Medium
73
+ 72,Typography,Line Height,All,Adequate line height improves readability,Use 1.5-1.75 for body text,Cramped or excessive line height,leading-relaxed (1.625),leading-none (1),Medium
74
+ 73,Typography,Line Length,Web,Long lines are hard to read,Limit to 65-75 characters per line,Full-width text on large screens,max-w-prose,Full viewport width text,Medium
75
+ 74,Typography,Font Size Scale,All,Consistent type hierarchy aids scanning,Use consistent modular scale,Random font sizes,Type scale (12 14 16 18 24 32),Arbitrary sizes,Medium
76
+ 75,Typography,Font Loading,Web,Fonts should load without layout shift,Reserve space with fallback font,Layout shift when fonts load,font-display: swap + similar fallback,No fallback font,Medium
77
+ 76,Typography,Contrast Readability,All,Body text needs good contrast,Use darker text on light backgrounds,Gray text on gray background,text-gray-900 on white,text-gray-400 on gray-100,High
78
+ 77,Typography,Heading Clarity,All,Headings should stand out from body,Clear size/weight difference,Headings similar to body text,Bold + larger size,Same size as body,Medium
79
+ 78,Feedback,Loading Indicators,All,Loading feedback should match the expected wait and avoid flashing for near-instant work,Follow platform and component guidance; preserve layout focus and accessible busy status,Apply one timing threshold to every operation or leave long waits unexplained,Stable skeleton or progress with aria-busy,Flickering spinner or frozen UI,High
80
+ 79,Feedback,Empty States,All,Guide users when no content exists,Show helpful message and action,Blank empty screens,No items yet. Create one!,Empty white space,Medium
81
+ 80,Feedback,Error Recovery,All,Help users recover from errors,Provide clear next steps,Error without recovery path,Try again button + help link,Error message only,Medium
82
+ 81,Feedback,Progress Indicators,All,Show progress for multi-step processes,Step indicators or progress bar,No indication of progress,Step 2 of 4 indicator,No step information,Medium
83
+ 82,Feedback,Toast Notifications,All,Transient messages for non-critical info,Auto-dismiss after 3-5 seconds,Toasts that never disappear,Auto-dismiss toast,Persistent toast,Medium
84
+ 83,Feedback,Confirmation Messages,All,Confirm successful actions,Brief success message,Silent success,Saved successfully toast,No confirmation,Medium
85
+ 84,Content,Truncation,All,Handle long content gracefully,Truncate with ellipsis and expand option,Overflow or broken layout,line-clamp-2 with expand,Overflow or cut off,Medium
86
+ 85,Content,Date Formatting,All,Use locale-appropriate date formats,Use relative or locale-aware dates,Ambiguous date formats,2 hours ago or locale format,01/02/03,Low
87
+ 86,Content,Number Formatting,All,Format large numbers for readability,Use thousand separators or abbreviations,Long unformatted numbers,"1.2K or 1,234",1234567,Low
88
+ 87,Content,Placeholder Content,All,Show realistic placeholders during dev,Use realistic sample data,Lorem ipsum everywhere,Real sample content,Lorem ipsum,Low
89
+ 88,Onboarding,User Freedom,All,Users should be able to skip tutorials,Provide Skip and Back buttons,Force linear unskippable tour,Skip Tutorial button,Locked overlay until finished,Medium
90
+ 89,Search,Autocomplete,Web,Help users find results faster,Show predictions as user types,Require full type and enter,Debounced fetch + dropdown,No suggestions,Medium
91
+ 90,Search,No Results,Web,Dead ends frustrate users,Show 'No results' with suggestions,Blank screen or '0 results',Try searching for X instead,No results found.,Medium
92
+ 91,Data Entry,Bulk Actions,Web,Editing one by one is tedious,Allow multi-select and bulk edit,Single row actions only,Checkbox column + Action bar,Repeated actions per row,Low
93
+ 92,AI Interaction,Disclaimer,All,Users need to know they talk to AI,Clearly label AI generated content,Present AI as human,AI Assistant label,Fake human name without label,High
94
+ 93,AI Interaction,Streaming,All,Waiting for full text is slow,Stream text response token by token,Show loading spinner for 10s+,Typewriter effect,Spinner until 100% complete,Medium
95
+ 94,Spatial UI,Gaze Hover,VisionOS,Elements should respond to eye tracking before pinch,Scale/highlight element on look,Static element until pinch,hoverEffect(),onTap only,High
96
+ 95,Spatial UI,Depth Layering,VisionOS,UI needs Z-depth to separate content from environment,Use glass material and z-offset,Flat opaque panels blocking view,.glassBackgroundEffect(),bg-white,Medium
97
+ 96,Sustainability,Auto-Play Video,Web,Autoplaying media consumes data and creates motion barriers,Prefer click-to-play; provide pause and captions; stop off-screen and honor reduced motion,Auto-play high-resolution loops without pause or captions,"<video controls preload=""none""><track kind=""captions"" /></video>",autoplay loop,Medium
98
+ 97,Sustainability,Asset Weight,Web,Heavy 3D/Image assets increase carbon footprint,Compress and lazy load 3D models,Load 50MB textures,Draco compression,Raw .obj files,Medium
99
+ 98,AI Interaction,Feedback Loop,All,AI needs user feedback to improve,Thumps up/down or 'Regenerate',Static output only,Feedback component,Read-only text,Low
100
+ 99,Accessibility,Motion Sensitivity,All,Parallax/Scroll-jacking causes nausea,Honor prefers-reduced-motion and present the final readable state without parallax or scroll-jacking,Force scroll effects,@media (prefers-reduced-motion),ScrollTrigger.create(),High
101
+ 100,Accessibility,Focus Not Obscured (Minimum),Web,WCAG 2.2 AA requires keyboard focus to remain at least partially visible,Offset sticky UI with scroll-padding and dismiss or move persistent overlays,Let headers footers banners or chat widgets fully cover focus,scroll-padding-top: var(--header-height),fixed overlay covers :focus,High
102
+ 101,Accessibility,Focus Not Obscured (Enhanced),Web,WCAG 2.2 AAA requires keyboard focus to remain fully visible,Keep the entire focused component unobscured by author-created content,Present this enhanced AAA criterion as an AA requirement or allow persistent UI to hide any part of focus,close persistent overlay before focus moves behind it,sticky footer covers half the focused button,Medium
103
+ 102,Accessibility,Focus Appearance,Web,WCAG 2.2 AAA defines minimum area and contrast for focus indicators,Use an indicator at least as large as a 2 CSS px perimeter with 3:1 state contrast,Present this enhanced AAA criterion as an AA requirement or use a thin low-contrast outline,outline: 2px solid currentColor; outline-offset: 2px,box-shadow: 0 0 1px low-contrast,Medium
104
+ 103,Accessibility,Dragging Movements,All,WCAG 2.2 AA requires a single-pointer alternative for author-controlled drag operations,Add buttons menus or tap-to-move controls and retain keyboard operation,Make dragging the only way to reorder resize or select,Move up and Move down buttons beside drag handle,drag handle only,High
105
+ 104,Accessibility,Target Size (Minimum),Web,WCAG 2.2 AA requires 24 CSS px pointer targets or an applicable exception,Use at least 24 by 24 CSS px or verify spacing equivalent inline user-agent or essential exceptions,Assume native 44pt or 48dp guidance defines web conformance,min-width: 24px; min-height: 24px,tiny adjacent icon buttons,High
106
+ 105,Accessibility,Consistent Help,All,WCAG 2.2 A requires repeated help mechanisms to stay in the same relative order,Keep contact self-help and automated help in consistent locations,Move help controls to different locations on each page,shared header help menu,page-specific help placement,Medium
107
+ 106,Forms,Redundant Entry,All,WCAG 2.2 A avoids requiring the same information twice in one process,Auto-populate prior values or let users select previously entered information,Ask users to retype the same address or account data without necessity,reuse confirmed shipping address,repeat full address form,Medium
108
+ 107,Security / Accessibility,Accessible Authentication (Minimum),All,WCAG 2.2 AA says authentication must not depend only on a cognitive function test unless an exception applies,Allow password managers and paste; offer passkeys OAuth or another non-cognitive method,Block paste or require manual OTP transcription with no alternative,"autocomplete=""current-password"" and paste allowed",onpaste preventDefault,Critical
109
+ 108,Animation,Auto-Rotating Content Controls,All,Auto-rotating content needs user control,Provide previous next and play/pause; stop on focus or hover and when reduced motion is requested,Auto-advance slides without a stop control,"button aria-label=""Pause carousel""",timer-only carousel,High
110
+ 109,Forms / Accessibility,Focusable Error Summary,Web,An error summary for failed validation complements inline field errors and must be easy to find by keyboard and screen reader users,Place it at the top of the form; move focus to its heading or container after failed submit; link each item to its invalid field; retain inline errors,Replace inline errors with a visual-only summary or move focus on every blur,"<div role=""alert"" tabindex=""-1"" aria-labelledby=""error-title""><h2 id=""error-title"">There is a problem</h2><a href=""#email"">Enter an email address</a></div>",Toast only with no field links or focus target,High
111
+ 110,Typography,Heading Line Balance,Web,Short multi-line headings may use balanced wrapping as a progressive visual heuristic,Bound the measure and test natural-wrap fallback across widths fonts and locales,Promise an exact final line or insert blanket nonbreaking spaces or hardcoded br tags,.hero-title { max-inline-size: 20ch; text-wrap: balance; },Heading copy rewritten with forced last-line breaks,Medium
112
+ 111,Layout,Long Token Wrapping,Web,URLs identifiers and user content must not force horizontal overflow,Use overflow-wrap anywhere and let flex or grid text children shrink,Apply word-break break-all to all prose,.token { min-inline-size: 0; overflow-wrap: anywhere; },.token { white-space: nowrap; },High
113
+ 112,Accessibility,Text Reflow and Spacing,Web,Text must remain available at narrow widths zoom and user spacing overrides,Use fluid sizes content-driven height and unitless line height,Clip text in fixed-width or fixed-height boxes,".copy { inline-size: min(100%, 65ch); height: auto; line-height: 1.5; }",.copy { width: 900px; height: 40px; overflow: hidden; },Critical
114
+ 113,Content,Essential Text Truncation,All,Headings actions errors safety text and distinguishing names need complete access,Wrap stack resize or provide a visible full-detail path,Clamp essential meaning only to make cards uniform,Action label wraps or opens full details,Primary action shown only as an unexplained ellipsis,Critical
115
+ 114,Content,Compact Label Semantics,All,Badges communicate state while chips or tags represent values or actions,Choose static or interactive markup from the label's meaning and ownership,Make every pill clickable or encode status with color alone,<span class='status'>Pending</span>,<div class='pill' onclick='toggle()'>Pending</div>,High
116
+ 115,Layout,Chip Collection Reflow,All,Filter chips and editable value collections must preserve labels when space or text size changes,Wrap the collection or use an operable +n disclosure for hidden overflow values,Force all chips into one clipped row or hide overflow values,<div class='chip-list'>{chips}</div> with flex-wrap,<div class='chip-list' style='height:32px;overflow:hidden'>,High
117
+ 116,Content,Compact Label Overflow,All,A badge chip or pill label should stay whole on one line when practical and disclose unavoidable truncation,Bound only unpredictable values; use nowrap with a shrinkable label; expose full text to keyboard pointer and touch users,Let one compact label wrap to a second line or use a hover-only tooltip,Flexible label with min-width 0 and an operable full-value disclosure,Fixed-width badge wraps to second line or clips with title-only recovery,High
118
+ 117,Accessibility,Compact Control Semantics,Web,Interactive chips need a native role accessible name state keyboard operation and visible focus,Prefer a button and expose pressed or selected state that matches the visible label,Use a clickable div or reveal the only action on hover,<button aria-pressed='true'>Open now</button>,<div class='selected' onclick='toggle()'>Open now</div>,Critical
119
+ 118,Accessibility,Contextual Live Badge Updates,Web,Async badge and count changes should announce a meaningful contextual status without moving focus,Use one appropriate atomic status message such as 3 items in cart,Announce a bare number or make every badge a competing live region,<span role='status' aria-atomic='true'>3 items in cart</span>,<span aria-live='polite'>3</span>,High
120
+ 119,Animation,Cancellable State Transitions,Web,Rapid compact-control changes can interrupt an in-flight transition,Cancel or replace prior motion; set the final semantic state directly and handle cancellation cleanup,Depend on animationend or transitionend for required state correctness,previous?.cancel(); setSelected(next),Enable the chip only inside transitionend,High
121
+ 120,Forms,IME Composition Enter,Web,Korean (한글) Japanese and Chinese IME composition can use Enter to confirm text rather than submit a chat message or search,Cancel the default action of handled Enter before guarding isComposing or legacy keyCode 229; preserve Shift+Enter and modifier policy; ignore repeats; retain a submit button for virtual keyboards,Send or clear text on every Enter keydown or submit from compositionend,"textarea.addEventListener('keydown', e => { if (e.key !== 'Enter' || e.shiftKey || e.ctrlKey || e.metaKey || e.altKey) return; e.preventDefault(); if (e.isComposing || e.keyCode === 229) return; if (!e.repeat) form.requestSubmit(); });","textarea.addEventListener('keydown', e => { if (e.key === 'Enter') { e.preventDefault(); form.requestSubmit(); } });",High
122
+ 121,Maps,Map Attribution Visible,Web,"Web maps built on OpenStreetMap, Mapbox, MapLibre, Leaflet or OpenLayers tiles must show data and tile attribution, and the Mapbox logo with Mapbox tiles, without user interaction; hiding them breaks the tile license","Keep the map library attribution control visible on load; it may collapse after interaction to an (i) button that stays findable; keep the Mapbox logo with Mapbox tiles; add third-party tile attribution yourself in Leaflet or OpenLayers","Disable the attribution control, hide it behind a click on load, or hide the logo or credits with CSS","new maplibregl.Map({container: 'map', style, attributionControl: {compact: true}})",".maplibregl-ctrl-attrib, .mapboxgl-ctrl-logo { display: none !important; }",Critical
123
+ 122,Maps,Map Text Alternative,Web,"An interactive web map canvas is invisible to screen readers; the map region needs a name, a text summary of what it shows and a list or table of the key features","Label the map container as a region, add a short text summary of the map's key insight, and offer a feature list or table that follows the active filters","Leave the map as an unlabeled canvas or a div with no text equivalent","<div id='map' role='region' aria-label='Flood extent map'></div><p>3 districts flooded since 12 May</p><table>...</table>",<div id='map'></div>,Critical
124
+ 123,Maps,Map Keyboard and Non-Drag Navigation,Web,"Map pan, zoom and feature selection must work without a mouse or a drag gesture (WCAG 2.1.1 Keyboard and 2.5.7 Dragging Movements)","Keep the map keyboard handler on (arrow keys pan, +/- zoom), make markers focusable with Enter opening details, show zoom buttons, and offer search or coordinate input to reach a place without dragging","Disable map keyboard handling or make dragging the only way to pan, swipe a compare view or scrub a map time slider","new maplibregl.Map({container: 'map', style, keyboard: true}); map.addControl(new maplibregl.NavigationControl())","new maplibregl.Map({container: 'map', style, keyboard: false})",High
125
+ 124,Maps,Map Symbology Not Color Alone,Web,"Map markers, status layers and categories need a second cue besides hue, and map color ramps must stay readable with color-vision deficiency","Pair color with an icon, shape, pattern or label per category; use colorblind-safe map schemes such as ColorBrewer YlGnBu, Blues or RdBu, or Viridis; check the map legend in a deuteranopia simulation","Encode alert versus normal or map categories only with red and green fills or circle colors","'icon-image': ['match', ['get', 'status'], 'alert', 'icon-alert', 'ok', 'icon-ok', 'icon-dot']","'circle-color': ['match', ['get', 'status'], 'alert', 'red', 'ok', 'green', 'gray']",High
126
+ 125,Maps,Normalized Choropleth Map,Web,"A choropleth map (regions filled by value) of raw counts makes large or populous regions look important just because of their size","Fill regions by rates, densities or percentages (per capita, per km2, share of total); show raw totals as proportional symbols scaled by the square root of the value","Fill choropleth regions by raw totals such as case counts or population","'fill-color': ['interpolate', ['linear'], ['/', ['get', 'cases'], ['get', 'population']], 0, '#eff3ff', 0.01, '#08519c']","'fill-color': ['interpolate', ['linear'], ['get', 'cases'], 0, '#eff3ff', 50000, '#08519c']",High
127
+ 126,Maps,Perceptual Map Color Ramps,Web,"Continuous map data such as heatmaps, rasters, elevation or vegetation indices needs an ordered color ramp on a muted basemap","Use single-hue sequential or perceptually uniform ramps (Viridis, ColorBrewer sequential) and diverging ramps only around a meaningful midpoint; darker means more on a light basemap and brighter means more on a dark basemap; mute basemap saturation so the data layer stays strongest","Use rainbow or jet ramps, which add false boundaries and uneven lightness, or saturated data colors on a busy saturated basemap","'heatmap-color': ['interpolate', ['linear'], ['heatmap-density'], 0, 'rgba(68,1,84,0)', 0.5, '#21918c', 1, '#fde725']","'heatmap-color': ['interpolate', ['linear'], ['heatmap-density'], 0, 'blue', 0.25, 'cyan', 0.5, 'lime', 0.75, 'yellow', 1, 'red']",High
128
+ 127,Maps,Safe Map Popup Content,Web,"Feature attributes shown in map popups and tooltips come from data sources or user uploads and can carry script (XSS)","Render feature attribute values as text through DOM text nodes with setDOMContent or setText; use setHTML only for trusted templates or sanitized output","Interpolate feature properties into strings passed to setHTML, Leaflet bindPopup or innerHTML","const el = document.createElement('div'); el.textContent = f.properties.name; new maplibregl.Popup().setDOMContent(el).setLngLat(lngLat).addTo(map)",new maplibregl.Popup().setHTML(`<b>${f.properties.name}</b>`).setLngLat(lngLat).addTo(map),High
129
+ 128,Maps,Cluster Dense Map Points,Web,"Thousands of overlapping map point markers hide each other and slow map rendering at low zoom","Cluster points at low zoom with a count label, set clusterMaxZoom, and zoom into a cluster on click or Enter","Draw tens of thousands of individual or DOM markers at every zoom level","map.addSource('pts', {type: 'geojson', data: url, cluster: true, clusterMaxZoom: 14, clusterRadius: 50})","map.addSource('pts', {type: 'geojson', data: url}) // 200k overlapping circles",Medium
130
+ 129,Maps,Large Geodata as Vector Tiles,Web,"Very large GeoJSON map layers are downloaded, parsed and tiled in the browser, which freezes the map on load","Serve large map datasets as vector tiles (MVT or PMTiles) and keep GeoJSON slim: drop unused properties, round coordinates and simplify geometry","Load a multi-megabyte GeoJSON file with every attribute into the browser","map.addSource('parcels', {type: 'vector', url: 'pmtiles://parcels.pmtiles'})","map.addSource('parcels', {type: 'geojson', data: 'all_parcels_450MB.geojson'})",Medium
131
+ 130,Maps,Map Camera Reduced Motion,Web,"Animated map camera moves such as flyTo tours, spinning globes and looping map animations can trigger vestibular symptoms","Keep MapLibre and Mapbox camera moves non-essential so the library skips them under prefers-reduced-motion; check prefers-reduced-motion yourself for custom loops (globe spin, Leaflet flyTo, deck.gl or Cesium flights) and jump instead of fly; give continuous map animation a pause control","Mark decorative flights essential: true or start a requestAnimationFrame camera loop regardless of the motion setting","if (!matchMedia('(prefers-reduced-motion: reduce)').matches) requestAnimationFrame(spinGlobe); map.flyTo({center, zoom})","map.flyTo({center, zoom, essential: true}); requestAnimationFrame(spinGlobe)",Medium
132
+ 131,Forms,Clear Errors After Correction,All,An error that stays after the field is corrected makes valid input look wrong; remove the message once the value is valid,"Once a field shows an error re-check it on input (at the latest on blur) and remove the message, error styling and aria-invalid the moment it passes; re-check dependent fields such as a password confirmation; on resubmit revalidate every field and drop stale error summary items",Leave a corrected error on screen until the next submit or until focus leaves the field,"input.addEventListener('input', () => { if (input.getAttribute('aria-invalid') === 'true' && isValid(input.value)) clearError(input); });",Errors recomputed only in onSubmit so the corrected field stays red,High
133
+ 132,Forms,Premature Validation,All,"Showing an error before the user finishes typing, or when they only tab past an empty field, says they are wrong too early",Validate a field after the user has entered something and leaves it; report empty required fields on submit; keep as-you-type feedback for rules people need while typing such as password requirements or character limits,"Validate on focus, on the first keystrokes of a new entry, or when an untouched empty field loses focus",onBlur: if (value.trim() !== '') validateField(name); onSubmit: validateAll();,onFocus or first onChange: showError('Email is invalid'),Medium
134
+ 133,Forms,Preserve Input After Failed Submit,All,Clearing or resetting the form after a validation or server error loses the user's input and forces re-entry,"Show the form again with every value as the user entered it, both passing and failing (secret fields such as passwords may be left empty); mark only the fields that need changes","Call form.reset(), clear the failing fields, or reload an empty form after a validation or server error",catch (err) { setFieldErrors(err.fieldErrors); } // entered values stay in form state,catch (err) { form.reset(); toast('Error'); },High
135
+ 134,Forms,Submit Button Not Pre-Disabled,All,"A submit button disabled until the form is valid hides what is missing, and disabled buttons have poor contrast","Keep submit enabled and validate on click so the errors show what to fix; disable it only while the request is in flight, with a spinner, and send an idempotency key so a double click creates one record","Disable submit until every field passes, or leave it clickable with no in-flight guard","<button type=""submit"" disabled={isSubmitting}>{isSubmitting ? 'Saving…' : 'Save'}</button>","<button type=""submit"" disabled={!isValid}>Save</button>",Medium
136
+ 135,Forms,Unsaved Changes Warning,All,"Leaving a page, closing a dialog or pressing Cancel with unsaved changes silently discards the user's edits","Track a dirty state; while it is set ask before leaving through a router guard, beforeunload for tab close, or the dialog close handler, with clear choices such as Discard changes and Keep editing; skip the prompt when nothing changed or after a successful save","Drop edits without warning, or prompt on every navigation even when nothing changed","window.addEventListener('beforeunload', e => { if (isDirty) { e.preventDefault(); e.returnValue = ''; } });",onCancel={() => router.push('/list')} // unsaved edits are lost,High
137
+ 136,Forms,Forgiving Input Formats,All,"Rejecting valid names, phone numbers or codes over spaces, hyphens, accents or apostrophes creates errors users cannot fix","Normalize before validating: trim leading and trailing whitespace, ignore spaces, hyphens and brackets in numbers and codes, and accept names with accents, hyphens and apostrophes; reject only values that are wrong or ambiguous","Restrict names to A-Z, reject a phone number typed with spaces, or fail a pasted value because of a trailing space","const digits = value.replace(/[\s()-]/g, ''); // then validate digits","<input name=""full-name"" pattern=""[A-Za-z]+"">",Medium
138
+ 137,Forms,Never Block Paste,All,Blocking paste forces retyping and breaks password managers and pasted one-time codes,"Allow paste in every input and textarea, including password, email confirmation and verification code fields; validate the pasted value instead",Cancel paste or drop events to force manual typing,"<input inputmode=""numeric"" autocomplete=""one-time-code"">",<input onPaste={e => e.preventDefault()}>,Medium
139
+ 138,Feedback,Persistent Error Messages,All,"An error message that disappears on a timer, such as an auto-dismissing toast, can vanish before the user reads it or fixes the problem",Keep each error visible until its cause is resolved or the user dismisses it; show form and action errors inline or in a dismissible alert; auto-dismiss only non-critical confirmations that can also be found elsewhere,"Report a failed save, payment or validation only in a toast that closes after a few seconds","<div role=""alert"">Payment failed. Check the card number and try again. <button type=""button"">Dismiss</button></div>","toast.error('Save failed', { duration: 3000 })",High
140
+ 139,Feedback,Actionable Error Messages,All,"An error message such as 'Invalid input', 'Something went wrong' or a raw code does not say in plain language what happened or how to fix it",State what went wrong and how to fix it; reuse the wording of the field label and give the expected format; use the same text inline and in the error summary,"Show raw error codes, stack traces or server messages, blame the user, or use vague text such as 'Invalid' or 'This field is required'",Label: Card number / Error: Enter the 16-digit number on the front of your card,Error 0x0000000643: invalid input,Medium
141
+ 140,Interaction,Undo for Reversible Actions,All,Routine confirmation dialogs such as 'Are you sure?' get clicked through by habit; an undo window keeps reversible actions fast and recoverable,"Apply routine reversible actions such as archive, move or remove at once and offer Undo; keep confirmation for actions that cannot be undone and make it specific with the item name and buttons such as Delete file and Keep file","Ask 'Are you sure?' with Yes and No before every routine action, or delete permanently with neither confirmation nor Undo",Archived 'Q3 report' [Undo],if (confirm('Are you sure?')) archive(item);,Medium
142
+ 141,Accessibility,Modal Dialog Focus,Web,"A modal dialog must move focus inside on open, trap Tab while open and return focus to its opener on close","Move focus into the dialog when it opens; keep Tab and Shift+Tab inside while it is open; close it with Escape; on close return focus to the control that opened it, or to the next logical element if that control is gone","Leave focus on the page behind the dialog, let Tab reach background content, or reset focus to the top of the page after closing","dialog.showModal(); dialog.addEventListener('close', () => opener.focus());","<div class=""modal"" style=""display:block""> with no focus move or Escape handling",High
@@ -0,0 +1,117 @@
1
+ # Common Rules for Professional UI + Pre-Delivery Checklist
2
+
3
+ Load this file before final delivery of native/mobile app UI (iOS/Android/React Native/Flutter), or when the user reports the UI "doesn't look professional" and the cause isn't obvious from the priority table in SKILL.md.
4
+
5
+ **Scope notice:** everything below targets native/mobile app UI. For web/desktop interaction patterns, use `references/quick-reference.md` (stack-agnostic) instead — these tables assume touch targets, safe areas, and platform gesture conventions that don't apply 1:1 to desktop web.
6
+
7
+ These are frequently overlooked issues that make UI look unprofessional.
8
+
9
+ ## Icons & Visual Elements
10
+
11
+ | Rule | Standard | Avoid | Why It Matters |
12
+ |------|----------|--------|----------------|
13
+ | **No Emoji as Structural Icons** | Use vector-based icons (e.g., Lucide, react-native-vector-icons, @expo/vector-icons). | Using emojis (🎨 🚀 ⚙️) for navigation, settings, or system controls. | Emojis are font-dependent, inconsistent across platforms, and cannot be controlled via design tokens. |
14
+ | **Vector-Only Assets** | Use SVG or platform vector icons that scale cleanly and support theming. | Raster PNG icons that blur or pixelate. | Ensures scalability, crisp rendering, and dark/light mode adaptability. |
15
+ | **Contextual Semantics** | Choose semantics from use, not glyph: hide decorative icons beside visible text from the accessibility tree; give meaningful standalone icons a text alternative; give icon controls an accessible name and expose selected/pressed/expanded state when applicable. | Treating one icon name as permanently decorative, meaningful, or interactive. | The same glyph can serve different purposes in different components. |
16
+ | **Stable Interaction States** | Use color, opacity, or elevation transitions for press states without changing layout bounds. | Layout-shifting transforms that move surrounding content or trigger visual jitter. | Prevents unstable interactions and preserves smooth motion/perceived quality on mobile. |
17
+ | **Correct Brand Logos** | Use official brand assets and follow their usage guidelines (spacing, color, clear space). | Guessing logo paths, recoloring unofficially, or modifying proportions. | Prevents brand misuse and ensures legal/platform compliance. |
18
+ | **Consistent Icon Sizing** | Define icon sizes as design tokens (e.g., icon-sm, icon-md = 24pt, icon-lg). | Mixing arbitrary values like 20pt / 24pt / 28pt randomly. | Maintains rhythm and visual hierarchy across the interface. |
19
+ | **Stroke Consistency** | Use a consistent stroke width within the same visual layer (e.g., 1.5px or 2px). | Mixing thick and thin stroke styles arbitrarily. | Inconsistent strokes reduce perceived polish and cohesion. |
20
+ | **Filled vs Outline Discipline** | Use one icon style per hierarchy level. | Mixing filled and outline icons at the same hierarchy level. | Maintains semantic clarity and stylistic coherence. |
21
+ | **Touch Target Minimum** | Use at least 44pt on iOS and 48dp on Android; expand the hit area when the visual icon is smaller. | Small icons without expanded tap area, or one unit reused across platforms. | Matches platform-specific target guidance. |
22
+ | **Icon Alignment** | Align icons to text baseline and maintain consistent padding. | Misaligned icons or inconsistent spacing around them. | Prevents subtle visual imbalance that reduces perceived quality. |
23
+ | **Icon Contrast** | Meaningful icons and control boundaries need at least 3:1 against adjacent colors; decorative icons must not carry information. | Low-contrast icons that carry meaning or state. | Applies the non-text contrast role instead of a text-size rule. |
24
+
25
+ ## Interaction (App)
26
+
27
+ | Rule | Do | Don't |
28
+ |------|----|----- |
29
+ | **Tap feedback** | Provide clear pressed feedback (ripple/opacity/elevation) within 80-150ms | No visual response on tap |
30
+ | **Animation timing** | Use shared tokens chosen for distance, complexity, platform, and user context | One duration/easing copied to every transition |
31
+ | **Accessibility focus** | Ensure screen reader focus order matches visual order and labels are descriptive | Unlabeled controls or confusing focus traversal |
32
+ | **Disabled state clarity** | Use disabled semantics (`disabled`/native disabled props), reduced emphasis, and no tap action | Controls that look tappable but do nothing |
33
+ | **Touch target minimum** | Keep tap areas >=44x44pt (iOS) or >=48x48dp (Android), expand hit area when icon is smaller | Tiny tap targets or icon-only hit areas without padding |
34
+ | **Gesture conflict prevention** | Keep one primary gesture per region and avoid nested tap/drag conflicts | Overlapping gestures causing accidental actions |
35
+ | **Semantic native controls** | Prefer native interactive primitives (`Button`, `Pressable`, platform equivalents) with proper accessibility roles | Generic containers used as primary controls without semantics |
36
+
37
+ ## Light/Dark Mode Contrast
38
+
39
+ | Rule | Do | Don't |
40
+ |------|----|----- |
41
+ | **Surface readability (light)** | Keep cards/surfaces clearly separated from background with sufficient opacity/elevation | Overly transparent surfaces that blur hierarchy |
42
+ | **Text contrast (light)** | Maintain body text contrast >=4.5:1 against light surfaces | Low-contrast gray body text |
43
+ | **Text contrast (dark)** | Maintain normal text contrast >=4.5:1 on dark surfaces; 3:1 is only for large text or non-text UI | Muted normal text that falls below the text threshold |
44
+ | **Border and divider visibility** | Ensure separators are visible in both themes (not just light mode) | Theme-specific borders disappearing in one mode |
45
+ | **State contrast parity** | Keep pressed/focused/disabled states equally distinguishable in light and dark themes | Defining interaction states for one theme only |
46
+ | **Token-driven theming** | Use semantic color tokens mapped per theme across app surfaces/text/icons | Hardcoded per-screen hex values |
47
+ | **Scrim and modal legibility** | Measure the composed result and use a scrim strong enough to isolate foreground content | Reusing one opacity without checking the actual background |
48
+
49
+ ## Layout & Spacing
50
+
51
+ | Rule | Do | Don't |
52
+ |------|----|----- |
53
+ | **Safe-area compliance** | Respect top/bottom safe areas for all fixed headers, tab bars, and CTA bars | Placing fixed UI under notch, status bar, or gesture area |
54
+ | **System bar clearance** | Add spacing for status/navigation bars and gesture home indicator | Let tappable content collide with OS chrome |
55
+ | **Consistent content width** | Keep predictable content width per device class (phone/tablet) | Mixing arbitrary widths between screens |
56
+ | **8dp spacing rhythm** | Use a consistent 4/8dp spacing system for padding/gaps/section spacing | Random spacing increments with no rhythm |
57
+ | **Readable text measure** | Keep long-form text readable on large devices (avoid edge-to-edge paragraphs on tablets) | Full-width long text that hurts readability |
58
+ | **Section spacing hierarchy** | Define clear vertical rhythm tiers (e.g., 16/24/32/48) by hierarchy | Similar UI levels with inconsistent spacing |
59
+ | **Adaptive gutters by breakpoint** | Increase horizontal insets on larger widths and in landscape | Same narrow gutter on all device sizes/orientations |
60
+ | **Scroll and fixed element coexistence** | Add bottom/top content insets so lists are not hidden behind fixed bars | Scroll content obscured by sticky headers/footers |
61
+
62
+ ---
63
+
64
+ ## Pre-Delivery Checklist (canonical — the only one)
65
+
66
+ Before delivering app UI code, verify every item below. Start with the process steps, then the per-area checkboxes.
67
+
68
+ ### Process
69
+ - [ ] Ran only searches relevant to the interface, such as `"keyboard focus modal" --domain ux` for modal keyboard behavior
70
+ - [ ] Reviewed `quick-reference.md` §1–§3 (CRITICAL + HIGH) as a final pass
71
+ - [ ] Tested on 375px (small phone) and in landscape orientation
72
+ - [ ] Verified behavior with **reduced-motion** enabled and **Dynamic Type**/largest system text size
73
+ - [ ] Checked dark mode contrast independently (never assume light-mode values carry over)
74
+ - [ ] Confirmed all touch targets ≥44pt and no content hidden behind safe areas
75
+
76
+ ### Visual Quality
77
+ - [ ] No emojis used as icons (use SVG instead)
78
+ - [ ] All icons come from a consistent icon family and style
79
+ - [ ] Official brand assets are used with correct proportions and clear space
80
+ - [ ] Pressed-state visuals do not shift layout bounds or cause jitter
81
+ - [ ] Semantic theme tokens are used consistently (no ad-hoc per-screen hardcoded colors)
82
+
83
+ ### Interaction
84
+ - [ ] All tappable elements provide clear pressed feedback (ripple/opacity/elevation)
85
+ - [ ] Touch targets meet minimum size (>=44x44pt iOS, >=48x48dp Android)
86
+ - [ ] Micro-interaction timing uses shared, platform-appropriate tokens and remains responsive in context
87
+ - [ ] Disabled states are visually clear and non-interactive
88
+ - [ ] Screen reader focus order matches visual order, and interactive labels are descriptive
89
+ - [ ] Gesture regions avoid nested/conflicting interactions (tap/drag/back-swipe conflicts)
90
+
91
+ ### Light/Dark Mode
92
+ - [ ] Primary text contrast >=4.5:1 in both light and dark mode
93
+ - [ ] Normal primary and secondary text contrast >=4.5:1 in both light and dark mode
94
+ - [ ] Dividers/borders and interaction states are distinguishable in both modes
95
+ - [ ] Modal/drawer scrim is measured against the real background and preserves foreground legibility
96
+ - [ ] Both themes are tested before delivery (not inferred from a single theme)
97
+
98
+ ### Layout
99
+ - [ ] Safe areas are respected for headers, tab bars, and bottom CTA bars
100
+ - [ ] Scroll content is not hidden behind fixed/sticky bars
101
+ - [ ] Verified on small phone, large phone, and tablet (portrait + landscape)
102
+ - [ ] Horizontal insets/gutters adapt correctly by device size and orientation
103
+ - [ ] 4/8dp spacing rhythm is maintained across component, section, and page levels
104
+ - [ ] Long-form text measure remains readable on larger devices (no edge-to-edge paragraphs)
105
+
106
+ ### Accessibility
107
+ - [ ] Decorative icons beside visible text are hidden from the accessibility tree (`aria-hidden="true"` on web or the native equivalent)
108
+ - [ ] Meaningful images/icons without equivalent visible text have a text alternative
109
+ - [ ] Icon controls have an accessible name and announce applicable selected/pressed/expanded state
110
+ - [ ] Form fields have labels, hints, and clear error messages
111
+ - [ ] Color is not the only indicator
112
+ - [ ] Reduced motion and dynamic text size are supported without layout breakage
113
+ - [ ] Sticky UI and overlays do not obscure keyboard focus
114
+ - [ ] Dragging and swipe-only interactions have button/keyboard alternatives
115
+ - [ ] Authentication allows password managers and paste, with a non-cognitive alternative
116
+ - [ ] Auto-rotating content has pause/stop controls and stops on focus or reduced motion
117
+ - [ ] Failed forms retain inline field errors; multi-error forms also focus a linked error summary after submit