Giter Club home page Giter Club logo

octicons's Introduction

GitHub Octicons

NPM version Build Status

Octicons are a scalable set of icons handcrafted with <3 by GitHub.

Install

NPM

This repository is distributed with npm. After installing npm, you can install octicons with this command.

$ npm install --save octicons

Usage

The source files included are written in Sass (scss) You can simply point your sass include-path at your node_modules directory and import it like this.

@import "octicons/index.scss";

Changing, adding, or deleting icons

  1. Open the Sketch document in /lib/. Each icon exists as an artboard within our master Sketch document. If you’re adding an icon, duplicate one of the artboards and add your shapes to it. Be sure to give your artboard a name that makes sense.
  2. Once you’re happy with your icon set, choose File > Export…
  3. Choose all the artboards you’d like to export and then press “Export”
  4. Export to /lib/svg/

You’ll next need to build your Octicons.

Building Octicons

All the files you need will be in the /build/ directory already, but if you’ve made changes to the /lib/ directory and need to regenerate, follow these steps:

  1. Open the Octicons directory in Terminal
  2. Run the command script/bootstrap. This will install any necessary dependencies for generating the Octicons font and SVGs.
  3. Run the command grunt. Running the grunt task will generate the font and SVGs, placing them in the /build/ directory.

Publishing

If you have access to publish this repository, these are the steps to publishing. If you need access, contact #design-systems.

  1. Update the CHANGELOG.md with relevant version number and any updates made to the repository.
  2. npm version <newversion> Run npm version inputing the relevant version type. The versioning is semver, so version appropriately based on what has changed.
  3. npm publish This will publish the new version to npmjs.org
  4. git push && git push --tags Push all these changes to origin.

License

(c) 2012-2016 GitHub, Inc.

When using the GitHub logos, be sure to follow the GitHub logo guidelines.

Font License: SIL OFL 1.1
Applies to all font files and SVG files

Code License: MIT
Applies to all other files

octicons's People

Contributors

jonrohan avatar cameron423698 avatar benbalter avatar davegandy avatar gjtorikian avatar wjdp avatar maqnouch avatar juanitofatas avatar kennethormandy avatar lukearmstrong avatar maria avatar lastzero avatar rtyley avatar delba avatar

Watchers

James Cloos avatar Xiao P avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.