Skip to content

vivekimsit/currency-flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

currency-flags

This package outputs two CSS files (minified and unminified) with classes for currency codes using base64 background images inlined.

How to use

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.

How to add flags

  1. Clone repo
  2. Run npm install
  3. Add correctly sized (48x32) png files to src/flags
  4. Run npm start
  5. Update version in package.json
  6. Commit to a new branch, include css files changed by build process
  7. Open a pull request

About

Flags for currency codes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages