ClickNote
ClickNote
Try the live demoStart free trial

The demo needs no sign-up. The trial needs no card.

Open dashboard
Choose a plan
Dashboard
Start free trial

The trial needs no card.

Web design styles - clean and structured

Flat web design

Flat design uses solid colour, simple shapes and clean type, with no shadows, textures or gradients. It took over in the early 2010s, when Microsoft’s Metro design and Apple’s iOS 7 moved away from skeuomorphism, and it’s still the base most modern interfaces are built on. It’s simple to build, and its main risk is that clickable things look exactly like everything else.

A live example

This sample page is built with this page’s own CSS. Switch to the common mistake to see how easily flat buttons and links turn into labels.

Spring trips

Plan your next weekend away

Pick a city, choose your dates and we’ll put the whole trip in one place.

Flights

Compare times and fares in one list.

Search flights

Stays

Hotels and flats near where you’ll be. Pick by area, price or how close you are to the station.

Find a stay

Things to do

Tours, tables and tickets, booked ahead.

Browse ideas

Done well: buttons are solid blocks or have a visible border, links are underlined, and every coloured card is dark enough for white text.

What makes it flat design

Solid colour

Flat fills with no gradients, often a small, bright palette.

background: #0f766e

No shadows

No drop shadows, bevels or glows. Hierarchy comes from colour and size.

box-shadow: none

Simple shapes

Plain rectangles and circles with small or no corner radii.

border-radius: 4px

Clean type

Sans-serif type does a lot of the work, with clear sizes and weights.

font-weight: 800

The CSS

Flat CSS is short. What matters is keeping the things that tell people what’s clickable: a border on secondary buttons, underlines on links, and a visible focus state.

flat-design.css
:root {
  --primary: #1d4ed8;
  --text: #1f2937;
}

.card {
  background: #0f766e;   /* dark enough for white text */
  color: #ffffff;
  border-radius: 4px;
  box-shadow: none;
}

.button {
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--primary);
  border-radius: 4px;
  padding: 12px 20px;
}

.button--secondary {
  background: transparent;
  color: var(--primary);   /* the border is what makes it a button */
}

.button:not(.button--secondary):hover {
  background: #1e40af;
  border-color: #1e40af;
}

/* Links keep an underline, because colour alone isn't enough */
a { color: var(--primary); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

Tuning the values

PropertyA good starting rangeWhat goes wrong outside it
Palette1 primary and 2 to 4 accentsToo many bright colours and nothing stands out. Too few and the page looks like a wireframe.
White text on colourFills at 4.5:1 or moreBright yellows, mints and oranges fail with white text. Darken them or switch to dark text.
border-radius0 to 6pxBig radii push it towards other styles such as claymorphism.
Secondary buttonsA 2px borderWithout a border, a text button looks like a label.

When it works

  • Almost anything. It’s the safest base for business sites, apps and ecommerce.
  • Interfaces that need to load fast and scale across many screens.
  • Brands with a strong colour palette and good type.

When to avoid it

  • Very complex interfaces, where a little depth helps show layers such as menus and dialogs.
  • Brands that need to feel rich or tactile, such as luxury products.
  • Audiences less used to the web, who rely more on obvious cues about what’s clickable.

Where it went next

Flat 2.0 and semi-flat design

Fully flat interfaces made it hard to tell what was clickable, so most teams added a little depth back. This is often called flat 2.0 or semi-flat design: mostly flat colour, with subtle shadows on things that float or can be pressed. Google’s Material Design is the best-known example.

  • Shadows on floating things only

    Menus, dialogs and sticky headers get a soft shadow so you can see they sit above the page.

  • Keep fills flat

    Buttons and cards stay solid colour, with no gradients.

  • Use state colours

    Hover and pressed states darken the fill, so buttons feel responsive without any depth.

  • Keep the underline

    Links stay underlined in body text, which is the cheapest cue there is.

What to check when you review a flat design site

Flat design hides its problems in plain sight. Most of them are about whether people can tell what they’re meant to click.

  1. .button--secondary

    1. Buttons that look like labels

    A text button with no border or fill looks like a heading. Check every button has a fill or a visible border.

  2. a

    2. Links without underlines

    Coloured text alone isn’t enough to show a link, especially for people with colour blindness. Check links in body text are underlined.

  3. .card

    3. White text on bright colour

    Bright flat colours often fail with white text. Check every coloured block reaches 4.5:1 for body text.

  4. :focus-visible

    4. Focus states

    With no shadows to change, focus is often forgotten. Tab through and look for a clear outline on every control.

  5. .button:hover

    5. Hover and pressed states

    Flat buttons with no hover or pressed state feel broken. Check each one changes when you point at it and press it.

  6. [disabled]

    6. Disabled buttons

    A pale disabled button and a pale secondary button can look the same. Check people can tell them apart.

  7. .icon

    7. Icons without labels

    Flat icons are often abstract. Check icon-only buttons have a text label or an accessible name.

  8. .section

    8. Sections that run together

    With no shadows or borders, sections can merge. Check there’s enough space or colour change between them.

Reviewing with clients

Notes on the link nobody saw

When something isn’t obviously clickable, clients don’t report it. They just don’t click it. A review round is the best chance to catch that. With ClickNote, clients click directly on elements of the website and leave a note, without creating an account or installing a browser extension.

  1. Send your client a review link for the page.

  2. They click the text they weren’t sure about and say what they expected.

  3. You get the selector, a screenshot and their device, so you can go straight to the right rule in your CSS.

Note 1Open

I didn’t realise this was a link until I hovered over it.

desktop · Edge on Windows - 1920 x 1080

.d-card.c1 > .d-link
A client’s note pinned to the exact link, with its selector.

Reviewing a site in one of these styles?

Send your client a review link and they can click directly on elements of the website and leave a note, without creating an account or installing a browser extension. You get the selector, a screenshot and their device with every note.

14-day free trial. No card needed. See pricing.

Live demo

Try the live demo

We will set up a demo account for you.