# Google Drive DESIGN.md

> Public preview. The complete DESIGN.md source (all 108 design tokens, spacing, components and frontmatter) requires DesignMD Pro: https://www.designmdpro.app/pricing

Google Workspace's marketing design language — a calm white canvas, Google Blue pill buttons, a two-family Google Sans type scale, and hairline borders that carry hierarchy instead of shadow.

- Website: https://drive.google.com
- Primary color: Blue `#1A73E8`
- Fonts: Google Sans Text, Google Sans
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/google-drive

## Palette preview

- `outline`: `#dadce0`
- `primary`: `#1a73e8`
- `surface`: `#ffffff`
- `tertiary`: `#137333`
- `secondary`: `#0b57d0`
- `on-primary`: `#ffffff`
- `on-surface`: `#202124`
- `on-tertiary`: `#ffffff`

## Typography preview

- `body-lg`: Google Sans Text
- `label-lg`: Google Sans

---

## Overview

Google Drive's marketing site is the Google Workspace template system, and it behaves
like one: an enormous, calm white canvas with a fixed 64px header, one saturated accent
color, and almost no decoration. The personality is **institutional and reassuring** —
this is enterprise storage sold to IT buyers, so nothing shouts, nothing bounces, and
the only saturated color on the page is the blue of a button. The audience is a mixed
one (individuals, small business, enterprise), which is why the hero states the value
proposition in one flat sentence and then lets a long, evenly paced scroll do the
selling.

Density is medium-high and very even: sections alternate between a two-column text-plus-
illustration block and a card grid, all on the same 1440px container with 24px gutters.
There is no imagery in the photographic sense — product UI is illustrated as soft,
rounded, slightly abstracted mockups (the Drive file list, the share dialog, the Gemini
shield), which keeps the page feeling like documentation rather than advertising.

The single strongest mood cue is restraint. Depth comes from a 1px `#dadce0` hairline,
not from shadow; the one place a shadow appears is on card hover. Elevation, color, and
type weight are the only three levers the system uses to say "this is more important
than that."

## Colors

- **Primary (#1a73e8, Google Blue):** the accent of the entire site. It fills the primary
  pill buttons ("Sign in", "Try Drive for work", "Try now"), colors inline links, draws
  the focus ring, and marks the highlighted pricing card's 2px border. It is never used
  as a background for large areas.
- **Primary hover (#174ea6):** the pressed-state blue on filled buttons and the hover
  color of links. One step darker, never a different hue.
- **Primary container (#e8f0fe):** the pale blue wash behind hover states on inline
  buttons, the "open" state of dropdown buttons, and the `#d2e3fc` active step below it.
- **On primary container (#1967d2):** the blue of text sitting on that pale wash, and
  the color of the "Feature Badge" labels.
- **Secondary (#0b57d0):** the Material 3 blue used on the pricing surface, where the
  filled "Try now" button and the majority of link text switch to it. It is a deeper,
  slightly more violet blue than the marketing primary.
- **Tertiary (#137333):** the positive green, seen almost exclusively in the "50% off
  for 3 months" savings badge on the pricing plans.
- **Tertiary container (#e6f4ea):** the pale green background behind that badge.
- **Surface (#ffffff):** the page background, the card background, and the fixed header.
  Everything sits on white.
- **On surface (#202124):** near-black for headings and primary body copy. The `h1`
  "Store and share files online" and every section `h2` use it.
- **On surface variant (#5f6368):** the mid-grey for secondary copy, card body text,
  eyebrows, and footer links — the most frequently occurring text color on the page
  after near-black. On the pricing surface the equivalent is the slightly cooler
  `#444746`.
- **Surface container (#f8f9fa):** the pale grey used for alternating bands, the hover
  fill of outlined buttons, and the user-count stepper on the pricing page.
- **Surface container high (#f0f4f9):** the cooler pale blue-grey of the pricing
  toolbar and mobile surfaces.
- **Inverse surface (#1f1f1f):** the near-black of the announcement "butterbar" across
  the top of the pricing page ("Get up to 50% off your first 3 months…"), with white
  text on it.
- **Outline (#dadce0):** the hairline. It borders every outlined button, every default
  card, and is inset along the bottom of the fixed header (`inset 0 -1px #dadce0`) so
  the header separates from content without casting a shadow. On the pricing surface
  the equivalent hairline is the lighter `#e8eaed`.

## Typography

Two families, split by job, and they are not interchangeable:

- **Google Sans** — headings, subheadings, buttons, and labels. Geometric, slightly
  condensed, and always medium (500) or bold (700).
- **Google Sans Text** — body copy, CTAs that read as links, eyebrows, and footer text.
  A text-optimized cut with more open counters.

The scale is fluid and responsive — every level steps up across three breakpoints — so
the values below are the **desktop** values at the 1440px capture. Headline 1 goes
36px → 48px → 54px, Headline 2 goes 30px → 38px → 44px, and the body levels shift by a
single step. The site's own scale names are Headline 1–6, Subheading Small/Medium/Large,
Body Extra Small/Small/Normal/Large, Button Default/Small/Extra Small, and Eyebrow.

- **Headlines** run 28px to 54px in Google Sans, 500 weight (700 only for the hero
  `h1`), with **negative tracking that tightens as the size grows**: -0.03em at 44–54px,
  -0.02em at 32px, 0 at 20–24px. This is the single most important typographic rule on
  the site.
- **Body** runs 12/14/16/18px in Google Sans Text at 400, with line heights between
  1.5 and 1.58 and a hair of positive tracking (+0.01em).
- **Labels** (buttons) run 12/14/16px in Google Sans at 500 with +0.01em tracking.
- **Eyebrows** are the only uppercase level: 14px Google Sans Text at 500, set
  `text-transform: uppercase` with a wide +0.03em tracking.
- **Nav** sits at 13–14px/500 in the footer and 14px/500 in the top bar; the header's
  own copy is annotated "CTA Small" at 14px.

## Layout

A **fixed-max-width grid**: a 1440px container (`--gws-container-max-width`) with 24px
gutter on each side, centered with `margin: 0 auto`, built on `grid-template-columns:
repeat(12, 1fr)` with a 24px column gap. Page margins tighten to 25px on some tile
containers, and the whole page sits under a `position: fixed` header that is exactly
**64px tall** (112px on tablet, 56px on mobile).

Sections stack at a very steady rhythm: the spacing histogram is dominated by 24px (124
occurrences), then 10px, 36px, and 20px, with 4px as the micro-step. Card grids use
`--gws-card-max-width` of 304/346/372/406px depending on the template, and cards carry
24px of internal chapter padding (`--gws-card-chapter-padding`).

Two-column blocks are the workhorse: text on the left at roughly 40% width, product
illustration on the right, with the illustration allowed to bleed past the container
edge. Section headings are left-aligned, never centered, and the hero `h1` is the only
display-size type on the page.

## Elevation & Depth

Depth is **hairlines first, shadows almost never**. The default card is
`border: 1px solid #dadce0` with `box-shadow: none` on a white background — the border
does all the work. The fixed header carries `box-shadow: 0 2px 6px #0000001f, inset 0
-1px #dadce0`: a whisper of drop shadow plus an inset bottom hairline, which is what
actually reads as the edge.

Shadows appear in exactly three places, and only on interaction:

- Card hover: `0 4px 8px 3px #36404326, 0 1px 3px 0px #3640434d` — a two-layer, cool
  grey-tinted shadow that lifts the card 4px.
- Tonal button hover: `0 1px 2px #3c40434d, 0 1px 3px 1px #3c404326`.
- Legacy cards, which keep a resting `0 1px 3px 0px #36404326` and gain nothing on
  hover.

The highlighted pricing card is elevated by a **2px blue border** (`--gws-card-border:
2px solid #1a73e8`) rather than by a shadow, and a secondary highlight uses
`2px solid #d3e3fd`. That border-as-elevation move is the most distinctive depth
decision on the site.

## Shapes

The shape language is **fully rounded**. Every button is a pill: `border-radius: 100px`,
no exceptions, at every size from the 36px header "Sign in" to the 48px hero CTAs. The
pill is what makes the blue feel friendly rather than corporate.

Containers are softly rounded rather than sharp: the default card is 5px
(`--gws-card-border-radius`), the marketing card 20px, the large card 30px, and the
pricing plan cards 20px with the highlighted one at 24px. Inputs and search fields sit
at 0–8px, and icon-only buttons are 50% circles. Plain text buttons and inline links
are deliberately square (`border-radius: 0`) with a 1–2px underline instead — the
contrast between a pill and an underlined link is how the system distinguishes "action"
from "navigation."

## Motion & Micro-interaction

Motion is fast, functional, and never decorative. The dominant duration is **200ms**,
applied to `background-color`, `color`, and `box-shadow` together
(`transition: background-color .2s, color .2s, box-shadow .2s`). That triple-transition
is the signature: buttons change fill, label, and shadow in one synchronized beat.

Surfaces that enter take longer and decelerate — `opacity, visibility .5s
cubic-bezier(.65, 0, .35, 1)` for menus and overlays. Cards lift over 300ms on a custom
curve (`cubic-bezier(.17, .08, .83, .92)`), and the header's hide-on-scroll behavior runs
`transform .3s ease-in-out`. Trailing arrow icons nudge with `transform .3s`.

Nothing loops, nothing parallaxes, and nothing animates on page load. Honor
`prefers-reduced-motion`.

## Voice & Content Strategy

- **Tone of voice:** plain, confident, and benefit-first — never technical, never
  breathless. The copy explains what the product does for a team in ordinary words and
  stops. No exclamation marks appear anywhere.
- **Capitalization:** sentence case everywhere, consistently. Headings read "Store and
  share files online", "Say goodbye to file silos and content chaos", "Cloud storage
  made easy"; buttons read "Try Drive for work", "Sign in", "Learn more", "Contact
  sales". Only eyebrows and the Material Icons labels break the pattern.
- **Terminology:** the canonical nouns are **Drive**, **shared drives**, **Workspace**,
  and **Gemini**. The page never says "cloud folder", "team drive", or "Bard". Storage
  is always stated as a capacity plus a scope: "2 TB of storage per user", "30 GB pooled
  storage per person".
- **Button and action labels:** verb phrases naming the outcome — "Try Drive for work",
  "Download Drive for desktop", "Start a trial", "Contact sales", "Expand all". The
  generic "Submit" and "Learn more" appear only as a genuine tertiary link.
- **Empty, loading, and error states:** the site has no product empty states to read,
  but the pattern it sets is a stated cause plus a next step: "No cost for 14 days" sits
  under every trial CTA, and the FAQ answers "Curious about Google Drive?" with direct
  sentences. Error copy would follow the same shape — what failed, then what to do.
- **Numbers, dates, and units:** prices lead with the number and a struck-through
  original ("$3.50 ~~$7~~", "/ user per month"); storage uses a space between value and
  unit ("2 TB", "30 GB", "5 TB"); the trial length is spelled as "14 days" and the
  discount as "50% off for 3 months".
- **Real examples on the page:** "Store and share files online", "AI-powered, secure
  cloud storage for seamless file sharing and enhanced collaboration", "Turn files into
  knowledge with Gemini in Google Drive", and the chat prompt "Hi there 👋 What brings
  you to Google Workspace today?"

## Components

- **`button-primary`** — the filled pill. `background: #1a73e8`, white label,
  `border-radius: 100px`, `padding: 11px 24px`, 48px tall, Google Sans 500 at 16px with
  +0.01em tracking, `gap: 8px` between label and trailing icon. Hover drops to `#174ea6`
  over the same 200ms; there is no separate focus style because the browser ring is left
  intact. The 36px header variant is the same pill at 14px/`6px 16px`.
- **`button-secondary`** — the outlined pill. White fill, `#1a73e8` label, `1px solid
  #dadce0` border, same 100px radius and 48px height. Hover fills `#f1f3f4`, darkens the
  label to `#174ea6`, and shifts the border to `#8ab4f8` — three properties, one 200ms
  transition. Active fills `#e8eaed`.
- **`button-text`** — the inline link-button ("Learn more", "Download Drive for
  desktop"). Square corners, zero padding, an 18px Google Sans Text label in blue, and a
  1px underline with `text-underline-offset: 3px`. Hover paints the `#e8f0fe` wash behind
  the whole label; active goes to `#d2e3fc`.
- **`card`** — white, `1px solid #dadce0`, `border-radius: 5px`, 24px chapter padding,
  `max-width: 304px`, `overflow: hidden`, flex column with `space-between` so the action
  pins to the bottom. Hover raises the two-layer shadow described under Elevation.
  Legacy cards swap the hairline for a resting `0 1px 3px #36404326` and 0px radius.
- **`pricing-card-highlighted`** — the selected plan. Same white surface, 20px radius,
  but elevated by a `2px solid #1a73e8` border and a slightly larger radius than its
  siblings; the unselected plans keep the `#dadce0` hairline.
- **`nav`** — the fixed header. 64px tall, white, `position: fixed` at `z-index: 1020`,
  with `box-shadow: 0 2px 6px #0000001f, inset 0 -1px #dadce0` and a 300ms transition on
  background, border color, and shadow so it can go opaque on scroll. Nav items are
  14px/500 Google Sans Text in `#202124`; the right-hand cluster is a search pill plus a
  "Contact sales" outlined pill and a "Sign in" filled pill.
- **`input-default`** — the footer site search. 44px tall, `#eeeeee` fill, 13.33px
  Roboto, `padding: 12px 12px 12px 48px` to clear the leading search icon, square
  corners.
- **`badge-success`** — the pricing savings pill. `#e6f4ea` fill, `#137333` label at
  12px/500, 5px radius, `padding: 4px 8px`, `line-height: 100%`, +0.0625rem tracking.
  The feature-badge variant uses `#1967d2` on the same construction.
- **`butterbar`** — the full-width announcement bar. `#1f1f1f` fill, white 14px text,
  8px radius, 16px padding, with a leading Material Icon.

## Do's and Don'ts

- Do reserve filled Google Blue for the single highest-emphasis action per screen — the
  header "Sign in" and the hero "Try Drive for work" are the only filled-blue elements
  above the fold.
- Do keep every button a 100px pill with `11px 24px` padding and a 48px minimum height;
  never round a button to 5px or 20px, which are container radii.
- Do keep tracking negative on headlines (-0.03em at 44–54px, -0.02em at 32px) and
  positive on labels, body, and eyebrows (+0.01em / +0.03em). A headline at 0 tracking
  reads as a different product.
- Do set headings in Google Sans and body in Google Sans Text; Google Sans at 16px/400
  reads as a broken label, not a paragraph.
- Do express elevation with the `#dadce0` hairline first, and add shadow only on hover
  (`0 4px 8px 3px #36404326, 0 1px 3px #3640434d`). Never stack two shadows at rest.
- Do highlight a selected plan with a 2px blue border rather than a shadow or a fill.
- Do keep every transition at 200ms for state changes and 500ms maximum for entering
  surfaces, on `background-color`, `color`, and `box-shadow` together.
- Do keep the fixed header at 64px with its inset bottom hairline — that inset line, not
  the drop shadow, is what separates it from content.
- Don't uppercase anything except eyebrows, and don't uppercase an eyebrow below
  +0.03em tracking.
- Don't drop secondary text below 12px, and don't place `#5f6368` on anything darker
  than `#f8f9fa` — at 6.05:1 on white it passes AA, but it was never designed for tinted
  surfaces.
