@getstation/logo-generator

git clone git@github.com:getstation/logo-generator.git cd logo-generator yarn install

Usage no npm install needed!

<script type="module">
  import getstationLogoGenerator from 'https://cdn.skypack.dev/@getstation/logo-generator';
</script>

README

logo-generator

Getting Started

git clone git@github.com:getstation/logo-generator.git
cd logo-generator
yarn install

Usage

Options

Option Description
-data path to a CSV file (default is ./data.csv)
-name name of the exported SVG
-url URL of the PNG logo (support local and online files)
-clearbit param for the Clearbit logo API
-color background color of the logo (HTML compliant)

You can either pass a logo with -url or -clearbit.

See the Clearbit logo API: https://clearbit.com/logo.

You can also pass a CSV file which contains rows of name, url and color.

Examples

node lib/cli.js -color 'purple' -clearbit 'datadog.com' -name 'logo-datadog'
node lib/cli.js -color '#1F4087' -url './logo-atlassian.png'
node lib/cli.js -data

Everything will be exported in the exports/ folder.

Todo

  • Be able to pass an SVG logo directly (and minify into a single path)
  • Handle complex PNG files with multiple colors and gradients/opacity