Flat design for the web

Flat design is a minimal UI style that uses solid colours, simple shapes and clear type, with no gradients, textures or realistic shadows. Every element is two-dimensional, and colour and layout alone carry the hierarchy.

An example of flat design, drawn by Ping. Every colour, radius and shadow in it is written into the prompt below.

What is flat design?

Flat design is a minimal UI style that uses solid colours, simple shapes and clear type, with no gradients, textures or realistic shadows. Every element is two-dimensional, and colour and layout alone carry the hierarchy.

Flat design took over in the early 2010s as a reaction against skeuomorphism. Microsoft's Windows Phone design language and Apple's iOS 7 redesign in 2013 made it mainstream, and bright "flat UI" palettes spread across the web. It is fast to load, easy to read and scales well, which is why most modern interfaces are still flat underneath.

How to spot it

  • Solid fills only: no gradients, textures or bevels
  • No drop shadows; depth comes from colour and position
  • A bright palette of saturated colours on a pale grey page
  • Simple, clean sans-serif type
  • Simple icons and shapes with small, consistent radii
Works well for
Apps, dashboards, onboarding, infographics, education and any product that has to stay clear at every screen size.
Think twice for
Brands that want texture, warmth or luxury, unless the colour and type carry that on their own.

The flat design prompt

Paste it into Claude, Cursor, v0, Lovable, Bolt or any AI builder, in the project you already have open. It restyles what is there and keeps your content, features and SEO. There is nothing to fill in.

Restyle my project in the Flat design style. Change how it looks, not what it does. If this project is still empty, treat this as the design direction for a new site and ask me what it is for before you start.

The style in one line: Solid, bright colour blocks, simple shapes and clean type, with no gradients, textures or shadows anywhere.

LOOK AND FEEL
Clean, bright and direct. Solid colour blocks and simple shapes, with nothing pretending to be three-dimensional. Clarity first, with colour bringing the energy.

COLOUR
- Page: pale grey #ECF0F1. Cards: white #FFFFFF.
- Dark blocks: midnight blue #2C3E50 with white text, and #D5DBDD for secondary text.
- Accents: turquoise #1ABC9C, blue #3498DB, purple #9B59B6, yellow #F1C40F and red #E74C3C, used as solid fills for charts, icons and highlights.
- Where white text sits on a colour, use a darker shade so it passes contrast: #117A65 for turquoise, #2471A3 for blue and #C0392B for red.
- Off states: grey #BDC3C7.

TYPOGRAPHY
- A clean sans-serif such as Inter, Lato or Source Sans 3. Headings weight 650, body weight 400 at 16px.
- No text effects: no shadows, outlines or gradients.

SURFACES
- Cards and buttons: solid fills, radius 6 to 12px, no shadow and no border.
- Separate areas with colour and space, not lines or shadows.
- Charts: solid bars with small rounded tops, cycling through the accent colours.

COMPONENTS
- Buttons: solid fills with white text. Primary is blue #2471A3. On a coloured card, the primary button is white with the card's colour as text.
- Switches: a grey track when off and turquoise when on, with a white knob.
- Icons: simple, solid, one colour, on the same pixel grid.
- Inputs: white with a 2px solid border that turns blue on focus.

MOTION
- Simple, quick transitions: colour changes and fades of about 150ms, and slides of 200ms for panels.
- Hover darkens a fill by one step; nothing scales or bounces.

AVOID
- Any gradient, texture, bevel or drop shadow.
- White text on the light accent shades (turquoise, yellow, light blue). Use the darker shade or dark text.
- Using all five accents on one screen. Pick one or two per view and keep the rest for charts.

GROUND RULES
- Keep my copy, logo and images as they are, and use tasteful placeholders only where something is missing.
- Do not break anything. Every page, link, form, integration and feature must keep working exactly as it does now.
- Leave my SEO alone: page titles, meta tags, heading structure, URLs and structured data stay as they are.
- Put the colours, radii and shadows into CSS variables or theme tokens first, then use only those tokens.
- Make it fully responsive, with a mobile layout that is as considered as the desktop one.
- Keep it accessible: semantic HTML, visible focus states, and body text contrast of at least 4.5:1, even where the style tempts you to go fainter.
- Work through it one section at a time and tell me what you changed.

Real sites with a related look: fun, playful website design , illustrated website design .

More design styles

See all design styles