# useAnimations DESIGN.md

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

A near-black developer-tool marketing site for an animated icon library, set in Geist, lit by a single periwinkle accent, and built from generously rounded tiles separated by 7%-white hairlines.

- Website: https://useanimations.com
- Primary color: Blue `#7B8BFF`
- Fonts: Geist Variable, Geist Mono Variable
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/useanimations

## Palette preview

- `primary`: `#7b8bff`
- `surface`: `#101218`
- `hairline`: `#ffffff`
- `secondary`: `#c084fc`
- `on-primary`: `#08090c`
- `on-surface`: `#eef0f6`
- `swatch-red`: `#e5484d`
- `code-string`: `#8ddb8c`

## Typography preview

- `body-lg`: Geist Variable
- `code-md`: Geist Mono Variable

---

## Overview

useAnimations is the marketing and documentation site for a library of 300 free animated icons for React, and it is built in the register of a modern developer tool: near-black, quiet, and confident enough to let the product be the only decoration. The mood is precise and instrument-like — a dark canvas, one cool accent, and an enormous grid of small icons that does the persuading. Its audience is front-end engineers, so the page is dense with code, version badges and copy-to-clipboard affordances rather than lifestyle imagery. The hero states the proposition in five words over a live, interactive icon field that responds to the pointer, then the page unfolds into stat rows, interaction cards, the full icon grid, install snippets and an FAQ. Density is high but never crowded: everything sits on the same 4px spacing base inside the same rounded geometry.

## Colors

The site ships a full two-scheme token set; the dark scheme is the default and is what these tokens describe. The canvas is `surface-sunken` (#08090c), with `surface` (#101218) for tiles and cards and `surface-raised` (#161922) for code blocks and the documentation body — three near-blacks separated by only a few points of lightness, which is what gives the page its depth without shadows. Text runs in four steps of the same cool grey: `on-surface` (#eef0f6) for headings and primary copy, `on-surface-muted` (#9aa0b2) for paragraphs and nav, `on-surface-subtle` (#8a90a2) for tertiary labels and `on-surface-faint` (#6b7183) for the footer. `primary` (#7b8bff) is a soft periwinkle and is the only saturated colour in the interface — it appears in gradient headline words, focus rings, the selected icon tile and the ambient glow behind the hero. `secondary` (#c084fc) is the violet end of that gradient. Every edge is a hairline of white at 7% (`hairline`) or 13% (`hairline-strong`), never a solid grey. A row of five round swatches — indigo, red, amber, teal and purple — lets visitors recolour the icons and is treated as product UI, not brand. The light scheme is the exact mirror: `#fbfbfd` canvas, `#0d0f14` text, and the accent deepening to `#4b5cff`.

## Typography

Geist Variable carries the entire interface and Geist Mono Variable carries every piece of code; both are loaded as full variable fonts spanning weights 100–900, so the site never has to swap families mid-sentence. The scale is tight and top-heavy: a 60px/600 display headline with -0.025em tracking and a 1.0 line height, 48px/600 for section headings, 24px/600 for sub-headings and 18px/600 for card titles, all sharing the same negative tracking so the large type feels optically condensed. Body copy is deliberately quieter — 16px at 1.63 line height in `on-surface-muted`, with 18px used for lead paragraphs and 14px for dense UI text. The smallest step, 13px, is reserved for nav and footer links. Code is set at 14px inline and in blocks, 13px inside the small pill badges that name interactions (`loop`, `hover`, `click-toggle`). Nothing is italic and nothing is uppercased; hierarchy comes entirely from size, weight and the grey ramp.

## Layout

The page uses a 1280px container with 24px gutters and a 4px spacing base, and almost every measurement is a multiple of it. The homepage is a vertical stack of full-width bands — hero, stat row, interaction cards, the icon grid, install, styling, FAQ, CTA — separated by 128px of vertical rhythm so each section reads as its own chapter. Inside a band the grid is usually a simple 2- or 4-up of equal tiles. The icon grid itself is the densest object on the site: an auto-filling matrix of 56px square tiles at 16px radius with 12px gaps, each holding a single icon and nothing else. The documentation page switches to a classic three-part shell — a sticky 65px header, a left "On this page" sidebar, and a 672px content column — with a right-hand table of contents on wide viewports. Content never bleeds to the viewport edge; the 24px gutter is held at every breakpoint.

## Elevation & Depth

This is a hairline design. There is not a single drop shadow on a card, tile or panel anywhere on the site; separation is achieved with 1px borders of white at 7% opacity, which on a near-black canvas reads as a faint luminous edge rather than a line. The three surface steps (#08090c, #101218, #161922) do the rest of the work, so a code block is distinguished from the page purely by being two shades lighter. The only real depth cue is light: the hero sits over an ambient glow, `rgba(123,139,255,0.22) 0 40px 120px -60px`, which blooms the periwinkle behind the headline without ever resolving into a visible shape. The header is translucent (#08090c at 60%) with a backdrop blur, so content scrolls under it as a soft smudge. Focus rings are drawn as a 2px near-black ring plus a 4px periwinkle ring, giving inputs a double-halo that stays legible on both schemes.

## Shapes

Radius is the site's most distinctive trait and it is used generously. 16px is the workhorse — icon tiles, code blocks, the icon field, most cards — and 24px is reserved for the large interaction cards and the stat row, which are big enough to carry it. Buttons and chips are full pills at 9999px, including the "Browse icons" call to action, the language selector, the theme toggle and the `npm i react-useanimations` copy chip. Small elements step down deliberately: 8px for the tiny inline badges, 6px and 3px for the tightest chips. Nothing on the site is a hard rectangle except full-bleed section edges and table rules. The effect is soft and toy-like without being childish, and it is applied with enough consistency that a 4px radius would immediately read as a mistake.

## Motion & Micro-interaction

Motion is fast, eased and purposeful. The default transition is 150ms on `cubic-bezier(0.4, 0, 0.2, 1)` and covers colour, background, border and fill — Tailwind's own default duration — so every hover on the site resolves in the same beat. Border and shadow changes take a slightly longer 200ms on the same curve. The one place motion is allowed to be expressive is the icons themselves: colour and background animate over 600ms while transform takes 500ms on a springy `cubic-bezier(0.2, 0.9, 0.3, 1.4)` that overshoots slightly, which is what makes an icon feel like it is playing rather than fading. Panel and surface entrances use 300ms. There is no parallax, no scroll-scrubbing and no looping decorative animation outside the icons' own `loop` interaction, which is a product feature rather than chrome.

## Voice & Content Strategy

The copy is short, declarative and engineer-facing, with a habit of ending sections on a three-word verdict. The hero is "Icons that come alive." followed by one flat sentence of description; section headers are "300 free animated icons", "Every icon knows how to move.", "Install, import, done.", "Small, accessible and yours to style." and "Give your interface a pulse." — all sentence case, all no more than five words, none with an exclamation mark. Interaction names are given as literal code values (`loop`, `hover`, `click-toggle`, `hover-loop`) and explained in plain prose: "Plays continuously.", "Switches between two states on click (forward, then backward)." The install section is pure copy-paste with a single "Copy" affordance, and the FAQ answers in one or two sentences. Even the empty-state instruction is playful and instructional at once: "Move your pointer across the field."

## Components

**Header** is a 65px translucent bar at 60% near-black with a backdrop blur, holding the wordmark (with "use" in muted grey and "Animations" in white), a "v3" pill badge, six nav links at 14px in `on-surface-muted`, a flag language selector, a GitHub link, a theme toggle, and the white "Browse icons" pill as the only high-contrast element.

**Primary button** is a full pill (9999px), 36px tall, filled `on-surface` with `surface-sunken` text and 20px horizontal padding — an inverted, high-contrast shape that stands out hard against the dark chrome. Secondary controls are ghost pills: transparent, `on-surface-muted`, same 36px height.

**Icon tile** is a 56px square at 16px radius on `surface`, separated from its neighbours by a 7%-white hairline and 12px gaps. The selected tile inverts to the periwinkle accent, and the whole grid is wrapped in a single 16px-radius field.

**Code chip** is the `npm i react-useanimations` pill: 46px tall, fully rounded, near-black at 70% opacity with a 13%-white border, Geist Mono at 14px, with a "Copy" button at the right end.

**Code block** is a 16px-radius panel on `surface-raised` with 24px padding and GitHub-dark-dimmed syntax colours — green strings, red keywords, purple functions, blue constants and grey-blue variables.

**Interaction card** is a 24px-radius tile with 24px padding that names its interaction as a code value, states what it does in one sentence, and demonstrates it live; these are the largest cards on the page at roughly 300px tall.

**Stat row** is a four-up band of 48px/600 numbers with 14px muted labels ("300 animated icons", "6 built-in interactions", "8 kB player, gzipped", "0 dependencies"), divided by vertical hairlines.

**Documentation table** is a three-column reference (Interaction / What it does / Example icons) with a 7%-white header rule and inline mono badges for every value.

**Footer** is a `surface-sunken` band with `on-surface-faint` 13px links in four labelled columns plus a language list.

## Do's and Don'ts

- Do keep only one saturated colour in the interface: `primary` (#7b8bff). The five round swatches are product controls, not brand extensions.
- Do build every edge from a 7%-white hairline. Never reach for a solid grey border or a card shadow.
- Do hold the three-step surface ramp (#08090c page, #101218 tile, #161922 raised) exactly; adding a fourth near-black flattens the hierarchy.
- Do keep 16px as the default radius and reserve 24px for cards tall enough to carry it. Buttons and chips stay full pills.
- Do set all headings at weight 600 with -0.025em tracking, and all body copy in `on-surface-muted`; don't brighten paragraphs to full `on-surface`.
- Do keep transitions at the 150ms default and the 200ms border/shadow variant. Reserve the 600ms/500ms spring curve for the icons' own play states.
- Do use Geist Mono for every code value, including the short interaction names inside prose.
- Don't add italics, uppercase or letter-spaced labels; the type system has no room for them.
- Don't let the ambient periwinkle glow resolve into a visible shape — it should read as light, never as a blob.
- Don't drop below 13px for any text, and don't tighten the 24px page gutter at any breakpoint.
- Don't "fix" the two shipped low-contrast pairs without a deliberate decision: footer links at `on-surface-faint` on `surface-sunken` measure 4.09:1, and the 13%-white strong hairline is intentionally only slightly brighter than the default.
