Skip to Content

the same quiet tile system, but filtered through design principles and css takeaways.

Each tile points to a snippet when there is one. Open the demo if you want to edit the code, or jump to Laws of UX for the source principle.

principles_and_takeaways
  • Animate the Unanimatable preview

    Aesthetic-Usability Effect

    Use design tokens (CSS custom properties) for color, type scale, and spacing so the UI feels consistent and polished. Consistency reads as quality.

  • Keep Feedback Under 400ms preview

    Doherty Threshold

    Keep transition and animation duration under ~300–400ms for hover, focus, and toggle feedback so the system feels responsive.

  • Hit Area and Target Size preview

    Fitts's Law

    Use min-height/min-width (e.g. 44px for touch), padding to grow hit area without changing visual size, and gap to separate targets.

  • Group With Spacing preview

    Law of Proximity

    Use gap in flex/grid and margin to group related elements and separate groups. Spacing encodes hierarchy.

  • Define Regions With Boundaries preview

    Law of Common Region

    Use background, border, border-radius, or box-shadow to create regions (cards, sections, modals) so grouping is obvious.

  • Define Regions With Boundaries preview

    Miller's Law (Chunking)

    Chunk with layout: use grid/flex + gap and borders or backgrounds to create 5–9 clear chunks (e.g. form sections, list groups).

  • Smooth Exit Transitions preview

    Peak-End Rule

    Add a short transition on exit (e.g. transition on state change) so the end of an interaction feels intentional, not abrupt.

  • Make the Primary Action Stand Out preview

    Von Restorff Effect

    Style the primary CTA with contrast (color, font-weight, size, box-shadow); keep secondary actions visually similar.