# NASA Open Data Portal DESIGN.md

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

A US Web Design System-flavoured Bootstrap build in Public Sans and Inter — black navigation, a full-bleed orbital hero, one NASA-red call to action, and a light catalogue UI held together by hairlines.

- Website: https://data.nasa.gov
- Primary color: Red `#D83933`
- Fonts: Public Sans Web, DB Mono, Inter
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/nasa-open-data-portal

## Palette preview

- `badge`: `#6e6e6e`
- `primary`: `#d83933`
- `surface`: `#ffffff`
- `secondary`: `#206b82`
- `badge-info`: `#2e759e`
- `on-inverse`: `#ffffff`
- `on-primary`: `#ffffff`
- `on-surface`: `#333333`

## Typography preview

- `nav`: Public Sans Web
- `code`: DB Mono
- `title`: Inter

---

## Overview

This is a **federal open-data portal wearing a Nasa skin**. The chassis is Bootstrap 5 with
the US Web Design System's Public Sans, customised with a black navigation bar, a
full-bleed orbital hero photograph, and exactly one red button. The personality is
institutional and plain-spoken: it opens with the blunt question "Want NASA data?",
answers it in one sentence, and then gets out of the way.

The page is split into two moods that share one grid. Above the fold is a **dark,
cinematic hero** — Earth's limb and a spacecraft filling the viewport, white 72px display
type over it — which exists to make the catalogue feel like a mission rather than a
database. Below it the site switches to a **light, utilitarian catalogue**: white
surfaces, `#333333` body copy, hairline dividers, and a filter sidebar of grey tag pills.
The transition is a hard cut, not a gradient, and it happens roughly 820px down the
homepage.

Emotionally the register is confident and unhurried. There is no marketing copy, no
testimonial, no pricing and no animation anywhere; the persuasion is entirely the
photograph. That restraint is the design's main gesture, and it is what separates a
government portal from a product landing page.

## Colors

The palette is small, and every value in it has a job.

- **Primary (#D83933):** NASA red, and it appears exactly once on the homepage — the
  `Data Catalog` button. It is the only saturated colour in the interface and the only
  red that is not the NASA logo, which is what makes it function as an action colour
  rather than as branding.
- **Secondary (#206B82):** the Bootstrap primary, a desaturated teal used for links on
  light surfaces. It never appears as a fill, only as underlined text.
- **Surface (#FFFFFF) / Surface Muted (#F6F6F6):** the catalogue pages. White for the
  page and cards, a barely-there grey for inset regions such as the organisation filter.
- **On Surface (#333333):** all body and heading copy on light surfaces — Bootstrap's
  `gray-900`, and the only text colour the catalogue uses.
- **Inverse Surface (#000000):** the navigation bar and the hero's search field. Pure
  black, not a dark grey, which is what gives the header its hard edge against the
  photograph.
- **Inverse Surface High (#17171B):** the homepage's dark body band, a hair off pure
  black so the hero photograph still reads as the brightest thing on the page.
- **Inverse Surface Higher (#1C1C20):** the footer, one more step up.
- **On Inverse (#FFFFFF) / On Inverse Muted (#B9B9BB):** white for headings and primary
  copy on dark, a cool light grey for footer links and secondary lines. Hierarchy on
  dark surfaces is carried almost entirely by this two-step.
- **Badge (#6E6E6E):** the fully-rounded tag pills in the catalogue sidebar
  (`mars - 1321`, `nasa - 1086`), grey with white counts.
- **Badge Info (#2E759E):** the `HTML` format badge on dataset listings; the `BIN`
  badge beside it stays grey.
- **Neutral Action (#6C757D):** Bootstrap's secondary grey, used for the catalogue's
  search submit button — deliberately quieter than the red CTA.

White on `#D83933` measures 4.6:1 — it clears the 4.5:1 AA threshold, but only just, so
the pairing should not be reused for smaller or lighter text.

## Typography

Two families, split cleanly by role. **Inter** sets every heading and display string;
**Public Sans** — the US Web Design System face — sets all body, label, navigation and
input text. Both are served as real webfonts (Public Sans Regular and Bold, Inter as a
variable split, plus DB Mono for code), so the system renders identically everywhere.
Helvetica Neue sits in the fallback stack and Font Awesome 6 Solid supplies the icons.

- **Display (Inter 72px / 800, line-height 1.0):** the hero headline, set tight and
  negatively tracked. It is the largest type on the site by a factor of two and appears
  once.
- **Heading Large (48px / 600) and Heading Medium (36px / 700):** the catalogue and
  about-page section titles. Note the weight inversion — the smaller heading is bolder
  than the larger one, which keeps the 36px level from disappearing into body copy.
- **Heading Small (24px / 600) and Heading Extra Small (21px / 600):** the dark-band
  section headings and the footer column titles.
- **Body Large (Public Sans 16px / 400, line-height 1.65):** the hero paragraph and all
  long-form copy on light surfaces.
- **Body Medium (Public Sans 14px / 400, line-height 1.2):** links, footer copy and
  dense list text.
- **Label Large (Public Sans 22px / 700):** the CTA caption — bold, tightly led, and
  the only label set this large.
- **Label Medium (Public Sans 14px / 700, line-height 1.8):** badges and the secondary
  button.
- **Navigation (Public Sans 18px / 600):** the header links, loosely led at 1.8 so the
  bar breathes.
- **Input (Public Sans 15px / 400):** both search fields.

The scale is rem-based and several computed sizes land on fractions (14.4px, 17.6px,
22.08px, 24.5px); the values above are the rounded design intent. Weights stop at three
— 400 for body, 600 for navigation and mid headings, 700/800 for display and labels —
and there is no italic anywhere.

## Layout

A 1440px viewport with a **1400px outer container** and a **1040px content column** on
the homepage; the catalogue widens to **1200px** to fit its sidebar and results list.
Everything sits on Bootstrap's 12-column grid with an 8px base spacing unit, and the
values actually used cluster at 8, 12, 15, 16, 20, 24, 25 and 32px.

The homepage is three stacked bands: an **81px black header**, a **full-bleed hero**
running to roughly 820px, and a **dark body band** closing with the footer. The hero's
text block is constrained to about 500px and hard-left-aligned at a 40px margin — the
photograph occupies the right two-thirds entirely unoccluded, which is the composition's
main decision.

The catalogue page inverts the proportion: a **344px filter sidebar** on the left
(organisations, groups, tags, formats — each a grey pill with a white count) and a
results column on the right holding a search field, an `Order by` select, a result
count, and a list of datasets separated by dotted hairlines. The About page is the
simplest of the three: a single bordered white panel, 4px radius, holding a stack of
section headings and bulleted lists.

## Elevation & Depth

Almost completely flat. There are **no drop shadows on any major surface** — the only
shadows in the entire capture are Bootstrap's default inset highlights on form controls
(`rgba(0,0,0,.075)` at 1px) and a 4px focus ring. Depth is conveyed by three means, in
order of importance:

1. **Hard colour edges** — the black header against the photograph, the white catalogue
   against its grey insets.
2. **Hairline borders** — `#DDDDDD` and `#DEE2E6` 1px rules separate list rows, panels
   and sidebar sections.
3. **Full-bleed photography** — the hero image is the only thing on the site with any
   tonal depth, and it is content rather than chrome.

On the dark bands the layering is purely tonal: `#000000` header, `#17171B` body,
`#1C1C20` footer, with `#2E2E32` as the hover/overlay step above them.

## Shapes

Corner radius is small and consistent, and it is the clearest signal of the Bootstrap
chassis:

- **10px** — the largest radius in use, on the hero's inset elements and the catalogue's
  larger containers.
- **5px** — the red CTA, the one bespoke radius on the site.
- **4px** — the default Bootstrap step: panels, the secondary button, format badges,
  list insets.
- **50% / fully rounded** — the tag pills and avatars, the only circular shapes.
- **0px** — the header, the search inputs, and every full-bleed band.

There are no diagonal cuts, no blobs and no asymmetric shapes anywhere. Icons are
Font Awesome glyphs with no container.

## Motion & Micro-interaction

Motion is limited to two recipes, both short and both inherited from Bootstrap rather
than designed:

- **State change (200ms, `ease`)** — applied to twelve elements, covering hover and
  focus feedback on links, buttons and form controls. Fast enough to read as immediate.
- **Surface (400ms, `ease`)** — applied to nine elements, used for the slower
  show/hide behaviour of dropdowns and collapsible filter groups.

Nothing loops, nothing parallaxes, and nothing animates on scroll. The hero photograph
is static. Both durations are short enough that no `prefers-reduced-motion` handling is
strictly necessary, though the 400ms recipe should be the one suppressed if it is added.

## Voice & Content Strategy

- **Tone of voice:** Plain, factual, and mildly wry. The hero asks a question
  (`Want NASA data?`) and answers it in one sentence without a single superlative.
  Marketing language is absent by design — this is a government portal, and the copy
  reads like documentation rather than advertising.
- **Capitalization:** Sentence case throughout, including headings (`What is
  Data.nasa.gov?`, `Who Benefits?`, `Want to submit a catalog entry?`). Product names
  keep their canonical casing — `Data.nasa.gov`, `NASA`, `KenKen`-style proper nouns are
  not present, but `Api.nasa.gov` and `Code.nasa.gov` are written as the brands spell
  themselves.
- **Terminology:** "Dataset" is the canonical unit, never "record", "file" or "entry".
  "Catalog" refers to the whole repository. Mirrors and alternates are not euphemised.
- **Button and action labels:** Short verb phrases naming the destination —
  `Data Catalog`, `Explore NASA Data`, `Take me to the visualization page`. No generic
  `Submit`, `Click here` or `Learn more`.
- **Numbers, dates, and units:** Counts are formatted with thousands separators
  (`36,538 datasets found`, `5.00` for the review average). Tag counts are bare integers
  inside pills. No dates or units appear in the interface copy.
- **Empty, loading, and error states:** The catalogue has a real empty state — "There
  are no Groups that match this search" — which states the condition plainly and offers
  no apology or illustration.

## Components

- **Header (`header`)** — 81px, pure black, full width, flat. NASA meatball and the
  `NASA Open Data Portal` wordmark at left; `Datasets` and `About` as 18px/600 links
  with the current page underlined; a black search input with a `#444447` hairline at
  right. No border, no shadow, no scroll behaviour.
- **Call to action (`cta`)** — the site's only red element: `#D83933`, 5px radius,
  16px/32px padding, 54px tall, roughly 168px wide, with a 22px/700 white Public Sans
  label. It appears exactly once on the homepage.
- **Link (`link`)** — `#206B82`, underlined, 14px/400. Never used as a fill and never
  set in red.
- **Search input (`search-input` / `search-input-light`)** — two variants of the same
  32px control: black-filled with white text and a `#444447` border in the header,
  white-filled with `#333333` text and a `#CED4DA` border in the catalogue. Both are
  square-cornered with 8px of left padding.
- **Secondary button (`button-secondary`)** — Bootstrap grey `#6C757D`, 4px radius,
  36px tall, carrying the catalogue's search submit.
- **Tag pill (`tag-pill`)** — `#6E6E6E`, fully rounded, white 14px/700 label with the
  count set in the same pill. The sidebar is a vertical stack of these, separated by
  hairlines.
- **Format badge (`badge-format`)** — small 4px-radius chips marking each dataset's
  available formats; `#2E759E` for `HTML`, grey for `BIN`.
- **Panel (`panel`)** — `#F6F6F6` inset with a 1px `#DDDDDD` border and 4px radius;
  used for the organisation filter and the About page's content card.
- **Footer (`footer`, `footer-heading`, `footer-link`)** — `#1C1C20` band with white
  headings, `#B9B9BB` links, and the NASA meatball plus "Follow NASA" social row at the
  bottom.
- **Inverse body (`inverse-body`)** — the `#17171B` band below the hero, carrying the
  homepage's dark section copy in white 16px/400.
- **Code (`code`)** — DB Mono at 14px, used for API and endpoint references.

## Do's and Don'ts

- Do keep the red CTA unique. One `#D83933` button per view is what makes it read as
  the page's primary action; a second red button destroys the hierarchy instantly.
- Do let the hero photograph run full-bleed and unoccluded on the right — the empty
  two-thirds is doing the work.
- Do use the two-step dark hierarchy (`#000000` → `#17171B` → `#1C1C20`) rather than
  shadows or borders to separate the header, body and footer.
- Do set headings in Inter and body copy in Public Sans. Mixing the two within one
  block breaks the system's clearest rule.
- Do keep tag pills fully rounded with the count inside the same pill.
- Don't add drop shadows to panels or cards — the design has none, and the first one
  added will look like a bug.
- Don't use the teal `#206B82` as a fill. It is a link colour only, and it is
  deliberately quieter than the red CTA.
- Don't set body copy below 14px, and don't raise the hero display above 72px — the
  gap between those two sizes is the whole type hierarchy.
- Don't round the search inputs or the header; both are square by intent.
