Neo-Brutalism Generator

Pick a colour scheme, set the border and the shadow offset, and choose how the element moves on hover. The preview shows it at rest, on hover and with keyboard focus.

How it works

Neo-brutalism uses flat, bright colour, a thick dark border and a hard shadow with no blur, offset down and to the right. It looks printed and physical, the opposite of soft gradients and glass.

One ink colour does three jobs here: the border, the shadow and the text. That keeps the look consistent, and it means the text contrast is one number, ink on fill, which the tool measures.

On hover, Press in moves the element halfway into its shadow and shrinks the shadow to match, so it looks like a key going down. Clicking pushes it the rest of the way. Lift up does the reverse. Both use transform, which moves the element without shifting the layout around it.

The CSS includes a :focus-visible outline in the ink colour, set off from the shadow, so keyboard users can see where they are. It also turns the movement off for people who have asked their system for reduced motion.

How to use it

  1. 1 Pick a colour scheme from the presets.
  2. 2 Set the fill and the ink colour, and check the text contrast line.
  3. 3 Adjust the border width, shadow offset and corner radius, and choose what happens on hover.
  4. 4 Press Copy CSS and add the .brutal class to your button or card.

Good to know

  • Bright fills with a near-black ink pass contrast easily. The Lemon preset, #111111 on #ffde59, measures 14.24:1.
  • Keep the shadow offset between 4 and 8 pixels. Smaller looks like a mistake; larger starts to look like a second box.
  • Use the same offset on every element on a page. Mixed offsets make the light look like it comes from several places.
  • For a non-clickable card, keep the look and drop the hover by choosing Stay still.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

How the press effect works, pixel by pixel

Take the Lemon preset: fill #ffde59, ink #111111, a 3px border and a 6px offset. At rest the CSS is box-shadow: 6px 6px 0 0 #111111. The shadow is an exact copy of the box, not blurred and not grown, moved 6 pixels right and 6 pixels down. Because the blur is zero, it has a hard edge, and it reads as a solid block under the button rather than a shadow cast by light.

On hover with Press in, two things change together. transform: translate(3px, 3px) moves the button 3 pixels right and down, halfway towards its shadow. At the same time the shadow becomes 3px 3px 0 0. The shadow is measured from the button, so it also moved 3 pixels with it, and its new offset of 3 puts it back where it was: the far edge of the black block stays put on the page. Only the button has sunk into it. On click, :active moves the button the full 6 pixels and removes the shadow, so the button sits exactly where the block was, fully pressed.

transform is the right property for this because it does not touch layout. Moving the button with margin or top would push its neighbours around on every hover. A transform is applied after layout, so the page stays still, and browsers can animate it smoothly. The transition is 0.1 seconds, short enough to feel like a click rather than an animation.

Focus needs its own rule. A neo-brutal button already has a black border, so a browser's default focus ring can be hard to spot against it. The CSS adds outline: 3px solid in the ink colour with a 4px offset, which draws a second ring clear of the border and the shadow. It applies on :focus-visible, which browsers show for keyboard focus and usually not for a mouse click.

The limits. One ink colour for text, border and shadow keeps things simple, but it means the text contrast depends entirely on the fill: yellow ink on white, for example, measures 1.32:1 and fails. The tool shows that number; it does not pick colours for you. A hover effect also means nothing on a touch screen, so do not hide anything important behind it. And the hard shadow sits outside the box, so leave room for it in tight layouts.

Frequently asked questions

What is neo-brutalism in web design?

A style built from flat saturated colour, thick black borders, hard shadows with no blur and plain, heavy type. It borrows the bluntness of brutalist web design and adds colour and playful movement.

Why does the button move into its shadow?

Because that is what a physical key does. Moving the element by the shadow offset while shrinking the shadow makes it look pressed down onto the page. The movement uses transform, so nothing around it shifts.

Is the hover movement a problem for motion-sensitive people?

The movement is a few pixels, but the CSS still includes a prefers-reduced-motion rule that turns the transition off, so the change is instant for people who ask for less motion.

Is anything uploaded?

No. The CSS is written by code running in this page, and your browser draws the preview.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.