- All of our FDS Icons reflect a set of Icons that CB Insights designers have in their system. We do not accept any other outside icons.
- These Icons live in closed source Sketch file that can only be accessed by CB Insights employees.
- In order for us to add an icon to FDS, it must be added to the UI Platform Icons set by a product designer here: https://app.abstract.com/projects/0b3bf318-e4a9-4319-8a9f-52f161094fb2/branches/master/files/D109C042-4BC3-434D-844A-6F3AA9E2881C
- You (a CB Insights developer) can request a new icon be added to that file in this Slack channel: https://cbinsights.slack.com/archives/C01TDGQ0T47
Most of you will want to request the icons be added to FDS rather than doing it yourselves:
- Verify that the icon you need is in Abstract first: https://app.abstract.com/projects/0b3bf318-e4a9-4319-8a9f-52f161094fb2/branches/master/files/D109C042-4BC3-434D-844A-6F3AA9E2881C
- Request that we re-run our icon export script in this channel: https://cbinsights.slack.com/archives/CL99MD596
To regenerate the icons, you must
- Be a CB Insights employee and request access to this Abstract Project
- Ensure you have Sketch installed.
- Ensure the
sketchtool
binary is in your PATH:
## bash
export SKETCHTOOL_PATH="/Applications/Sketch.app/Contents/Resources/sketchtool/bin"
export PATH=$PATH:SKETCHTOOL_PATH
## fish
set -U /Applications/Sketch.app/Contents/Resources/sketchtool/bin $fish_user_paths
- Ensure you have the Abstract Desktop App
- In Abstract Desktop app in the sidebar, select FDS --> Master in the sidebar
- Click on
Files
in the main screen - Right click on the UI Platform Icons.sketch file
- Click "Export" and save it somewhere easy to remember. You'll need the path to this file in the next step.
- Run the following in the root of FDS:
yarn icons:export <path to sketch file>
- In general (if everything seems fine) you'll commit all the new files that were generated.
- You can view icons in storybook to verify your icons were generated correctly.
Note: Icons follow general SEMVER rules (adding an icon is a minor update, removing an icon is a major update).
- Icons should be contained in exportable artboards
- Icon artboards should be named with prefix
icon/
- No two icons should be named the same thing. The export script will helpfully throw an error if any duplicates are detected.