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.
Stays
Hotels and flats near where you’ll be. Pick by area, price or how close you are to the station.
Find a stayDone 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: #0f766eNo shadows
No drop shadows, bevels or glows. Hierarchy comes from colour and size.
box-shadow: noneSimple shapes
Plain rectangles and circles with small or no corner radii.
border-radius: 4pxClean type
Sans-serif type does a lot of the work, with clear sizes and weights.
font-weight: 800The 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.
: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
| Property | A good starting range | What goes wrong outside it |
|---|---|---|
| Palette | 1 primary and 2 to 4 accents | Too many bright colours and nothing stands out. Too few and the page looks like a wireframe. |
| White text on colour | Fills at 4.5:1 or more | Bright yellows, mints and oranges fail with white text. Darken them or switch to dark text. |
border-radius | 0 to 6px | Big radii push it towards other styles such as claymorphism. |
| Secondary buttons | A 2px border | Without 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.
.button--secondary1. 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.
a2. 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.
.card3. White text on bright colour
Bright flat colours often fail with white text. Check every coloured block reaches 4.5:1 for body text.
:focus-visible4. Focus states
With no shadows to change, focus is often forgotten. Tab through and look for a clear outline on every control.
.button:hover5. 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.
[disabled]6. Disabled buttons
A pale disabled button and a pale secondary button can look the same. Check people can tell them apart.
.icon7. Icons without labels
Flat icons are often abstract. Check icon-only buttons have a text label or an accessible name.
.section8. 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.
Send your client a review link for the page.
They click the text they weren’t sure about and say what they expected.
You get the selector, a screenshot and their device, so you can go straight to the right rule in your CSS.
I didn’t realise this was a link until I hovered over it.
desktop · Edge on Windows - 1920 x 1080
.d-card.c1 > .d-linkReviewing 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.