Skip to content

Bike-Worcester/bike-worcester-branding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bike Worcester Branding

A collection of brand guidelines and resources for Bike Worcester and its associated projects.



Installation

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

Building

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.

Extending and editing

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.

Config options

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
      }
    ]
  }

Troubleshooting

Build process fails reading controlPoint

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.

About

A collection of brand guidelines and resources for Bike Worcester and its associated projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •