Make the card stand out with type, not a stripe.

"Cards with a colored stripe" shows up in 9 of the 63 sloppiest sites and 6 of the 167 best-kept. A grep finds it and size and weight replace it.

By @ignapradosTips3 min read

A card with a thick colored line on its left edge (or its top) is one of the first things a model draws when you ask for a "highlighted note" or a "feature card". It works, which is why it turns up everywhere.

Across the 509 sites in the November study, the "Cards with a colored stripe" signal from the Slop Score appears in 40. By group: 9 of the 63 with the most slop and 6 of the 167 best-kept. The gap is small, so it is no verdict. It is a hint that nobody decided which card matters most.

What the rule counts

The Slop Score looks for cards with a heading that carry a colored border on the left or top, or a bar drawn with a pseudo-element that does the same job. One is enough for the signal to appear; more cards weigh more.

In the result you get the element, the side of the stripe, its thickness in pixels and its color. That tells you which class to search for.

Find it in your code

Most of the time it is a 3 or 4 pixel border-left in an accent color. A grep lists each one with its file:

grep -rnE "border-(left|inline-start|top)(-width)?:|border-l-[2-8]|border-t-[2-8]|::before" src/ \
  --include="*.css" --include="*.tsx" --include="*.jsx"

Check each hit: a border-left on a quote or on nested comments can be fine. What you are after is the one repeated on every card in a grid.

One detail: the side depends on direction

If you keep a stripe on a single component, such as a quote, write it with the logical property. According to MDN, border-inline-start is shorthand for border-inline-start-width, -style and -color, and the physical border it maps to depends on the element's writing mode, directionality and text orientation.

border-left always sets the left side. On a site that also reads right to left, the logical stripe follows the text and the other one is left on the wrong side.

What to use instead

The stripe does one job: it says "this card is different". Type hierarchy does it without decoration:

  • A bigger or heavier heading than the other cards.
  • More space around it: the card that matters gets more room.
  • A slightly different background, a gray or a tone of the page, with no colored border.
  • An order: if only one card matters, put it first or make it wide, spanning two columns.
.card {
  padding: 24px;
  border-radius: 12px;
  background: #f6f6f4;
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
}
.card--main {
  grid-column: span 2;
  padding: 32px;
}
.card--main h3 {
  font-size: 28px;
}

The main card is picked out by size, width and air. If you remove the stripe from the rest and they all look the same, the stripe was never the problem: you still have to decide which one leads.

Ask your AI for it like this

Search the project for cards with a colored stripe on their edge
(border-left, border-top, border-inline-start or a bar made with ::before).
Remove it from all of them, except on quotes.
Instead, make the main card stand out with a larger heading,
more padding and, if there is a grid, spanning two columns.
Do not add shadows, gradients or new icons.
On quotes that keep the stripe, use border-inline-start.
At the end tell me which cards you changed.

When it is done, measure your site and check the signal is gone. If you are left with other repeats of the same style, such as identical card grids, there is the guide to fixing it.

Sources

Frequently asked questions

Why do AI-built websites have a colored line on their cards?

It is a cheap way to say "highlighted" that models repeat without deciding what to highlight. The Slop Score flags it in 40 of the 509 sites in the November study.

Should I remove every border-left from my CSS?

No. A quote or a nested comment can carry one for a reason. What you remove is the colored border repeated on every card.