$ cnpm install oui-icons
Icons for the Optimizely application and other OUI projects.
Download the package: Run npm install --save oui-icons to include the latest icons in your project.
Include the SVG sprite: This package ships with an SVG sprite that contains all of the icons. Include the SVG sprite at the beginning of your website’s <body> tag. The sprite can be referenced with require('oui-icons') if using a project with webpack and an SVG loader. Projects not using webpack can include the sprite by including the icons with your templating engine: ./node_modules/oui-icons/dist/combined/svg-symbols.svg.
Using an icon: You can use one of the icons in the HTML with:
<svg>
<use xlink:href="#code-24"></use>
</svg>
The complete list of icons can be found at: link.otimizely.com/oui-icons.
src/.Added, Changed, Fixed, or Removed.[Patch], [Feature], or Release.
[Patch]: Backwards compatible fixes (patches) to existing icons, infrastructure, or documentation.[Feature]: New icons or features that are backwards compatible.[Release]: Changes that are not backwards compatible such as the removal of an icon.oui-icons NPM package. Contact a UI Engineer for help.2.11.0. This is when NPM added support for the postversion hook that we rely on. You can check your version by running npm -v in the command line.git checkout master && git pull.CHANGELOG.md, update to reflect the new version, and commit the change. Here are some tips:[Release] – 1.2.3 would become 2.0.0.[Feature] – 1.2.3 would become 1.3.0.[Patch] – 1.2.3 would become 1.2.4.CHANGELOG.md update. The message could be: “Prep for 3.1.3 release.”package.json in this step.npm version patch - version includes a backwards-compatible bug fix or tweak. This includes small icon style modifications.npm version minor - version includes a backwards compatible new "feature" such as a new icon.npm version major - version contains a non-backwards compatible breaking change such as a renamed or deleted icon.Copyright 2013 - present © cnpmjs.org | Home |