The configuration file is called config.json
and is located at the root of the project. There are three main sections.
Here is an example configuration file.
{
"info": {
"name": "Brad Garropy",
"handle": "bradgarropy",
"company": "Adobe",
"title": "Senior Frontend Developer"
},
"links": [
{
"name": "Website",
"url": "https://bradgarropy.com"
}
],
"style": {
"corners": "double",
"divider": "triple",
"baseColor": "white",
"accentColor": "blue"
}
}
The info
section describes who you are and where you work.
Name | Example | Description |
---|---|---|
name |
Brad Garropy |
Full name. |
handle |
bradgarropy |
Primary online username. |
company |
Adobe |
Company name. |
title |
Senior Frontend Developer |
Job title. |
Special characters used for the corners of the business card.
{
"info": {
"name": "Brad Garropy",
"handle": "bradgarropy",
"company": "Adobe",
"title": "Senior Frontend Developer"
}
}
The links
section highlights your best websites or social media accounts.
Name | Example | Description |
---|---|---|
name |
Twitter |
Name of the link. |
url |
https://twitter.com/bradgarropy |
URL of the link. |
It is an array of link
objects with a name
and url
. Order is preserved when printed to the business card.
{
"links": [{"name": "Twitter", "url": "https://twitter.com/bradgarropy"}]
}
The style
configuration controls certain visual aspects of the business card. Each one comes with preset values for you to choose from.
Name | Example |
---|---|
normal |
┌─────┐ |
rounded |
╭─────╮ |
heavy |
┏─────┓ |
double |
╔─────╗ |
doubleTop |
╒─────╕ |
doubleSide |
╓─────╖ |
Special characters used for the corners of the business card.
{
"style": {"corners": "heavy"}
}
Name | Example |
---|---|
normal |
────────── |
triple |
┄┄┄┄┄┄┄┄┄┄ |
quadruple |
┈┈┈┈┈┈┈┈┈┈ |
Special characters used for the horizontal rule above the footer.
{
"style": {"dividers": "triple"}
}
Name |
---|
white |
black |
red |
green |
yellow |
blue |
magenta |
cyan |
gray |
The color of the borders, job line, and link labels. You can use any chalk
color value.
{
"style": {"baseColor": "white"}
}
Name |
---|
white |
black |
red |
green |
yellow |
blue |
magenta |
cyan |
gray |
The color of the name link, link urls, and footer text. You can use any chalk
color value.
{
"style": {"accentColor": "blue"}
}