Why AI-generated UI looks the same
"AI slop" UI is not random. It is the predictable result of an under-specified request. When the prompt contains no design decisions, the model fills each one with its most probable value:
- Color: an indigo-to-purple gradient, or flat system blue, on pure white or pure black.
- Surfaces: every group of content in a rounded card with a soft drop shadow, nested two or three deep.
- Type: one font at three or four sizes that are too close together, with bold used for emphasis everywhere.
- Icons: emoji as section markers, or a different icon style on every screen.
- Spacing: 16 points on everything, so nothing is grouped and nothing breathes.
- Copy: "Welcome back!", "Let's get started", a sparkle next to anything involving AI.
Each default is defensible alone. Together they are the look of an app nobody designed. Adjectives do not fix it, because "minimal", "premium" and "playful" each map back to the same averages. A model cannot infer a 54-point row height or a ban on drop shadows from the word "clean".
What works is the same thing that works for human teams: a written design system the implementer must read before touching UI code.
What DESIGN.md is
DESIGN.md is a Markdown file at the project root that holds the app's visual system in a form an agent can follow literally: design tokens as data, and usage rules as prose. It sits beside CLAUDE.md or AGENTS.md and plays the same role for appearance that those files play for behavior.
Two properties make it effective. It is numerical: hex values, point sizes, weights, radii, spacing steps. And it is exclusive: it says what is not allowed. The second matters more than it sounds; an agent that is told only what to use will still add a gradient "for polish".
Anatomy of a high-signal DESIGN.md
Every style in the Stringers library ships a complete file. This is the top of the one for Oat Margin, quoted as published:
---
version: alpha
name: Oat Margin
description: "A reading-first iOS style: warm oat paper edge to edge, warm-grey ink that is never black, one system grotesk doing all the work through size and weight, no cards, no shadows, no filled buttons — and exactly one coral mark per screen. Round identity marks hang alone in a left margin; every line of text starts on one shared edge to their right."
colors:
primary: "#D8523F"
bar-rest: "#CDC8BF"
light:
paper: "#F4F1EB"
well: "#E5E1DC"
hairline: "#DEDAD2"
ink: "#2E2B27"
text: "#3F3B35"
secondary: "#7A7671"
tertiary: "#A39F99"
dark:
paper: "#1C1A17"
well: "#2A2723"
hairline: "#34302B"
ink: "#EDE8DF"
text: "#D6D0C6"
secondary: "#9C968D"
tertiary: "#6F6A63"
typography:
hero-figure: { fontFamily: SF Pro, fontSize: 84px, fontWeight: 700, lineHeight: 1.0, letterSpacing: -2.5px }
reading-title: { fontFamily: SF Pro, fontSize: 34px, fontWeight: 700, lineHeight: 1.12, letterSpacing: -0.7px }
page-title: { fontFamily: SF Pro, fontSize: 33px, fontWeight: 700, lineHeight: 1.15, letterSpacing: -0.6px }
section-head: { fontFamily: SF Pro, fontSize: 20px, fontWeight: 700, lineHeight: 1.2 }
# … 8 more type roles, then rounded: and spacing: scales
---The parts, and what makes each one useful to an agent:
- A one-paragraph description. The whole look in plain words, including what is absent. For Oat Margin: "A reading-first iOS style: warm oat paper edge to edge, warm-grey ink that is never black, one system grotesk doing all the work through size and weight, no cards, no shadows, no filled buttons — and exactly one coral mark per screen. Round identity marks hang alone in a left margin; every line of text starts on one shared edge to their right."
- Color tokens with roles, for light and dark. Named by job (
paper,well,hairline,ink,secondary), not by hue. A role name tells the agent where a color goes; "grey-200" does not. Include both appearances so dark mode is not improvised. - Elevation and surfaces. How layers are separated: hairlines, tonal steps, blur, or shadow, with exact values. This is where "no cards, no shadows" lives.
- A typography scale with roles. Family, size, weight, line height and tracking per role (
reading-title,body,meta,caption). Oat Margin defines 12 roles. Sizes far enough apart to read as a hierarchy. - Radius and spacing scales. A short list of allowed values. If 14 is not on the list, the agent should not use 14.
- Component rules. How a row, a button, a field, a tab bar and an empty state are built from the tokens, with dimensions.
- Do's and Don'ts. The explicit bans: no gradients, no emoji, never pure black, one accent per screen. This list is the highest-leverage section of the file, because it removes the defaults.
The body of the Oat Margin file is organized as: Visual Theme & Atmosphere; Color Palette & Roles; Typography Rules; Component Stylings; Layout Principles; Depth & Elevation; Do's and Don'ts; Responsive Behavior; Agent Prompt Guide.
A weak DESIGN.md is one that could describe any app: "use consistent spacing", "maintain visual hierarchy", "modern and friendly". If a sentence would be true of every design system, delete it.
The workflow, copy and paste
1. Install the skill
npx skills add komako-workshop/stringersThis adds the Stringers skill to Claude Code, Cursor and Codex. It needs no login for design work.
2. Ask for a look
In a new project, or one whose UI you want to replace, say what the app is and ask for a style:
Use Stringers to pick a UI style for this app, then rebuild the home screen in it.The agent reads a compact index of the library, picks three candidates that differ as much as possible while still fitting the app (one natural fit, one in the opposite color mode, one bold option), and sends a comparison link of the form https://stringers.io/en/styles/?pick=oat-margin,amber-roundel,citron-kite. You reply with a number, or with any style name from the full gallery.
3. Lock the file
Once a style is chosen, the spec is downloaded into your repository. You can also do this step by hand:
curl -s https://stringers.io/styles/cards/oat-margin.md -o DESIGN.mdFrom here the file is yours. If you want changes ("swap the coral accent for espresso brown", "we need a tab bar"), record them in a ## Project overrides block directly under the front matter, so the next session sees your decisions before the original ones.
4. Make the agent read it every time
A design file only works if it is in context when UI code is written. In Claude Code, add this to CLAUDE.md:
## UI
- Before writing or editing any UI code, read DESIGN.md in full.
- Use only the colors, type roles, radii and spacing steps it defines. Do not introduce new values.
- All tokens live in one file (Theme.swift / src/theme/tokens.ts). Screens reference tokens, never literals.
- Follow the "Never" / Don'ts list in DESIGN.md even when a default component looks different.
- After a UI change, re-check the result against DESIGN.md and fix any drift before reporting done.In Cursor, put the same rules in .cursor/rules/design.mdc and scope them to your UI files:
---
description: Visual system. Applies to all UI code.
globs: ["**/*.swift", "**/*.tsx", "**/*.dart"]
alwaysApply: false
---
Read DESIGN.md at the repository root before editing UI. Use only its tokens. Obey its Don'ts list.5. Generate one tokens file first
Ask for the theme file before any screen: Theme.swift for SwiftUI, src/theme/tokens.ts for React Native, a ThemeExtension for Flutter. When every screen imports tokens from one place, a later change to the system is a one-file edit, and a stray literal color is easy to spot in review. The SwiftUI version of this step is worked through in SwiftUI UI design styles.
6. Check the result against the file
If a simulator or preview is available, have the agent take a screenshot and compare it with the spec and the style's four reference screens: density, row heights, where the accent appears. Where no preview exists, a static pass over the tokens and the Don'ts list still catches most drift.
Eight styles to start from
Each is a curated design system with reference screens and a full DESIGN.md. The swatches are the style's real palette.
NativeClear glass over a quiet canvas
Graphite QueryGraphite grid, light sans, one italic serif word, teal action
Ivory TideSerif prompts on ivory, a sky tide rising below
Porcelain DeckA stacked deck of hairline decision cards on warm porcelain
Mint CloverLuminous mint ring and serif prompts on obsidian black
Linen CobaltWarm linen paper and soft sand cards accented in cobalt blue
Lemon PrimerBauhaus primaries: lemon blob, heavy black type, primary dots
Lunar LedgerOne lit moon over a dotted monospace ledger on black
Keeping DESIGN.md useful over time
- Treat it as source, not documentation. Change the file first, then the code.
- Keep it short enough to be read in full. A few hundred lines. Move rarely needed detail into linked files.
- Record decisions with reasons in the overrides block ("tab bar added: five top-level destinations").
- Do not let two systems coexist. If you change style, replace the file and the tokens file together.
- Review UI diffs for literals. A hex value or a bare number in a view is a sign the system was bypassed.
For palettes by mood, see minimalist light styles and dark mode styles.