|
| 1 | +# The Foundation : Brand Kit, Install and Usage |
| 2 | + |
| 3 | +Everything you need to put the brand live. Read top to bottom the first time. Each terminal block is meant to be run one block at a time; after each one, glance at the output before moving on. |
| 4 | + |
| 5 | +If you only do two things, do these: upload `avatar/avatar-512.png` as the org avatar, and upload `social/social-preview.png` under repository Settings, Social preview. Everything else is polish. |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## A. What is in this kit |
| 10 | + |
| 11 | +``` |
| 12 | +brand/ |
| 13 | + README.md The brand spec (colour tokens, fonts, voice). Lives in the repo. |
| 14 | + INSTALL.md This file. |
| 15 | + brand-guidelines.html Open in a browser for the full visual reference. |
| 16 | + logo/ |
| 17 | + the-foundation-logo.svg Horizontal lockup, light backgrounds |
| 18 | + the-foundation-logo-reversed.svg Horizontal lockup, dark backgrounds |
| 19 | + the-foundation-mark.svg Mark only, light backgrounds |
| 20 | + the-foundation-mark-reversed.svg Mark only, dark backgrounds |
| 21 | + avatar/ |
| 22 | + avatar-512.png Upload this as the GitHub org or repo avatar |
| 23 | + mark-512-transparent.png Mark only, transparent, for slides or docs |
| 24 | + favicon/ |
| 25 | + favicon.ico 16, 32, 48 in one file |
| 26 | + favicon.svg Scalable source |
| 27 | + favicon-16/32/48.png Individual sizes |
| 28 | + apple-touch-icon.png 180 x 180 |
| 29 | + social/ |
| 30 | + social-preview.png 1280 x 640, GitHub social preview and Open Graph |
| 31 | + social-preview.svg Editable source |
| 32 | +``` |
| 33 | + |
| 34 | +The wordmark in every logo and social file is converted to vector outlines, so the files look identical on any machine with no font installed. |
| 35 | + |
| 36 | +--- |
| 37 | + |
| 38 | +## B. Preview the guidelines (30 seconds, no terminal) |
| 39 | + |
| 40 | +1. Double-click `the-foundation-brand.zip` to unzip it. You get a folder called `brand`. |
| 41 | +2. Open the `brand` folder and double-click `brand-guidelines.html`. |
| 42 | +3. It opens in your browser. You will see the logo, colour palette, fonts, icon set, and tone of voice. You need an internet connection the first time so the fonts can load. |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +## C. Add the brand folder to the repo (terminal) |
| 47 | + |
| 48 | +Your repo is the monorepo that already contains `open-charity-api`. From your earlier work that is: |
| 49 | + |
| 50 | +``` |
| 51 | +/Users/mohamedhhussain/Projects/The-Foundation/Foundation/Foundation |
| 52 | +``` |
| 53 | + |
| 54 | +### Block 1 : confirm you are in the right place |
| 55 | + |
| 56 | +```bash |
| 57 | +cd /Users/mohamedhhussain/Projects/The-Foundation/Foundation/Foundation |
| 58 | +ls |
| 59 | +``` |
| 60 | + |
| 61 | +You should see `open-charity-api` in the list (along with README.md, LICENSE, and so on). If you do, you are in the repo root. If you do not see `open-charity-api`, stop and tell me what `ls` shows, because the path has moved. |
| 62 | + |
| 63 | +### Block 2 : pull the latest, then copy the brand folder in |
| 64 | + |
| 65 | +```bash |
| 66 | +# make sure local is in sync with GitHub first |
| 67 | +git pull |
| 68 | + |
| 69 | +# copy the unzipped brand folder from Downloads into the repo root |
| 70 | +cp -R ~/Downloads/brand . |
| 71 | + |
| 72 | +# check it landed |
| 73 | +ls brand |
| 74 | +``` |
| 75 | + |
| 76 | +`ls brand` should show `README.md`, `brand-guidelines.html`, `logo`, `avatar`, `favicon`, `social`, and this `INSTALL.md`. |
| 77 | + |
| 78 | +If `cp` reports that `~/Downloads/brand` does not exist, it means the zip unzipped somewhere else. Run `ls ~/Downloads | grep -i brand` to find it, then adjust the path in the `cp` command. |
| 79 | + |
| 80 | +### Block 3 : commit and push |
| 81 | + |
| 82 | +```bash |
| 83 | +git add brand |
| 84 | +git commit -m "Add brand kit: logo, favicon, social preview, guidelines" |
| 85 | +git push |
| 86 | +``` |
| 87 | + |
| 88 | +That is the brand folder live in the repo. Confirm by visiting: |
| 89 | +`https://github.com/the-foundation-stack/Foundation/tree/main/brand` |
| 90 | + |
| 91 | +--- |
| 92 | + |
| 93 | +## D. Set the GitHub avatar (browser, cannot be done from git) |
| 94 | + |
| 95 | +GitHub avatars must be a PNG or JPG, which is why `avatar-512.png` exists. |
| 96 | + |
| 97 | +For the organisation avatar: |
| 98 | +1. Go to `https://github.com/organizations/the-foundation-stack/settings/profile` |
| 99 | +2. Under **Profile picture**, click **Upload a photo** |
| 100 | +3. Choose `brand/avatar/avatar-512.png` |
| 101 | +4. GitHub will let you crop. Leave it centred, then save. |
| 102 | + |
| 103 | +(If you would rather set it on the repo itself rather than the org, GitHub does not support per-repo avatars; the org avatar is what shows.) |
| 104 | + |
| 105 | +--- |
| 106 | + |
| 107 | +## E. Set the social preview (browser) |
| 108 | + |
| 109 | +This is the image people see when the repo is shared on Slack, X, LinkedIn, and so on. |
| 110 | + |
| 111 | +1. Go to `https://github.com/the-foundation-stack/Foundation/settings` |
| 112 | +2. Scroll to **Social preview** |
| 113 | +3. Click **Edit**, then **Upload an image** |
| 114 | +4. Choose `brand/social/social-preview.png` |
| 115 | + |
| 116 | +Done. Share the repo link anywhere to see it. |
| 117 | + |
| 118 | +--- |
| 119 | + |
| 120 | +## F. Wire the favicon and preview into the docs site (optional) |
| 121 | + |
| 122 | +This applies to the published docs landing page (the `docs-site/index.html` that deploys to `the-foundation-stack.github.io/Foundation/`). It makes the browser tab show the keystone icon and makes link previews use the social card. |
| 123 | + |
| 124 | +Open `docs-site/index.html` and paste these lines inside the `<head>` section: |
| 125 | + |
| 126 | +```html |
| 127 | +<link rel="icon" href="/Foundation/brand/favicon/favicon.ico" sizes="any"> |
| 128 | +<link rel="icon" href="/Foundation/brand/favicon/favicon.svg" type="image/svg+xml"> |
| 129 | +<link rel="apple-touch-icon" href="/Foundation/brand/favicon/apple-touch-icon.png"> |
| 130 | +<meta property="og:title" content="The Foundation"> |
| 131 | +<meta property="og:description" content="Open standards for charitable giving."> |
| 132 | +<meta property="og:image" content="https://the-foundation-stack.github.io/Foundation/brand/social/social-preview.png"> |
| 133 | +``` |
| 134 | + |
| 135 | +Note the `/Foundation/` prefix in the paths. GitHub Pages for a project repo serves the site under that subpath, so the leading `/Foundation/` is needed. If you ever move to a custom domain at the root, drop the `/Foundation` prefix. |
| 136 | + |
| 137 | +Commit and push the same way as Block 3, wait two or three minutes for the deploy, then hard-refresh the page (Cmd + Shift + R) to see the new tab icon. |
| 138 | + |
| 139 | +--- |
| 140 | + |
| 141 | +## G. Where each file goes, at a glance |
| 142 | + |
| 143 | +| File | Goes where | |
| 144 | +|------|------------| |
| 145 | +| `avatar/avatar-512.png` | Org settings, Profile picture | |
| 146 | +| `social/social-preview.png` | Repo Settings, Social preview | |
| 147 | +| `favicon/*` | Referenced from `docs-site/index.html` head | |
| 148 | +| `logo/*.svg` | README badges, slides, the docs site header | |
| 149 | +| `brand-guidelines.html` and `README.md` | Stay in the repo `brand` folder as the reference | |
| 150 | + |
| 151 | +--- |
| 152 | + |
| 153 | +## Need a raster version of the lockup? |
| 154 | + |
| 155 | +The lockups are SVG. If a tool needs a PNG (for example a slide deck), open the SVG in any browser, or tell me the size you need and I will export it. |
| 156 | + |
| 157 | +If you want the colour palette changed, or the wordmark set in a different display face, say so and I will regenerate the entire kit in one pass so everything stays consistent. |
0 commit comments