2.0.2 • Published 1 year ago

@codeday/topocons v2.0.2

Weekly downloads
15
License
UNLICENSED
Repository
-
Last release
1 year ago

Topocons

These icons are only licensed for use by CodeDay. Sorry!

In topocons 2, imports have changed! Take a look below.

Use

Import format:

import { [IconName] } from `@codeday/topocons`

<[IconName] />
import { Illuminati } from `@codeday/topocons`

<Illuminati />

How it works

generate icons:

  • svgo: optimizes svgs and tries its best to remove all the colors
  • create-chakra-icons (using @nexite/create-chakra-icons to allow generating individual files): generates tsx files for each svg
  • idxgen: creates index.ts that exports each icon in a tree shaking friendly way
  • replace: finishes removing any remaining colors

build:

  • uses tsup to bundle and transpile our ts into cjs and esm

Maybe helpful commands

download submodules (private repo)

git pull --recurse-submodules

download dependencies

yarn install

generate icons

yarn generate-icons

build (use build:fast to build w/o types)

yarn build

all done!