# NASA Image and Video Library DESIGN.md

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

The public search front end for NASA's image and video archive — an Angular single-page app on Bootstrap 5.3 and Angular Material that puts a starfield photograph behind one oversized search field and then hands the page over to a four-column masonry of media thumbnails.

- Website: https://images.nasa.gov
- Primary color: Navy `#15418C`
- Fonts: Sunflower, Arial, SFMono-Regular, Titillium Web, Inter, DM Moto
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/nasa-image-and-video-library

## Palette preview

- `link`: `#81aefb`
- `outline`: `#004ecf`
- `primary`: `#15418c`
- `surface`: `#1c1f26`
- `on-footer`: `#b9c6dc`
- `background`: `#101217`
- `on-primary`: `#ffffff`
- `surface-chip`: `#4c4d53`

## Typography preview

- `tab`: Sunflower, Helvetica, Arial, sans-serif
- `body`: Arial, Helvetica, sans-serif
- `exif`: "SFMono-Regular", Menlo, Consolas, monospace
- `lede`: "Titillium Web", Helvetica, Arial, sans-serif
- `next`: Inter, sans-serif
- `slider-label`: "DM Moto", monospace

---

## Overview

NASA Image and Video Library is a single-purpose search appliance. The whole product is one
question — *what are you looking for?* — asked once, at the top of a full-bleed photograph of
Earth from orbit, and then answered with a wall of thumbnails.

The interface is built from two design languages stacked on top of each other and never
reconciled. Bootstrap 5.3 supplies the grid, the forms, the buttons and the footer; Angular
Material supplies the media-type checkboxes, the year slider and the icon buttons. On top of
both sits a thin layer of hand-authored CSS — one 984 KB bundle, `styles-HOUUPO5F.css` — that
recolours the Material widgets into NASA blue and sets the three webfonts. The result is
coherent in colour and type but structurally split: some controls are square Bootstrap, some
are 10 px-radius Material, and the two never meet.

The palette is a dark navy ground with one saturated blue doing all the work. Everything that
can be acted on — the submit button, the checked media-type chips, the download menu, the
slider selection, the search field's border — is `#15418c`. Everything that is only read is
white or a desaturated tint of it. There is no second accent, no warning colour, no success
colour. The only place colour escapes the system is the footer, where a handful of links
still carry Bootstrap's default `#0d6efd`.

Type is three families and nothing else. Arial carries every heading and all body copy.
Sunflower, a light geometric sans, carries the interface chrome — tab buttons, breadcrumbs,
checkbox labels, metadata labels, the EXIF panel. Titillium Web, an extra-light sans, carries
the search field and its placeholder. The three are used at consistent, small sizes: 16 px
body, 15 px chrome, 12–13 px captions and eyebrows. Nothing is larger than the 48 px hero
headline, and nothing is bolder than 700.

The site is almost entirely flat. There is no card elevation, no drop shadow on the masonry,
no blur, no gradient. The single shadow in the entire interface is a 1 px offset under the
detail page's photograph, and it reads as a print artefact rather than as Material elevation.

## Colors

The ground is `background` `#101217`, a near-black navy that reads as "space" without being
pure black. On the landing page the ground is only visible below the hero photograph; on the
results page it is the entire viewport.

`primary` `#15418c` is NASA blue and the only saturated colour in the system. It fills the
submit button, the three checked media-type chips, the download dropdown, the slider
selection and the 3 px border around the search field. `primary-bright` `#1c67e3` is the
hover and slider-selection variant. `on-primary` is white throughout; white on `#15418c`
measures 9.69:1.

`surface` `#1c1f26` is the search field's fill — barely lighter than the ground, just enough
to read as an input. `surface-raised` `#26282f` is the metadata and EXIF panel on the detail
page. `surface-chip` `#4c4d53` and `surface-chip-quiet` `#34373f` are the active and inactive
sort-tab fills. `surface-toggle` `#3f424c` is the "Show EXIF data" button. `surface-select`
`#34363b` is the ground of the hidden per-card asset-selection checkbox. `surface-back-to-top`
`#2e2e31` is the Back to Top pill. `surface-track` `#58585b` is the year slider's rail.

Ink runs a four-step ladder on the ground: `on-background` `#ffffff` for headings and tab
labels (18.73:1), `on-footer` `#b9c6dc` for footer links (10.86:1), `on-background-muted`
`#dddddd` for metadata labels (13.79:1), `on-background-faint` `#cccccc` for EXIF data and
card captions (11.66:1), and `on-background-ghost` `#c2c2c2` for the search placeholder
(10.52:1). Every step clears AA comfortably; the ladder is a hierarchy device, not a
contrast compromise.

`link` `#81aefb` is a pale periwinkle used for breadcrumbs, keyword links and the detail
page's footer links. `outline` `#004ecf` is the 2 px border that appears around an
*unchecked* media-type chip. `link-bootstrap` `#0d6efd` is Bootstrap's default link colour and
survives on exactly four links — the footer's left-hand block ("Usage Guidelines", "Privacy",
"FOIA", "Contact NASA") and one link at the foot of the detail page. It is not a design
decision; it is an oversight, and at 4.16:1 on the ground it is the one place in the palette
that fails AA for body text.

## Typography

Three families, each with a job.

**Arial, Helvetica, sans-serif** carries all display and body text: the 48 px / 57.6 px / 500
hero headline, the 40 px / 48 px / 500 page heading, the 32 px / 38.4 px / 500 section
heading, 16 px / 24 px / 400 body, 15 px / 22.5 px / 400 compact body, 14 px / 21 px / 400
captions, and the 13 px / 19.5 px / 700 uppercase footer links. Nothing is tracked; nothing
is transformed except the footer links.

**Sunflower, Helvetica, Arial, sans-serif** carries the interface chrome at weight 100 — the
extra-light end of the family, which is the site's signature move. Tab buttons are
23 px / 29 px / 500. Breadcrumbs are 15.5 px / 23.25 px / 300 at 0.2 px tracking. Checkbox
labels are 19 px / 20 px / 100 at 0.5 px tracking on the landing page and 15 px / 20 px / 100
on the results page. The asset title is 23 px / 30 px / 400. Metadata labels are
15 px / 22.5 px / 100. The results header is 16 px / 24 px / 100. Only the 600-weight
`asset-date` label breaks the extra-light rule.

**"Titillium Web", Helvetica, Arial, sans-serif** is reserved for the search field itself —
29 px / 50 px / 100 for the value and 30 px / 45 px / 400 for the placeholder, both on the
landing page, and 16 px / 24 px / 400 on the results page. Card titles are 12.5 px / 14 px.

Three further faces appear once each and are documented rather than tokenized as part of the
system: `"SFMono-Regular", Menlo, Consolas, monospace` at 11.5 px / 17.25 px for the EXIF
data table, `"DM Moto", monospace` at 15 px / 19.53 px / 500 for the year slider's bubbles,
and `Inter, sans-serif` for the Back to Top pill (16 px / 20 px / 600 at −0.5 px) and the Next
control (22 px / 26 px).

Loaded weights are Titillium Web 300 and 400 (600 and 700 and both italics are declared but
never fetched) and Sunflower 300 and 500. Arial is the system face. Material Icons is
declared and never loaded, which is why the checkbox ticks, search glyphs and social badges
are all PNG sprites served from `images.nasa.gov/assets/images/`.

## Layout

A 1440 px viewport with a 1250 px outer cap and a 1170 px Bootstrap container centred at
x = 135 on the landing page. The results page narrows to a 1116 px measure at x = 162, and the
detail page to a 1140 px row at x = 150 with 12 px negative row margins.

The landing page is a single 463 px hero band: a black `header.top-wrapper` carrying
`landing_bg-2.jpg` (Earth from orbit) with 2 px of top padding. The NASA meatball is a
107 × 88 image at x = 1011, y = 42; the two-line "NASA Image and Video Library" wordmark is a
180 × 61 `span` at x = 829, y = 51, right-aligned in Titillium Web 21 px / 23 px at 0.5 px
tracking with 11 px of top padding. The 48 px headline sits at x = 362, y = 170 with 25 px of
left padding and a 40 px top margin; the 716 px search wrapper sits below it at y = 268 with
100 px of bottom padding.

The search field is the layout's anchor. On the landing page it is 716 × 73 with
`padding: 20px 85px 0 22px` and a 3 px `#15418c` border; the 69 × 67 submit button is pulled
out of flow with `margin: -71px 0 0` so it sits inside the field's right edge. On the results
page the same pair shrinks to 585 × 45 and 44 × 39 and moves to the top-left of the header,
with the wordmark and logo pushed to the right.

Below the hero, the landing page runs a 1170 px masonry — four 283 px columns at
x = 135 / 426 / 716 / 1007 with 8 / 7 / 8 px gaps, cards 287 px wide (283 px of media plus a
2 px transparent border), the first row at y = 562. It is a real Masonry instance:
`.media-asset` is the itemSelector, `.media-asset_sizer` sets a 262 px columnWidth on the
results page, and `gutter: 16` produces the 16 px column gaps there.

The results page stacks a breadcrumb (y = 182), a 1116 × 54 results header (y = 220), the
media-type chips and year slider (y = 85 and y = 341), and then 100 cards in four 262 px
columns at x = 162 / 440 / 719 / 997. Each card is 262 px wide with variable height —
254 × 156 thumbnails for landscape stills, taller for portraits — 8 px of vertical margin and
a 2 px transparent border that becomes the hover/active affordance. The footer sits at
y = 5548 with a 570 px link list centred at x = 735.

The detail page is a two-column split inside a 1164 px row: a 558 × 373 media panel on the
left with a 1 px `#373943` border, and a 558 px metadata column on the right starting at
x = 732. Below the media panel sit the "Show EXIF data" toggle and the share block.

## Elevation & Depth

There is essentially none, and that is the design. No card in the masonry casts a shadow, no
panel is raised, no button has a hover lift. The interface is a flat plane of `#101217` with
colour and weight doing all the separation.

The only shadow in the entire product is on the detail page's photograph:
`rgb(13, 14, 17) 1px 2px 3px 1px` — a hard, tight, near-black offset that reads as a printed
photograph lying on the page rather than as Material elevation. It pairs with a 1 px
`#373943` border.

Depth is instead communicated by fill lightness alone, in four steps: the ground
`#101217`, the field `#1c1f26`, the raised panel `#26282f`, and the chip fills `#34373f` /
`#4c4d53`. A 1 px `#2d2f36` top border separates the asset title from the metadata above it,
and the metadata rows are divided by 1 px `#444` hairlines. The preloaders — a
`border-radius: 50%` ring with a 9 px `rgba(255, 255, 255, 0.2)` border — are the only other
place a shadow-like device appears, and they are transient.

## Shapes

Almost everything is square. The 100 result cards, the media frames, the search field, the
submit button, the download dropdown and the metadata panel all have `border-radius: 0`.

The exceptions are a short, deliberate list:

- **10 px** on breadcrumb links and the Next control — a soft pill-ish rectangle, the site's
  default "clickable" radius.
- **14 px outer / 10 px inner** on the two sort tabs, achieved as a 2 px-padded outer button
  with a nested `.button-content`, so the tab reads as a ring around a filled core.
- **3 px** on the year slider's selection bar.
- **6 px** on the download dropdown group.
- **50 %** on the three 48 × 48 share icon buttons and on the 24 × 24 slider thumbs (the
  thumbs also carry a 2 px `#1c67e3` ring around a black fill). Percentage radii cannot be
  expressed as tokens and are recorded here instead.

There are no fully-rounded pill buttons, no squircle containers and no asymmetric corners
anywhere in the interface.

## Motion & Micro-interaction

Motion is sparse and almost entirely a single colour fade. `color 0.3s ease` is declared on
113 elements across the results page and 208 on the landing page — every link, every tab, every
card — so the entire interface cross-fades to its hover state over 300 ms. That one
declaration is the site's motion signature: nothing moves, nothing scales, everything eases
to a new colour.

Beyond it:

- `all 0.3s linear` on four elements (the preloader containers) and `all 0.3s ease` on one.
- `all 0.3s cubic-bezier(0.32, 1.25, 0.375, 1.15)` on one element — a springy overshoot curve
  that the rest of the site never uses.
- `border-color, box-shadow 0.15s ease-in-out` on the Bootstrap form controls.
- A Material ripple family at 90 ms and 180 ms with `cubic-bezier(0.4, 0, 0.2, 1)` on the
  checkbox and icon-button touch targets.
- `width`, `transform` and `stroke-dashoffset` at 0.15 s with `cubic-bezier(0.4, 0, 0.2, 1)`
  on the slider and the Material checkbox checkmark draw.

The bundle ships roughly 150 `@keyframes` blocks — `antFadeIn`, `antMoveDownIn`,
`antZoomIn`, `loadingCircle`, `spinner-border`, `ngdialog-flyin`, `fadeIn`, `fadeOut`,
`slideInRight` and the Material checkbox checkmark animations — but almost none of them run
on the captured pages. The search preloader and the media preloader both collapse to
`display: none` (0 × 0) once content arrives, so the only animation a visitor normally sees is
the checkbox checkmark drawing itself on toggle.

Accessibility motion support comes entirely from Bootstrap: `prefers-reduced-motion: reduce`
kills the form-control transitions, and `prefers-reduced-motion: no-preference` enables
`scroll-behavior: smooth` on `:root`. The site authors no `:focus-visible` rules of its own;
the four that exist are Ant Design's `box-shadow: 0 0 0 2px` rings on menu and pagination
widgets that this product does not use.

## Voice & Content Strategy

The voice is a government archive that has been allowed one joke. The hero asks the user to
"Discover our intergalactic multimedia collections" — the only place the copy leans into the
subject matter — and then immediately becomes procedural.

The search placeholder is instructional and concrete: `Search for ... (e.g. "Orion")`. The
results header reports state precisely: `Showing results for "orion": Displaying page 1 of
194`. Media types are named in the plainest possible terms — Images, Videos, Audio — each
with a tick and a glyph, never with counts or descriptions.

Detail pages are bibliographic. The asset gets an ID (`NASA ID: KSC-20261117-PH-KLS01_0151`),
a caption, a date, a centre, a keyword list, an album list, a location, and a photographer
credit in `NASA/Kim Shiflett` form. One caveat is stated once, plainly: "Any embedded metadata
is only available in the asset original version." A single outbound invitation — "Visit KSC
Website" — is the only editorial flourish.

Controls are labelled with what they do, in the imperative or the noun: DOWNLOAD, SHOW EXIF
DATA +, Share this media:, Back to Top, Next, Newest Uploads, Trending & Popular. Footer
links are the standard federal set, set in 13 px uppercase Arial: Usage Guidelines, Privacy,
FOIA, Contact NASA, Accessibility, API Docs.

Sentence case throughout, no exclamation marks, no marketing adjectives outside the hero.
Numbers are always exact. Nothing is abbreviated that a first-time visitor would not
recognise.

## Components

**`field-search`** — 716 × 73 on the landing page, 585 × 45 on the results page. Fill
`surface` `#1c1f26`, 3 px `#15418c` border, `padding: 20px 85px 0 22px` (landing) or
`7px 0 0 14px` (results). Value in Titillium Web 29 px / 50 px / 100 white; placeholder
`Search for ...` in 30 px / 45 px `on-background-ghost`. Square. No focus ring beyond the
border.

**`button-submit`** — 69 × 67 (landing) or 44 × 39 (results), solid `primary`, square, holding
a white magnifier PNG pulled from the field's right edge by a negative margin. The only
button on the site with no label.

**`chip-media`** — the three media-type filters as Material checkboxes inside `li.checked`.
Checked state: solid `primary` fill, `padding: 7px 10px 6px`, white 18 × 18 checkmark sprite,
white Sunflower label at 0.5 px tracking, and a 48 × 48 transparent touch target overhanging
the chip by 5 px on each side. Unchecked state: the same chrome with a 2 px `outline`
`#004ecf` border and no fill.

**`tab-sort`** — two sort controls ("Newest Uploads", "Trending & Popular") as 14 px-radius
outer buttons with 2 px padding around a 10 px-radius inner fill. Active is `surface-chip`
`#4c4d53` with a white down-arrow sprite and `padding: 7px 40px 7px 15px`; quiet is
`surface-chip-quiet` `#34373f` with `padding: 7px 15px`. Labels are Sunflower 23 px / 29 px /
500 white. A 10 px left margin separates the pair.

**`card-media`** — the masonry unit. 262 px wide, variable height, 2 px transparent border,
8 px vertical margin. Inside: a 254 px `.asset-thumbnail` on the page ground with
`padding: 10px 8px`, a 234 × 132 image, and for video assets an absolutely positioned
262 × 164 `.play` overlay carrying `play_btn-sm-2.png`. A hidden `pretty-checkbox`
(`.asset-checkbox`) sits in the top-left corner on `surface-select` `#34363b` for
multi-select download; it is `position: absolute` at 0 × 0 and never visible. Card titles are
Titillium Web 12.5 px / 14 px in `on-background-faint`.

**`button-download`** — 244 × 40 Bootstrap dropdown group on the detail page, 6 px radius,
solid `primary`, `padding: 10px 16px`, label DOWNLOAD in Sunflower 20 px / 30 px at 0.5 px
tracking, uppercase, with a white download glyph.

**`button-exif`** — 134 × 33, `surface-toggle` `#3f424c`, square, 1 px black border,
`padding: 8px 12px 5px`, `margin-left: -4px`, label "SHOW EXIF DATA +" in Sunflower
12 px / 18 px uppercase.

**`panel-metadata` / `row-metadata`** — the detail page's bibliographic block on
`surface-raised` `#26282f`. Labels (Date Created, Center, Keywords, Albums, Location,
Photographer) are Sunflower 15 px / 22.5 px / 100 in `on-background-muted`; values are white.
The EXIF table, when expanded, switches to `"SFMono-Regular"` 11.5 px / 17.25 px in
`on-background-faint` — the only monospace in the product.

**`link-breadcrumb`** — 60 × 29, 10 px radius, `padding: 5px 8px`, Sunflower 15.5 px /
23.25 px / 300 at 0.2 px tracking in `link` `#81aefb`, separated by a bare `>` glyph in
white. Only "Home" is a link; the current asset ID is plain text.

**`link-keyword`** — the detail page's keyword and album links: 10 px radius, Sunflower
15 px / 22.5 px / 100, `link`, with a trailing comma inside the anchor.

**`link-footer` / `link-footer-external`** — the 570 px centred footer list. Arial
13 px / 19.5 px / 700 uppercase, `padding: 5px`, 2 px transparent border, each `li` carrying
a 1 px `#b9c6dc` bottom rule. The right-hand block is `on-footer`; the left-hand block is
`link-bootstrap` `#0d6efd`, which is the mismatch described under Colors.

**`button-back-to-top`** — 153 × 46, centred by `margin: 0 461.7px`, fill
`surface-back-to-top` `#2e2e31`, 1 px white border, `padding: 12px 15px`, holding a
20 × 20 arrow sprite and an 86 px label in Inter 16 px / 20 px / 600 at −0.5 px.

**`button-next`** — 115 × 46, centred the same way, 10 px radius, `padding: 5px 10px`, label
in Inter 22 px / 26 px white. The only pagination control; there is no Previous and no page
numbers.

**`slider-track` / `slider-selection`** — the year range slider. A 289 × 1 rail on
`surface-track` `#58585b` with a 265 × 3 selection on `primary-bright` `#1c67e3` at 3 px
radius, flanked by two 24 × 24 black thumbs ringed in `#1c67e3` at `border-radius: 100%`.
The 1920 and 2026 end labels sit outside the rail in `"DM Moto"` 15 px / 19.53 px / 500.

**`share-button`** — three 48 × 48 Material icon buttons at `border-radius: 50%`,
`padding: 12px`, each holding a PNG badge (`badge_pinterest.png`, `badge_fb.png`,
`badge_twitter.png`) under a 24 × 24 `share_icon` and the label "Share this media:".

## Do's and Don'ts

**Do**

- Keep one saturated blue. `#15418c` should be the only fully saturated colour on any
  screen; everything else is a neutral or a tint of it.
- Set interface chrome in Sunflower at weight 100. The extra-light cut is what makes the
  chrome feel like instrumentation rather than like UI.
- Use the four-step ink ladder deliberately: white for headings and tabs, `#dddddd` for
  labels, `#cccccc` for data, `#b9c6dc` for footer links.
- Leave cards flat. The absence of shadow is the system's elevation model.
- Keep the search field visually dominant — 3 px border, oversized type, and the submit
  button nested inside its right edge.
- Report result state exactly, as the results header does.
- Preserve the 10 px default clickable radius for small text controls and the 14 px / 10 px
  tab ring.

**Don't**

- Don't add a second accent colour for success, warning or error states — the system has
  none, and inventing one breaks the monochrome-plus-blue logic.
- Don't lift the ground above `#101217` for cards. Card separation comes from the 2 px
  transparent border and the 8 px rhythm, not from a lighter fill.
- Don't round the media cards, the search field or the download button. They are square by
  design; only the chip-radius family is rounded.
- Don't reintroduce Bootstrap's default `#0d6efd` link colour on new footer links. It fails
  AA at 4.16:1 on the ground and it is already an inconsistency between the footer's two
  link blocks.
- Don't replace the PNG sprite icons (checkmark, magnifier, down-arrow, play, social badges)
  with an icon font. Material Icons is declared but never loaded, and the sprites are what
  actually render.
- Don't add elevation to the masonry. There is exactly one shadow in the product and it
  belongs to the detail page's photograph.
- Don't use Titillium Web outside the search field, or Sunflower for body copy. The
  three-family split is the typographic system.
- Don't animate layout. The only sanctioned transition is `color 0.3s ease`; the spring
  `cubic-bezier(0.32, 1.25, 0.375, 1.15)` appears on exactly one element and should stay
  that way.
