This package outputs two CSS files (minified and unminified) with classes for currency codes using base64 background images inlined.
1. Install
bower install --save https://github.com/transferwise/currency-flags.git
or
npm install --save https://github.com/transferwise/currency-flags.git
2. Add CSS to page
3. Use
<div class="currency-flag currency-flag-usd"></div>The currency-flag selector has a default display of inline-block, size of 24x16 and a background-size of cover.
currency-flag-sm, currency-flag-lg and currency-flag-xl modifiers are available.
- Clone repo
- Run
npm install - Add correctly sized (
48x32)pngfiles tosrc/flags - Run
npm start - Update version in
package.json - Commit to a new branch, include css files changed by build process
- Open a pull request
