Nasaq

BrandGuidelines

A brand guidelines page with downloadable marks on light and dark grounds, copyable palette swatches, typography, do and dont rules and social cards. It shows only assets that are passed in or already in the repo.

PreviewOpen ↗

Code

import { BrandGuidelines } from "@fadymondy/nasaq/web";export function Page() {  return <BrandGuidelines brand="nasaq" intro="How to use the Nasaq mark and colours." />;}

Brand · beta

Live examples and controls: BrandGuidelines in the lab.

Install

npx shadcn@latest add https://docs.nasaqui.com/r/brand-guidelines.json

One page that says how a brand is used. By default it reads the brand package: the mark comes from the brand's own specification (downloaded unchanged as SVG on a light and a dark ground) and the palette from its manifest. Nothing is invented here.

When to use

  • A brand or press page for a Nasaq product, or for a client brand you pass assets for.

When not to use

  • Do not use it to show a logo you were not given. It never draws a logo of its own and offers no font files.

Import

import { BrandGuidelines } from "@fadymondy/nasaq/web";

Quick start

import { BrandGuidelines } from "@fadymondy/nasaq/web";

export function Page() {
  return <BrandGuidelines brand="nasaq" intro="How to use the Nasaq mark and colours." />;
}

API

PropTypeDefaultDescription
brandBrandKeyrequiredThe brand to document.
title, introReactNodelabelHeading and lead.
assetsBrandAsset[]official mark, light and darkid, name, format, href, filename, ground, preview.
colorsBrandColor[]the brand's paletteid, name, value, usage, onColor. Copy button per swatch.
fontsBrandFont[]noneFamily, role, sample, weights, licence line and link. Names and specimens only.
dos / dontsBrandRule[]built-in logo and colour rulesText, plus an optional example you supply. Pass [] to hide.
ogCardsBrandOgCard[]noneA finished image, or a live layout with the mark and text.
onDownload(asset) => voidnoneFires on a download click.
labelsBrandGuidelinesLabelsen and ar

The parts are exported too: BrandAssetCard, BrandSwatch, BrandDoDont, BrandOgCardView. Helpers: brandPalette, brandMarkDownloads, paletteFromManifest, markDownloadItems, svgDataUri, brandColorCopyValue, ogSizeLabel.

Accessibility

Sections are landmarks labelled by their headings, with an in-page nav. Do and Don't carry an icon and a word. Copy and download buttons have names that include the colour or file.

RTL & i18n

The page mirrors. Colour values, sizes and font names stay left to right. The mark itself is never mirrored.

Styling & tokens

Page chrome uses Nasaq tokens. Swatches show the brand's own values, which are data, not tokens.

Do / Don't

  • Do pass assets you have the right to show.
  • Do not recolour, mirror, distort or redraw an official logo, and do not swap in a generic icon.
  • Do not invent a palette when the brand has one.
  • Do not redistribute font files unless the licence allows it.

Lab

https://docs.nasaqui.com/?path=/docs/components-brand-brand-guidelines--docs

On this page