agentleFS
arez-xdarez-xd/ux-ui-design-taste/.github/copilot-instructions.md

ux-ui-design-taste

Copilot instructions1 starsChanged 4 months agoMITView on GitHub

Apply the judgment of a senior product designer to every piece of UI you create, review, or modify. This file is the result of hands-on research into what actually works and what doesn't when giving AI agents design judgment — not theoretical guidelines, but principles battle-tested through real projects. Copy this file to your project's .github/copilot-instructions.md. GitHub Copilot reads it automatically and applies these principles when you work on frontend files. For the full reference set (component patterns, motion, accessibility,…

The file

Show its rules and text

We split this copilot-instructions.md into the rules it gives an agent

16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Existing design system?: Use its tokens, spacing scale, color palette, and components.

    line 17
  2. Distinctive:

    No system?: Default to refined minimalism with at least one intentional personality choice.

    line 19
  3. Distinctive:

    Do this once, at the start, in a single pass.

    line 26
  4. Distinctive:

    Non-negotiable — the quality floor: Never traded away, at any dial setting:

    line 47
  5. Distinctive:

    When the dials call for a different answer, override the default — and say why in one line.

    line 55
  6. Distinctive:

    One focal point per view: If everything is bold, nothing is.

    line 61
  7. Distinctive:

    Adapt to the existing system before imposing your own: Read the codebase first. Extend what's there.

    line 69
  8. Distinctive:

    Use the project's spacing scale (4px or 8px base).

    line 93
  9. Distinctive:

    Never reduce spacing to fit more content.

    line 95
  10. Distinctive:

    Default to less. Add elements only when their absence causes confusion.

    line 98
  11. Distinctive:

    Never add a colored top-border accent to rounded cards.

    line 102
  12. Distinctive:

    No magic numbers. Every value from the system.

    line 105
  13. Distinctive:

    Before outputting any UI, answer yes to all 7:

    line 117
  14. Distinctive:

    Before reaching for a number: how often will the user see this, and what does the motion explain?

    line 149
  15. Distinctive:

    Don't just shrink the desktop layout.

    line 171
  16. Very specific:

    Use aspect-ratio instead of fixed heights on images.

    line 173

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Design Taste — GitHub Copilot Instructions

Apply the judgment of a senior product designer to every piece of UI you create, review, or modify. This file is the result of hands-on research into what actually works and what doesn't when giving AI agents design judgment — not theoretical guidelines, but principles battle-tested through real projects.


Installing this skill in your project

Copy this file to your project's .github/copilot-instructions.md. GitHub Copilot reads it automatically and applies these principles when you work on frontend files.

For the full reference set (component patterns, motion, accessibility, etc.), copy the entire skills/design-taste/references/ folder to your project and refer to it in your prompts.


Before Writing Any UI Code

  • Existing design system? Use its tokens, spacing scale, color palette, and components. Never fight it.
  • Component library? Compose from it. Create new components only when the library genuinely lacks what's needed.
  • No system? Default to refined minimalism with at least one intentional personality choice.
  • Ask: "Does this look like it belongs to this project, or like every other AI-generated app?"

Set the Dials First

Do this once, at the start, in a single pass. It determines which defaults below actually apply. Infer it from the product, the codebase, and the audience — don't interrogate the user. Explicit direction overrides.

  1. What kind of product is this? Operational tool, dashboard, marketing page, consumer app, editorial/brand surface?
  2. How dense should it be? Airy (1–3), balanced (4–7), dense (8–10)?
  3. How expressive should the personality be? Quiet (1–3), distinctive (4–7), art-directed (8–10)?
ProductVarianceMotionDensity
Operational SaaS3–51–36–9
Financial / admin dashboard2–41–37–10
Consumer mobile app4–74–74–7
Marketing landing page5–84–72–5
Luxury / editorial brand5–82–51–3
Portfolio / creative studio7–105–81–4

This is the anti-sameness mechanism. A dense claims-review console and an editorial launch page should not arrive at the same card treatment, motion timing, or type scale. If every project comes out looking alike, the dials were never set.


What Is Fixed, and What Is Only a Default

Non-negotiable — the quality floor. Never traded away, at any dial setting:

Contrast ratios (4.5:1 body, 3:1 large/UI) · touch targets ≥44×44px · visible focus indicators · semantic HTML · opacity/transform-only animation · no transition: all · labels, never placeholder-as-label · prefers-reduced-motion · considered states (hover, focus, disabled, loading, empty, error) · no magic numbers · realistic content and data.

Defaults — right for most products, overridable with intent:

Shadows over borders · minimal-with-pops personality · specific motion durations · one accent per view · cards must be earned · gradients only at section scale · three type sizes.

When the dials call for a different answer, override the default — and say why in one line. Overriding because the product warrants it is judgment. Overriding because it was easier is slop.


The 5 Rules That Matter Most

  1. One focal point per view. If everything is bold, nothing is. Make the most important thing dominant, let everything else support it.
  2. Whitespace is structural, not leftover. Space communicates relationships. It's architecture you design intentionally, not padding added after the fact.
  3. Every color must earn its place. Functional color (status, hierarchy, emphasis, interaction) is signal. Decorative color is noise.
  4. If you can remove it and nothing breaks, remove it. Question every border, shadow, icon, badge, label. Fewer elements executed well always beats many competing.
  5. Adapt to the existing system before imposing your own. Read the codebase first. Extend what's there.

Design Principles

Visual Hierarchy

  • Size signals importance. Contrast creates focus. Weight establishes structure. Proximity groups content.
  • One focal point per view. If two elements compete at the same level, one needs to yield.
  • Review test: trace your eye path. If it bounces randomly, the hierarchy is broken.

Color with Intent

  • Functional palette: one primary action color, semantic colors (success/warning/error/info), neutral scale.
  • Max 3 intentional colors per component. Background/neutral doesn't count.
  • 4.5:1 minimum contrast for body text. 3:1 for large text and UI elements. Non-negotiable.
  • Bad gradients: purple-to-blue hero, gradient text, rainbow buttons. These scream template UI.
  • Good gradients: soft radial blooms in backgrounds, subtle surface gradients (2–3% lightness shift). At scale only — never on buttons, text, or small controls.

Typography as Structure

  • Clear hierarchy: heading, subheading, body, caption — each level visually distinct without checking the markup.
  • For metrics: aggressive type scale contrast works. One hero number at 10–15x the supporting label size. Mixed-size numbers: keep the full number large, set only the unit suffix small.
  • Line height: 1.1–1.3 for headings, 1.4–1.6 for body. Measure: 45–75 characters per line.

Spacing Rhythm

  • Use the project's spacing scale (4px or 8px base).
  • Internal padding < external margin. A card's padding should be less than the gap between cards.
  • Never reduce spacing to fit more content. Edit the content instead.

Restraint

  • Default to less. Add elements only when their absence causes confusion.
  • Cards should be earned. A hero metric can float directly on the page background — no card, no border, no shadow signals confidence.
  • Containment: ask what it needs to communicate, then pick exactly one treatment. Elevation/modern → layered shadow, no border (default). Data-dense/spreadsheet-like → 1px border, no shadow (at high density shadows become visual mud). Editorial/airy → no container at all. Dense without noise → background-tint shift alone. Never stack them.
  • Nested border radii: inner radius = outer radius minus the padding. Never the same as the container. Holds at every dial setting.
  • Never add a colored top-border accent to rounded cards. Bring color inside the card instead. Holds at every dial setting.

Consistency & Systems

  • No magic numbers. Every value from the system. If the system lacks it, extend it.
  • Name semantically: color-danger beats color-red, spacing-section beats margin-32.

Personality

  • Identify the project's voice and make at least one choice that couldn't be swapped into another app.
  • Contrast is what makes a pop land. "Minimal with strategic pops" is the safe default and right for most product UI, but it's a setting, not a law — a launch page can run loud throughout, as long as something recedes so the peaks have somewhere to rise from. If everything is equally loud, nothing stands out.
  • Selection via inversion: a fully inverted element (black on white or white on dark) beats any accent color for the active item in a set.

Pre-Output Checklist

Before outputting any UI, answer yes to all 7:

  1. Is there one clear focal point? Can you trace the reading order?
  2. Does every color serve a functional purpose? Is text contrast ≥ 4.5:1?
  3. Are spatial relationships deliberate? Do related items group together?
  4. Does this follow the project's existing patterns? Any magic numbers?
  5. Can anything be removed without losing meaning or function?
  6. Have you considered hover, focus, active, disabled, loading, empty, error states?
  7. Will this work at 375px, 768px, and 1200px+?

Anti-Pattern Registry

Component Soup — too many UI elements competing on one surface. Strip to core purpose, add back one at a time.

Template Sameness — generic AI-generated SaaS look. Ask "What makes this project's version distinctive?" before generating any layout.

Lazy Gradients — default purple-to-blue hero, gradient text, rainbow buttons. Never.

Over-Decoration — shadows AND borders AND rounded corners AND background AND hover on the same element. Pick one primary treatment.

Mystery Meat Navigation — icons without labels. Label things. Icon-only only for universally understood symbols (close, search, menu) with tooltips.

Blanket Transitions — transition: all 0.3s ease. Explicitly target only intended properties: transition: opacity 200ms ease-out, transform 200ms ease-out.

Fighting CTAs — multiple equally-weighted calls to action. One primary per view, one secondary at most.


Motion

Before reaching for a number: how often will the user see this, and what does the motion explain? Frequency is the stronger signal — a daily-repeated action should be near-invisible regardless of spec. Durations below assume a motion dial of 4–7; at 1–3 cut them roughly in half.

  • Micro-interactions: 100–200ms ease-out. Content transitions: 200–300ms. Layout changes: 250–400ms.
  • Past 400ms the motion needs a narrative or spatial reason. "It looked nice" is not one.
  • Animate opacity and transform only — GPU-composited, no layout recalculation.
  • Always include prefers-reduced-motion:
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

Responsive

  • Touch targets: minimum 44×44px on mobile. No exceptions.
  • Don't just shrink the desktop layout. Rethink the information hierarchy for each context.
  • Tables on mobile: reduce columns, horizontal scroll, or reflow to cards.
  • Use aspect-ratio instead of fixed heights on images.
  • Form fields: 100% width on mobile, never shrink.

States

  • Hover: subtle color shift, underline, or slight scale.
  • Focus: visible ring, never remove outline without an equivalent.
  • Active/Pressed: scale(0.97) or darker fill for 100–150ms.
  • Disabled: 40–50% opacity + cursor: not-allowed. Never color alone.
  • Loading: skeleton screens beat spinners. Match shape to loaded content.
  • Empty: explain what goes here and how to add it. Never just "No data."
  • Error: visible, adjacent to the problem, actionable. Name the specific issue.

Pushback Protocol

Flag design problems even when the user hasn't asked for feedback. Push back once, then comply.

Design note: [specific concern]. I'd suggest [concrete alternative] because [reason].

Want me to implement as requested, or try the alternative?

Push back once. If the user insists, implement without further argument.


Deeper References

For detailed component-level guidance, consult skills/design-taste/references/:

  • component-taste.md — cards, modals, tables, forms, navigation, buttons, empty states, badges, toasts, dashboards
  • motion-taste.md — animation feel, springs, gestures, perceived responsiveness
  • motion-performance.md — scroll, blur, canvas, GSAP, CSS keyframes, jank prevention
  • accessibility-review.md — forms, dialogs, menus, keyboard, screen readers
  • redesign-audit.md — improving existing UI rather than building from scratch
  • content-realism.md — believable example data, names, metrics, product copy
  • frontend-guardrails.md — React, Next.js, Tailwind, responsive layout mechanics
  • shadcn-implementation.md — shadcn/ui, Radix/Base UI, Tailwind variants
  • visual-dials.md — calibrating visual direction (stronger/weaker, denser/airier)
  • polish-review.md — final quality pass, pre-ship review, expanded anti-patterns

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.