- Download the zip file form the github releases.
- Unzip the archive, you will finde a LICENSE, twf.css and twf.min.css.
- Put either or both of these CSS files (and the license file) in to your web projects resource folder.
- Link in your html to either of these two CSS files, like the following
For production project, we recommend to use the minified version (twf.min.css).
<link rel="stylesheet" href="path/to/twf.min.css">
And now you can simply use all pride flags of twemoji-flags as simple as the following examples
<div class="agender-flag"></div>
<div class="aromantic-flag"></div>
<div class="asexual-flag"></div>
<div class="bi-flag"></div>
<div class="ceres-flag"></div>
<div class="demiboy-flag"></div>
<div class="demigirl-flag"></div>
<div class="demiromantic-flag"></div>
<div class="demisexual-flag"></div>
<div class="femboy-flag"></div>
<div class="genderfluid-flag"></div>
<div class="genderqueer-nb-flag"></div>
<div class="genderqueer-nb1-flag"></div>
<div class="hetero-flag"></div>
<div class="intersexual-flag"></div>
<div class="lesbian-flag"></div>
<div class="neutrois-flag"></div>
<div class="nb-flag"></div>
<div class="pan-flag"></div>
<div class="polyamory-flag"></div>
<div class="polyamory1-flag"></div>
<div class="polysexual-flag"></div>
<div class="progress-pride-flag"></div>
<div class="straight-ally-flag"></div>
<div class="trans-flag"></div>You can change the size of the emoji flags by setting the css variable --pride-flag-size to any size you like, default is 24px.
It's as simple as just running the following commands, after cloning this repository.
npm install
npm run release
or
npm install
npm run dev
You have a flag that isn't included yet? Feel free to make a pull request and add it OR open a Issue!
There are simple rules every pull request has to obay
- Only make pull requests to the
developbranch. - Your pull request title must be descriptive.
- Flags MUST be put in to
flags/as SVG file. If you use Inkscape, export the file as "Plain SVG".