Web design styles - clean and structured
Material design
Material Design is Google’s open-source design system, first launched in 2014 and now in its third version, Material 3, which introduced the personalised "Material You" colours in 2021. It uses tonal surfaces, rounded shapes, clear elevation and a consistent set of components. Google’s own documentation is the full reference. This guide is a quick visual summary, the CSS behind the look, and what to check when you review a site built with it.
A live example
This sample page uses Material 3-style colour, shape and elevation in plain CSS. Switch to the common mistake to see what happens when elevation and tonal colour are used inconsistently.
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: tonal surfaces in one purple family, cards with the same low elevation, a filled main button and an outlined secondary one.
What makes it Material design
Tonal colour
Surfaces and buttons are tints and shades of one key colour.
#6750a4, #eaddff, #f3edf7Elevation
Shadows and tone show how far an element is above the page.
box-shadow: 0 1px 2px, 0 1px 3px 1pxRounded shapes
A consistent scale of corner radii, from small chips to large sheets.
border-radius: 12px / 20px / 28pxStandard components
Buttons, cards, chips and navigation that behave the same everywhere.
filled, outlined, text buttonsThe CSS
These custom properties mirror Material 3’s colour roles, so you can map them to Google’s tokens or your own brand. The elevation and shape values follow the same pattern.
:root {
--md-primary: #6750a4;
--md-on-primary: #ffffff;
--md-primary-container: #eaddff;
--md-surface: #fef7ff;
--md-surface-container: #f3edf7;
--md-on-surface: #1d1b20;
--md-on-surface-variant: #49454f;
--md-outline: #79747e;
--md-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
--md-shape-medium: 12px;
--md-shape-large: 28px;
}
body { background: var(--md-surface); color: var(--md-on-surface); }
.card {
background: #ffffff;
border-radius: var(--md-shape-medium);
box-shadow: var(--md-elevation-1); /* the same level everywhere */
}
.button-filled {
background: var(--md-primary);
color: var(--md-on-primary);
border-radius: 20px; /* half the 40px height */
padding: 10px 24px;
}
.button-outlined {
background: transparent;
color: var(--md-primary);
border: 1px solid var(--md-outline);
border-radius: 20px;
}Tuning the values
| Property | A good starting range | What goes wrong outside it |
|---|---|---|
| Elevation levels | 2 or 3 used consistently | Random shadows make it look like a Material imitation rather than the system. |
| Text on tonal surfaces | The on- colour roles | Pale tonal text looks on brand and fails contrast. |
| Button corners | Pill-shaped: half the button’s height | Mixing square and pill buttons breaks the shape scale. |
| Key colours | 1 primary, plus secondary and tertiary | Bringing in unrelated brand colours undoes the tonal system. |
When it works
- Android apps and sites that should feel at home next to them.
- Web apps and dashboards that need a proven component set.
- Teams who want to build on Google’s components and documentation.
When to avoid it
- Brands that need a distinctive, unmistakable look.
- Marketing sites where looking like every Google product is a drawback.
- Projects where you’d override most of the system anyway.
The short version
Material 3 in one minute
If you only have a minute, these are the ideas that make Material 3 what it is. For full component specs, Google’s Material 3 documentation is the reference.
Dynamic colour
A whole palette is generated from one key colour. On Android it can come from the user’s wallpaper.
Colour roles
Every colour has a job, such as primary, container or on-surface, and a matching text colour that passes contrast.
Elevation by tone
Raised surfaces get slightly tinted rather than relying only on shadows.
A shape scale
Corner radii follow a fixed scale, so small and large components look related.
What to check when you review a Material design site
Material sites often look right at first glance and drift from the system in the details. These are the checks to make.
.card1. Consistent elevation
Check cards and menus at the same level use the same shadow or tone.
p2. Text on tonal surfaces
Check text uses the matching on- colour and reaches 4.5:1 on every container.
.fab3. Floating action buttons
Check floating buttons don’t cover content, especially the last item on a page.
.button-filled4. Button contrast
Check filled buttons pass with their text colour, including in dark theme.
.snackbar5. Snackbars and toasts
Check messages that pop up give people enough time to read them and can be reached with a keyboard.
[data-theme=dark]6. Dark theme
Check the dark palette is generated properly rather than just inverted.
:focus-visible7. Focus states
Check every component shows a clear focus state, not just a ripple.
@media (max-width: 600px)8. Navigation on phones
Check navigation switches to the right pattern, such as a bottom bar, on small screens.
Reviewing with clients
Notes on exactly which component is off
Material sites are made of standard components, so a client’s note pinned to one tells you exactly which component, and which state, needs fixing. 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 component that looks wrong and say what they see.
You get the selector, a screenshot and their device, so you can go straight to the right rule in your CSS.
This text looks a bit faint compared to the others.
mobile · Chrome on Pixel - 412 x 915
.d-card.c2 > .d-textReviewing 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.