Configuration
There is no config file. brand-kit reads what the repo already has, and flags override it.
Name
The package.json name, without the scope: @acme/my-lib becomes my-lib.
Tagline
The first of:
--tagline "…"- the repo's entry in the
@rtorcato/shared-docsfamily list - the
package.jsondescription
Keep it to two lines on the mobile banner. brand-kit warns when it will be cut off.
Accent
The first of:
--accent "#rrggbb"- the family entry's accent
- the docs site's theme colour
- the colour of an existing favicon
- neutral grey
Logo
The default logo is the project's initial on an accent tile. An existing
favicon.svg, at the repo root or in apps/docs/static/img/, is kept as the
logo instead. --ai replaces it with a generated one.
Changing things later
Rerun with the new values and --update. It rewrites the sources that differ
and re-renders:
npx @rtorcato/brand-kit --tagline "New line" --accent "#e879f9" --update
--update never rewrites brand/favicon.svg, so a hand-drawn or generated
logo survives. Delete it first if you want the default tile back.
Keeping it current in CI
doctor reports missing sources, stale renders and a README without the
banner. With --strict, warnings fail too:
- run: npx @rtorcato/brand-kit doctor --strict