Skip to content
Self-made icons, from SVG from fonts
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
scripts
src
svg
.gitattributes
.gitignore
.npmignore
.prettierrc
README.md
package.json
template.ejs
tsconfig-compile.json
tsconfig.json
webpack.config.js
webpack.release.js
yarn.lock

README.md

Jimo Icon

Usage

yarn add @jimengio/jimo-icons
import JimoIcon, { EJimoIcon } from "@jimengio/jimo-icons";

<JimoIcon name={EJimoIcon.tick} />;

Develop

yarn
yarn gen # to generate CSS files
yarn watch # launcher page server

注意事项

  • 新增 icon 用 svgo 工具优化体积.
  • 制作的 icon 需要用线, 避免生成字体之后内容丢失.
  • SVG 文件优先采用背景透明的版本, 更加可靠.

Step

  1. yarn
  2. svgo svgName.svg
  3. add svg file (in ./svg)
  4. append icon names in icons.coffee
  5. yarn gen
  6. yarn watch

License

UNLICENSED

You can’t perform that action at this time.