# Data Gif Maker DESIGN.md

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

Google News Lab's animated-chart tool built on Material Design 3: a full md-sys token set with a muted indigo primary, Google Sans for display and Google Sans Text for body, a 0-28px shape scale, and MD3 elevation shadows.

- Website: https://datagifmaker.withgoogle.com
- Primary color: Blue `#445E91`
- Fonts: Google Sans Text, Google Sans
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/data-gif-maker

## Palette preview

- `error`: `#ba1a1a`
- `outline`: `#74777f`
- `primary`: `#445e91`
- `surface`: `#f9f9ff`
- `on-error`: `#ffffff`
- `tertiary`: `#715573`
- `secondary`: `#575e71`
- `background`: `#f9f9ff`

## Typography preview

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

---

## Overview

Data Gif Maker is a Google News Lab tool for turning a small table of numbers into an animated GIF or video — you name the GIF, add up to five variables with their values, pick a color, choose a graph and animation style, and download. The site is a **single-screen application** (plus a designed 404) built entirely on **Material Design 3**: every color, type size, corner radius, and shadow comes from the `--md-sys-*` token set, and nothing in the interface invents a value. That discipline is the design. The mood is Google-plain — soft, light, unhurried, and completely unbranded beyond the typefaces — with a left navigation rail, two large rounded panels on the home screen, and a mauve illustration that supplies the only saturated color.

## Colors

The palette is a **Material 3 tonal system**, generated from a muted indigo primary rather than from Google's default purple. Every surface is a tinted near-white in the `#f9f9ff` family, which is what keeps the whole app reading as one continuous sheet instead of a stack of white boxes.

- **Primary (#445e91):** `--md-sys-color-primary`, a desaturated indigo. It fills buttons, marks the active navigation-rail item, and colors inline links. `#1a73e8` and `#185abc` — Google's standard blue pair — appear alongside it for focus rings and hover states.
- **On-primary (#ffffff):** labels inside filled buttons.
- **Primary-container (#d8e2ff) / on-primary-container (#001a41):** the pale-blue tonal pair for selected and highlighted surfaces.
- **Secondary (#575e71) / secondary-container (#dbe2f9):** the neutral-cool tonal family, used for quiet chips and the tonal button.
- **Tertiary (#715573) / tertiary-container (#fbd7fc):** a mauve family. The tertiary tone is the illustration color — it is the single saturated shape in the home hero and the highlighted bar in the 404 graph.
- **Error (#ba1a1a) / error-container (#ffdad6):** the destructive pair.
- **Background and surface (#f9f9ff):** the page ground, a blue-tinted off-white that is the app's base.
- **Surface-container ramp:** `#ffffff` (lowest), `#f3f3fa` (low), `#ededf4` (base), `#e8e7ee` (high), `#e2e2e9` (highest). The home panels sit on `lowest`, the graph-style cards on `low`, and the segmented control on `base`.
- **On-surface (#1a1b20):** all headings and primary text. **On-surface-variant (#44474f):** supporting copy, labels, and the quiet metadata.
- **Outline (#74777f) / outline-variant (#c4c6d0):** the strong and hairline border roles. The `c4c6d0` variant is what separates the outlined text fields and cards.
- **Inverse-surface (#2f3036) / inverse-on-surface (#f0f0f7) / inverse-primary (#adc6ff):** the dark trio used for snackbars, tooltips, and any inverted surface.

## Typography

Two Google families, split exactly along the Material 3 brand/plain line. **Google Sans** carries the display, headline, and title-large roles — the rounded, slightly quirky face that gives the tool its friendliness at 57px. **Google Sans Text** carries body, label, and the smaller titles, with **Roboto** as the declared fallback for both. Every role sits at **weight 400 except the labels and the small/medium titles at 500**; there is no bold anywhere in the system, and hierarchy comes from size and tonal color instead.

- **Display:** 57px/400 at 1.12 for the hero (`Bring your data to life`), then 45px, 36px for smaller statements.
- **Headline:** 32px, 28px, 24px — the section and card titles (`Compare the numbers`, `Choose a graph style`) and the 404's `Page not found` at 40px.
- **Title:** 22px/400 for the app bar's `Data GIF Maker`, 16px/500 and 14px/500 for card and list titles.
- **Body:** 16px, 14px, 12px — the standfirst (`Start by naming your GIF, adding variables, and choosing their color.`) and all supporting copy.
- **Label:** 14px/500, 12px/500, 11px/500 — button labels, navigation-rail captions (`Create`, `Downloads`), and the field counters (`0 / 96`, `0 / 72`).
- Letter spacing is `normal` at every size; no tracking adjustments are made.

## Layout

A **left navigation rail** 80px wide runs the full height with two icon-plus-caption items — `Create` (a pencil) and `Downloads` (a list) — and the rest of the viewport is a single column of large rounded panels. The home screen stacks three: a hero pair side by side (the `Data GIF Maker` title and `Bring your data to life` display on the left; a mauve illustration card on the right with a `✕` close and a `›` advance), then `Compare the numbers`, then `Choose a graph style` with a `Landscape` / `Portrait` segmented control at its top-right. The content column is capped at **992px** with **24px** gutters, and the app bar is **88px** tall with a 28px radius and 24px inline padding. The 404 page switches to a two-row grid — header row, then a centered illustration and `Page not found` — with **64px** of block padding at the top.

Inside `Compare the numbers`, the form is a single column: a `GIF Name` field with a `0 / 96` counter, then two variable rows each holding a color swatch, a `Variable name` field with `0 / 72`, a `Value` field, and a `✕` remove button; below them an `Add variable +` action, a `%` / `123` unit toggle, and a `Font` select. `Choose a graph style` holds a row of option cards — each a 380px-wide preview with `Preview` and `Download` actions beneath.

## Elevation & Depth

Depth is **Material 3's five-level shadow scale**, built from a single warm gray (`rgba(60, 64, 67, …)`) rather than from black, which is why the shadows read as soft and slightly warm.

- **Level 1:** `0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15)`
- **Level 2:** `0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15)`
- **Level 3:** `0 2px 3px 0 rgba(60,64,67,.3), 0 6px 10px 4px rgba(60,64,67,.15)`

The home panels use a **tonal** approach rather than a shadowed one — they are separated by the `#f3f3fa` / `#ededf4` container steps, not by elevation, so the page stays flat. Shadows are reserved for transient surfaces: menus, the `Font` select's popup, and any dialog. Focus rings are drawn as `0 0 0 2px #1a73e8` on interactive elements, with `#185abc` on hover — the only place a pure Google blue appears.

## Shapes

A **seven-step Material 3 corner scale**, and the app uses the top of it. `0px` (none), `4px` (extra-small), `8px` (small), `12px` (medium), `16px` (large), `28px` (extra-large), and `9999px` (full). The signature move is **28px on every large panel** — the app bar, both hero cards, `Compare the numbers`, `Choose a graph style`, and the 404's container all share it, which is what makes the whole tool look like one continuous set of soft tiles. **Buttons are full pills at 9999px**, with 48px called out explicitly for the icon button. Text fields and small controls sit at 4–8px. There are no circles except icon holders and the color swatches in the variable rows.

## Motion & Micro-interaction

Motion is the **Material 3 easing set**, three durations and two curves. **100ms `cubic-bezier(0, 0, 0, 1)`** is the standard-decelerate curve for short transitions; **300ms `cubic-bezier(0, 0, 0.2, 1)`** is the legacy-decelerate curve for medium ones, and it is the value the 404 page binds to its own `--duration`; **600ms** on the same curve handles the long entrances. Emphasis easing and accelerated variants are declared in the token set but unused on the public surface. Nothing loops, nothing parallaxes, and nothing animates on scroll — the only real animation in the product is the GIF the user is building.

## Voice & Content Strategy

- **Tone of voice:** instructional and plain. It tells you what to do in the order you should do it, and it never oversells a charting tool.
- **Capitalization:** sentence case for headings and body (`Bring your data to life`, `Compare the numbers`, `Choose a graph style`, `Page not found`). The one exception is the product name, which is title-cased as `Data GIF Maker` in the app bar.
- **Terminology:** "GIF" and "video" as the two output formats, "variables" for the data series, "graph style" for the chart type, "animation style" for the motion. The nav is `Create` and `Downloads`. The illustration copy is a single sentence: `Creating your GIF or video is easy. Start by giving it a title, then compare up to 5 variables.`
- **Button and action labels:** verb-first, two words, no punctuation — `Add variable`, `Preview`, `Download`, `Create`, `Downloads`. The unit toggle is `%` against `123`.
- **Empty, loading, and error states:** the form's empty state is the default — `Variable name` and `Value` placeholders on two rows, a `0 / 96` and `0 / 72` character counter under each field, and a `✕` to remove a row. The `Font` field is a select with a chevron. The error state is the designed 404: a five-bar chart in `surface-container-low` with one bar in tertiary mauve and a dot beneath it, over the headline `Page not found` at 40px in `on-surface`, on a `surface-container-lowest` ground with 64px of top padding.
- **Numbers, dates, and units:** character limits are written as `0 / 96` and `0 / 72` with spaces around the slash; variable values default to `1` and `2`; the unit toggle flips between `%` and plain numbers (`123`); the variable cap is stated as `up to 5 variables`.

Real examples from the page:

> "Bring your data to life"

> "Start by naming your GIF, adding variables, and choosing their color."

> "Creating your GIF or video is easy. Start by giving it a title, then compare up to 5 variables."

## Components

- **button-filled** — the primary action: `#445e91` fill, white 14px/500 label, **9999px radius**, 40px height, with a 48px icon-button variant.
- **button-tonal** — `#dbe2f9` fill with `#141b2c` label, same pill geometry, for secondary actions.
- **button-text** — `Add variable +`: no fill, `#445e91` 14px/500 label, 9999px radius, 12px inline padding.
- **nav-rail** — the 80px left rail: two items, each an icon above a 12px/500 `#44474f` caption (`Create`, `Downloads`), with the active item in primary.
- **app-bar** — `.nunjucks-dgm-header`: **88px** tall, `#ffffff` ground, **28px** radius, 24px inline padding, the `Data GIF Maker` wordmark at 22px/400 in `#1a1b20` with no underline.
- **card-filled** — the home panels (`Compare the numbers`, `Choose a graph style`): `#ffffff` ground, 28px radius, 24px padding, an 18px-ish title and 14px supporting copy, separated tonally rather than by shadow.
- **card-outlined** — the graph-style option cards: `#f3f3fa` ground, 28px radius, a `#c4c6d0` hairline, a 380px-wide preview, and `Preview` / `Download` actions beneath.
- **text-field-outlined** — the `GIF Name`, `Variable name`, and `Value` fields: `#ffffff` ground, **4px radius**, 48px height, 16px text in `#1a1b20`, a `#c4c6d0` outline, a floating label, and a `0 / 96` or `0 / 72` counter below.
- **segmented-button** — the `Landscape` / `Portrait` toggle: `#ededf4` ground, 9999px radius, 36px height, 14px/500 labels, with the selected segment in `#ffffff`.
- **metadata** — the 12px `#44474f` line used for field counters, helper text, and supporting notes.
- **link** — inline `#445e91` at 14px/400, underlined on hover.

## Do's and Don'ts

- Do take **every** color, type size, radius, and duration from the `--md-sys-*` token set; this system has no bespoke values and should not grow any.
- Do set display, headline, and title-large type in **Google Sans** and body, label, and the smaller titles in **Google Sans Text**, with Roboto as the fallback for both.
- Do keep every weight at 400 except labels and small/medium titles at 500 — there is no bold in this system.
- Do use **28px on every large panel** and **9999px on every button**; the two radii carry the whole visual identity.
- Do separate surfaces with the tonal container ramp (`#ffffff` → `#f3f3fa` → `#ededf4` → `#e8e7ee` → `#e2e2e9`) rather than with shadows, and reserve the three MD3 shadow levels for menus, popups, and dialogs.
- Do draw focus rings as `0 0 0 2px #1a73e8` and hover rings as `#185abc`.
- Do animate with the MD3 curves only — 100ms and 300ms and 600ms on `cubic-bezier(0, 0, 0.2, 1)`.
- Do keep the illustration color the tertiary mauve `#715573` and confine it to graphics; it is the only saturated shape in the interface.
- Don't add a second typeface, a heavier weight, or a bespoke color — the token set is complete.
- Don't round a text field past 8px or a panel below 28px; the scale has a step for every job.
- Don't use elevation on resting content; the home panels are tonal, not shadowed.
- Don't introduce letter-spacing or text-transform; every string is sentence case at `normal` tracking.
- Do note that `#44474f` supporting copy on `#f9f9ff` measures about 8.5:1 and `#1a1b20` headings are above 15:1, both comfortably AA; white on the `#445e91` filled button is about 6.4:1, also AA. The tightest pair is the `#74777f` outline role used for strong borders, which is a non-text role and so is not held to the 4.5:1 text minimum.
