/tilt-images

This is a collection of icons and images used throught the tilt websites.

Primary LanguageJavaScript

Circle CI

tilt-icons

This is a collection of icons and images used throughout the tilt websites.

Adding an SVG icon

  1. Remove all attributes except for viewBox and add a className to the <svg> tag. const classes = classnames('tilt-icon tilt-icon-SOME_VALUE', this.props.className);

  2. Remove <desc/> tags and comments.

  3. Set <title/> tag text to be the name of the component (this is used in the "renders without error" tests).

  4. Add a tilt-icon-main class if necessary

  5. Remove all ids and unused attributes. Style attributes will live in the CSS file.

  6. OPTIONAL Consolidate transforms into a single group Exporting files from Sketch often creates additional <g> elements with a translate transform. Often times the transforms can be added together into a single transform in a single g element and the empty gs can be removed.

    <g transform="translate(-10.00000, 20.00000)">
      <g transform="translate(20.00000, 40.0000)">
        ......
      </g>
    </g>
    

    Becomes

    <g transform="translate(10, 60.00000)">
      ......
    </g>
    
  7. Create css file in app/stylesheets

  8. Add the icon to app/index.js

Note: If you are having any stylesheet issues it might be as a result of having the new NPM version. NPM 3+ is not supported yet please revert to NPM 2 to use this repository.