A collection of brand guidelines and resources for Bike Worcester and its associated projects.
Clone this repository and install its dependencies:
git clone https://github.com/Bike-Worcester/bike-worcester-branding.git
cd ./bike-worcester-branding
pnpm install
Also make sure the path to the Inkscape binary is in your $PATH
. You can check this by running:
which inkscape
If you don't have Inkscape installed, you can install it with:
sudo apt-get install inkscape
# or
brew install inkscape
If you're on Windows, you can download the installer from the Inkscape website.
Set the path to the Inkscape binary in .env
:
INKSCAPE_PATH=/path/to/inkscape
To generate images from the src
vector files:
pnpm run build
Images will be saved to the assets
directory and usage docs generated in the docs
directory.
The build process reads from the config.js
file. Make changes there, then run pnpm run build
to regenerate assets and docs.
When designing new artwork, follow these guidelines:
- Convert all strokes and text to paths, and keep the use of groups to a minimum.
- Keep the document to 1024 pixels wide and proportionally high according to the aspect ratio.
- Round all proportionally scaled heights to the nearest pixel.
- Always save as a plain svg file to 2 decimal places (if export settings allow).
- When saving mono files:
- remove all fill and stroke colours
- convert all strokes to paths
- reduce to a single compound path and fill black
- When saving multicolour files:
- set the shapes to be coloured to pure black
- set the background to pure white
Note: Some applications generate messy non-standard svg files, so always check the exported svg file in a web browser.
const config =
'id-of-branding': {
name: 'Human-readable name of branding',
thumbnail: 'variant-file', // 'file' field of variant to use as a thumbnail
variants: [
{
file: 'variant-filename-without-extension',
name: 'Human-readable name of variant',
description: 'Description of variant',
sizes: [1024,2048], // Array of widths to generate images to (leave blank for no images)
mono: false, // If true, include a file-mono.svg file in the assets
multicolours: false, // If true, file should include pure black and white for fg and bg colours
scalable: true, // If true, generates an svg file of the variant,
copy: false, // If true, generates a copy of the original file
}
]
}
If the build process fails with this svgo
error, open the original svg file in svgomg and save it again. This will clean up the file and remove any non-standard attributes.