Drop the glow on your buttons and use contrast instead.

A colored halo around a button shows up in 27 of the 63 sloppiest sites and 4 of the 167 best-kept. Fix it with contrast, a crisp border and a focus ring people can see.

By @ignapradosTips3 min read

A button glowing indigo or cyan, a card with a halo behind it: it's the textbook "AI startup" look, and it usually comes from one line of CSS, a heavily blurred colored box-shadow.

In the 509 sites of the November study, the Slop Score's "Colored glow around boxes" signal fires on 59 of them. The split is what matters: it shows up on 27 of the 63 sloppiest sites and 4 of the 167 best-kept.

What counts as a glow

The Slop Score doesn't flag every shadow. It reads each element's box and text shadow and counts it as a glow when the color is saturated, the blur is over 4 pixels and it clearly shows against the background. One more condition applies: either there is no offset (a halo wrapping the element evenly) or it sits on a dark background.

This is how it looks in code:

/* The textbook glow */
.btn-primary {
  background: #6366f1;
  box-shadow: 0 0 40px rgb(99 102 241 / 0.5);
}

A short neutral shadow, the kind that barely lifts a card off the page, doesn't trigger this signal. The color and the halo are what count.

What the glow does, and what to use instead

A glow says "look at me". That's a job for contrast, size and position, and all three work without a shadow.

A black primary button on a light page, or one in your brand color with text that passes 4.5:1, stands out more than one that glows. If it's also the only filled button in its area, it needs nothing around it. If you want depth on a dark page, a one-pixel border slightly lighter than the surface separates boxes without neon.

Don't remove focus, draw it

A lot of glow starts as a focus state: the button lights up when you reach it. :focus-visible handles that better. According to MDN, the selector applies the style when the browser decides focus should be visible, for example during keyboard navigation and not on a mouse click.

MDN also warns that removing focus styles makes keyboard navigation inaccessible for sighted users, and notes the indicator needs at least 3:1 contrast (WCAG 2.1, criterion 1.4.11). So if you delete the glow, keep the focus: swap it for a crisp outline.

.btn-primary {
  background: #111;
  color: #fff;
  border-radius: 10px;
}
.btn-primary:hover { background: #333; }
.btn-primary:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

If you want a ring, make it sharp

box-shadow can also draw a ring with no offset and no blur. According to MDN, the blur radius defaults to 0, which leaves the shadow's edge sharp, and a shadow doesn't change the box's dimensions, so it won't shift the layout.

With blur at 0 it's an outline, not a halo, and it falls outside the glow the Slop Score measures:

.card:focus-within {
  box-shadow: 0 0 0 2px #111;
}

Ask your AI like this

Remove every box-shadow and text-shadow that has a color and blur over 4px.
No halos or color glows on buttons, cards or headings.
Make the primary button stand out with contrast: solid fill in the brand color
with text at 4.5:1 or better, and one filled button per area.
For focus use :focus-visible with outline: 2px solid and outline-offset: 3px,
at least 3:1 contrast against the background. Never remove the outline without replacing it.
On dark backgrounds separate boxes with a 1px border slightly lighter than the surface, no color.

Then measure your site and check the signal is gone. If dark mode also gets flagged for dim gray text, see the post on dark mode contrast; for everything else that happens by default, there's the fix guide.

Sources

Frequently asked questions

Why does a glow on buttons look AI-made?

Because it's a single heavily blurred, colored box-shadow that models repeat. In the November study it appears on 27 of the 63 sloppiest sites and 4 of the 167 best-kept.

How do I remove the glow without losing keyboard focus?

Delete the colored box-shadow and define focus with :focus-visible and a crisp outline with at least 3:1 contrast. Focus shows during keyboard use and there's no halo.