Skip to content
OddsockLocal
Local
Base color#427f9c
Border width (px)3
Shadow offset (px)6
Corner radius (px)8
Base color#427f9c
Border width (px)3
Shadow offset (px)6
Corner radius (px)8
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Choose the fill, the border width, the offset, and the radius.
  2. Copy both the resting rule and the active rule. The press depends on the offset matching the translate.
  3. Put the block on a light background so the black shadow reads.
  4. Check that the shadow is not clipped by a parent.

What is Neo-brutalist CSS?

Neo-brutalist blocks are a flat fill, a heavy black border, and a shadow that is a shifted copy of the shape with no blur. The page writes a .brutal rule and a .brutal:active rule. The opening color #427f9c, a 3px border, an 8px radius, and a 6px offset produce a black label (because that teal prefers black text), border 3px solid #111, and box-shadow 6px 6px 0 #111. On press, the element translates by the same 6px and the shadow disappears, so the block looks like it sat down onto the offset.

Read more

The shadow color is black, not a tint of the fill. If your page background is also near black, the offset vanishes. Use a light page color behind it. Radius can go soft, but a large radius with a hard shadow starts to look like a sticker rather than a rubber stamp. The active state uses transform, so a parent with overflow hidden can clip the resting shadow. Leave room.

This is one opinionated component. The box-shadow page is where you stack arbitrary layers, blurs, and spreads.

Use cases

  • A poster-like signup block needs a hard shadow and a press that eats the offset.
  • A design experiment compares a 3px border with a 6px border on the same fill.
  • A portfolio tile uses the press state as the only interaction cue.
  • A workshop slide shows translate matching the shadow so the illusion holds.
  • A brand that already has a teal tries it as a stamp instead of a soft card.

Teal block, 6px black offset

Base #427f9c, border 3px, shadow offset 6px, radius 8px.

.brutal { background: #427f9c; color: #000000; border: 3px solid #111; border-radius: 8px; box-shadow: 6px 6px 0 #111; } .brutal:active { transform: translate(6px, 6px); box-shadow: none; }

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

The active rule translates by the same offset as the shadow and then removes the shadow. If those numbers diverge, the block appears to jump past its own shadow.