Skip to content

Add OpenWDL brand guidelines website#3

Merged
claymcleod merged 8 commits into
mainfrom
feat/brand-guidelines-site
Jun 28, 2026
Merged

Add OpenWDL brand guidelines website#3
claymcleod merged 8 commits into
mainfrom
feat/brand-guidelines-site

Conversation

@claymcleod

@claymcleod claymcleod commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Turned the existing brand-guidelines.pdf into a living, single-page web reference for the OpenWDL brand, built as a static React (Vite + TypeScript) site under site/. Everything renders from one typed data module (src/data/brand.ts), so the palette, type scale, logo metadata, and grid densities share a single source of truth.

The site covers the full brand system and layers practical tooling on top of the static PDF:

  • Logo construction and the approved color variants, with a live preview that recommends the right variant for any chosen background.
  • Typography specimens with click-to-copy CSS tokens, and the Teal and Cool Gray palette with click-to-copy hex swatches.
  • A Grid section documenting the three dot-grid densities, plus a downloads area offering individual logo assets and a client-side zip of the whole set.
  • A dotted-grid hero backdrop that fades off the first screen, a sticky nav, and a dark theme built entirely on CSS design tokens.

On the tooling side, ESLint with eslint-plugin-jsdoc enforces a documented public API, and Vitest covers the interactive logic: clipboard copy, the toast lifecycle, the luminance-based variant recommendation, type-token formatting, and zip building. Two GitHub Actions workflows were added, one to run lint and tests on every push and pull request, and one to build and deploy the site to GitHub Pages from main.

The change also renames Guidelines.pdf to brand-guidelines.pdf and ignores the local docs/ working directory.

Adds a static React (Vite + TypeScript) brand-guidelines site under
`site/` that renders the existing `brand-guidelines.pdf` as a living,
single-page web reference driven by a typed data module
(`src/data/brand.ts`), so colors, type tokens, logo metadata, and grid
scales have one source of truth.

- Sections for logo construction, logo color usage with a live
  background-luminance preview, typography with copyable CSS tokens, the
  color palette with click-to-copy swatches, the dot-grid scales, and
  downloadable logo assets (per-asset and a client-side zip).
- A dotted-grid hero backdrop that fades off the first screen, a sticky
  nav, and a dark theme built entirely on CSS design tokens.
- ESLint with `eslint-plugin-jsdoc` enforcing documented exports, plus
  GitHub Actions workflows for lint/test and GitHub Pages deployment.

Also renames `Guidelines.pdf` to `brand-guidelines.pdf` and ignores the
local `docs/` working directory.
Adopts the CC BY 4.0 license from main and updates the site footer in `Footer.tsx` to match.
`actions/checkout` v4→v7, `actions/setup-node` v4→v6, `actions/upload-pages-artifact` v3→v5, and `actions/deploy-pages` v4→v5. Node bumped 20→22 since Node 20 reached end-of-life.
Replaces the hand-rolled `GitHubIcon` SVG component with `SiGithub` from `react-icons`, so iconography comes from a maintained set rather than inline path data.
@claymcleod claymcleod merged commit dc86889 into main Jun 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant