Skip to content

krzysztofrewak/flat-flags-iconset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This package is a simple semantic wrapper for Muharrem Senyil & Flatstudio's Flat Flags icon set.

Usage

Use CDN to add stylesheet into your head section (using one with integrity hash could be a good practice):

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/krzysztofrewak/flat-flags-iconset@latest/style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/krzysztofrewak/flat-flags-iconset@latest/style.css" integrity="sha384-typL+psvFGLzSJiF9ka5WmyYwYhYltLSIOJoXOf+ey7UKwkijRwY6YQIGqwOW2Io" crossorigin="anonymous">

Now you can insert a flag via country's ISO 3166-1 code combined with flat flag CSS class:

<i class="is flat flag"></i>
<i class="md flat flag"></i>

Simple country names (and some abbreviations) are working too:

<i class="tunisia flat flag"></i>
<i class="uae flat flag"></i>

You can add resizing classes large, huge and giant to receive bigger images. It's working also with container tagged flat flags:

<i class="giant cyprus flat flag"></i>

<div class="huge flat flags">
    <i class="australia flat flag"></i>
    <i class="new zealand flat flag"></i>
</div>

For developers

You can rebuild style.css (and readme.md) from resources.json via Python script in Docker container:

docker-compose run -w /application python python builder.py

Flag index

flag country ISO available selectors
ad icon Andorra AD ad, andorra
ae icon United Arab Emirates AE ae, united arab emirates, uae
af icon Afghanistan AF af, afghanistan
ag icon Antigua and Barbuda AG ag, antigua, barbuda
ai icon Anguilla AI ai, anguilla
al icon Albania AL al, albania
am icon Armenia AM am, armenia
ao icon Angola AO ao, angola
aq icon Antarctica AQ aq, antarctica
ar icon Argentina AR ar, argentina
as icon American Samoa AS as, american samoa
at icon Austria AT at, austria
au icon Australia AU au, australia
aw icon Aruba AW aw, aruba
az icon Azerbaijan AZ az, azerbaijan
ax icon Åland Islands AX ax, aland islands, aland
ba icon Bosnia and Herzegovina BA ba, bosnia, herzegovina
bb icon Barbados BB bb, barbados
bd icon Bangladesh BD bd, bangladesh
be icon Belgium BE be, belgium
bf icon Burkina Faso BF bf, burkina faso
bg icon Bulgaria BG bg, bulgaria
bh icon Bahrain BH bh, bahrain
bi icon Burundi BI bi, burundi
bj icon Benin BJ bj, benin
bl icon Saint Barthélemy BL bl, saint barthelemy
bm icon Bermuda BM bm, bermuda
bn icon Brunei BN bn, brunei
bo icon Bolivia BO bo, bolivia
bq icon Caribbean Netherlands bq bq, caribbean netherlands, bonaire, sint eustatius, saba
br icon Brazil BR br, brazil
bs icon Bahamas BS bs, bahamas
bt icon Bhutan BT bt, bhutan
bv icon Bouvet Island BV bv, bouvet island
bw icon Botswana BW bw, botswana
by icon Belarus BY by, belarus
bz icon Belize BZ bz, belize
ca icon Canada CA ca, canada
cc icon Cocos Islands CC cc, cocos islands
cd icon Democratic Republic of the Congo CD cd, democratic republic congo, dr congo
cf icon Central African Republic CF cf, central african republic
cg icon Congo CG cg, congo
ch icon Switzerland CH ch, switzerland
ci icon Ivory Coast CI ci, ivory coast
ck icon Cook Islands CK ck, cook islands
cl icon Chile CL cl, chile
cm icon Cameroon CM cm, cameroon
cn icon China CN cn, china
co icon Colombia CO co, colombia
cr icon Costa Rica CR cr, costa rica
cu icon Cuba CU cu, cuba
cv icon Cape Verde CV cv, cabo verde, cape varde
cw icon Curaçao CW cw, curacao
cx icon Christmas Island CX cx, christmas island
cy icon Cyprus CY cy, cyprus
cy-tr icon Northern Cyprus - cy tr, northern cyprus
cz icon Czechia CZ cz, czechia, czech republic
de icon Germany DE de, germany
dj icon Djibouti DJ dj, djibouti
dk icon Denmark DK dk, denmark
dm icon Dominica DM dm, dominica
do icon Dominican Republic DO do, dominican republic
dz icon Algeria DZ dz, algeria
ec icon Ecuador EC ec, ecuador
ee icon Estonia EE ee, estonia
eg icon Egypt EG eg, egypt
eh icon Western Sahara EH eh, western sahara
er icon Eritrea ER er, eritrea
es icon Spain ES es, spain
et icon Ethiopia ET et, ethiopia
fi icon Finland FI fi, finland
fj icon Fiji FJ fj, fiji
fk icon Falkland Islands FK fk, falkland islands
fm icon Federated States of Micronesia FM fm, micronesia
fo icon Faroe Islands FO fo, faroe islands
fr icon France FR fr, france
ga icon Gabon GA ga, gabon
gb icon Great Britain GB gb, great britain, united kingdom
gb-eng icon England GB-ENG gb eng, england
gb-nir icon Northern Ireland GB-NIR gb nir, northern ireland
gb-sct icon Scotland GB-SCT gb sct, scotland
gb-wls icon Wales GB-WLS gb wls, wales
gd icon Grenada GD gd, grenada
ge icon Georgia GE ge, georgia
gf icon French Guiana GF gf, french guiana
gg icon Guernsey GG gg, guernsey
gh icon Ghana GH gh, ghana
gi icon Gibraltar GI gi, gibraltar
gl icon Greenland GL gl, greenland
gm icon Gambia GM gm, gambia
gn icon Guinea GN gn, guinea
gp icon Guadeloupe GP gp, guadeloupe
gq icon Equatorial Guinea GQ gq, equatorial guinea
gr icon Greece GR gr, greece
gs icon South Georgia and the South Sandwich Islands GS gs, south georgia, sound sandwich
gt icon Guatemala GT gt, guatemala
gu icon Guam GU gu, guam
gw icon Guinea-Bissau GW gw, guinea bissau
gy icon Guyana GY gy, guyana
hk icon Hong Kong HK hk, hong kong
hm icon Heard Island and McDonald Islands HM hm, heard, mcdonald
hn icon Honduras HN hn, honduras
hr icon Croatia HR hr, croatia
ht icon Haiti HT ht, haiti
hu icon Hungary HU hu, hungary
id icon Indonesia ID id, indonesia
ie icon Ireland IE ie, ireland
il icon Israel IL il, israel
im icon Isle of Man IM im, isle of man, man
in icon India IN in, india
io icon British Indian Ocean Territory IO io, british indian ocean territory
iq icon Iraq IQ iq, iraq
ir icon Iran IR ir, iran
is icon Iceland IS is, iceland
it icon Italy IT it, italy
je icon Jersey JE je, jersey
jm icon Jamaica JM jm, jamaica
jo icon Jordan JO jo, jordan
jp icon Japan JP jp, japan
ke icon Kenya KE ke, kenya
kg icon Kyrgyzstan KG kg, kyrgyzstan
kh icon Cambodia KH kh, cambodia
ki icon Kiribati KI ki, kiribati
km icon Comoros KM km, comoros
kn icon Saint Kitts and Nevis KN kn, saint kitts, nevis
kp icon North Korea KP kp, north korea
kr icon South Korea KR kr, south korea
kw icon Kuwait KW kw, kuwait
ky icon Cayman Islands KY ky, cayman islands
kz icon Kazakhstan KZ kz, kazakhstan
la icon Laos LA la, laos
lb icon Lebanon LB lb, lebanon
lc icon Saint Lucia LC lc, saint lucia
li icon Liechtenstein LI li, liechtenstein
lk icon Sri Lanka LK lk, sri lanka
lr icon Liberia LR lr, liberia
ls icon Lesotho LS ls, lesotho
lt icon Lithuania LT lt, lithuania
lu icon Luxembourg LU lu, luxembourg
lv icon Latvia LV lv, latvia
ly icon Libya LY ly, libya
ma icon Morocco MA ma, morocco
mc icon Monaco MC mc, monaco
md icon Moldova MD md, moldova
me icon Montenegro ME me, montenegro
mf icon Saint Martin mf mf, saint-martin
mg icon Madagascar MG mg, madagascar
mh icon Marshall Islands MH mh, marshall islands
mk icon North Macedonia MK mk, north macedonia
ml icon Mali ML ml, mali
mm icon Myanmar MM mm, myanmar
mn icon Mongolia MN mn, mongolia
mo icon Macao MO mo, macao
mp icon Northern Mariana Islands MP mp, northern mariana
mq icon Martinique MQ mq, martinique
mr icon Mauritania MR mr, mauritania
ms icon Montserrat MS ms, montserrat
mt icon Malta MT mt, malta
mu icon Mauritius MU mu, mauritius
mv icon Maldives MV mv, maldives
mw icon Malawi MW mw, malawi
mx icon Mexico MX mx, mexico
my icon Malaysia MY my, malaysia
mz icon Mozambique MZ mz, mozambique
na icon Namibia NA na, namibia
nc icon New Caledonia NC nc, new caledonia
ne icon Niger NE ne, niger
nf icon NOrfolk Island NF nf, norfolk
ng icon Nigeria NG ng, nigeria
ni icon Nicaragua NI ni, nicaragua
nl icon Netherlands NL nl, netherlands
no icon Norway NO no, norway
np icon Nepal NP np, nepal
nr icon Nauru NR nr, nauru
nu icon Niue NU nu, niue
nz icon New Zealand NZ nz, new zealand
om icon Oman OM om, oman
pa icon Panama PA pa, panama
pe icon Peru PE pe, peru
pf icon French Polynesia PF pf, french polynesia
pg icon Papua New Guinea PG pg, papua new guinea
ph icon Philippines PH ph, philippines
pk icon Pakistan PK pk, pakistan
pl icon Poland PL pl, poland
pm icon Saint Pierre and Miquelon PM pm, saint pierre, miquelon
pn icon Pitcairn PN pn, pitcairn
pr icon Puerto Rico PR pr, puerto rico
ps icon Palestine PS ps, palestine
pt icon Portugal PT pt, portugal
pw icon Palau PW pw, palau
py icon Paraguay PY py, paraguay
qa icon Qatar QA qa, qatar
re icon Réunion RE re, reunion
ro icon Romania RO ro, romania
rs icon Serbia RS rs, serbia
ru icon Russia RU ru, russia
rw icon Rwanda RW rw, rwanda
sa icon Saudi Arabia SA sa, saudi arabia
sb icon Solomon Islands SB sb, solomon islands
sc icon Seychelles SC sc, seychelles
sd icon Sudan SD sd, sudan
se icon Sweden SE se, sweden
sg icon Singapore SG sg, singapore
sh icon Saint Helena SH sh, saint helena
si icon Slovenia SI si, slovenia
sj icon Svalbard and Jan Mayen SJ sj, svalbard, jan mayen
sk icon Slovakia SK sk, slovakia
sl icon Sierra Leone SL sl, sierra leone
sm icon San Marino SM sm, san marino
sn icon Senegal SN sn, senegal
so icon Somalia SO so, somalia
sr icon Suriname SR sr, suriname
ss icon South Sudan SS ss, south sudan
st icon São Tomé and Príncipe ST st, sao tome, principe
sv icon El Salvador SV sv, el salvador
sx icon Sint Maarten SX sx, sint maarten
sy icon Syria SY sy, syria
sz icon Eswatini SZ sz, eswatini
tc icon Turks and Caicos Islands TC tc, turks, caicos
td icon Chad TD td, chad
tf icon French Southern Territories tf tf, french southern territories
tg icon Togo TG tg, togo
th icon Thailand TH th, thailand
tj icon Tajikistan TJ tj, tajikistan
tk icon Tokelau TK tk, tokelau
tl icon East Timor TL tl, east timor
tm icon Turkmenistan TM tm, turkmenistan
tn icon Tunisia TN tn, tunisia
to icon Tonga TO to, tonga
tr icon Turkey TR tr, turkey
tt icon Trinidad and Tobago TT tt, trinidad, tobago
tv icon Tuvalu TV tv, tuvalu
tw icon Taiwan TW tw, taiwan
tz icon Tanzania TZ tz, tanzania
ua icon Ukraine UA ua, ukraine
ug icon Uganda UG ug, uganda
um icon United States Minor Outlying Islands UM um, united states minor outlying islands
us icon United States YS us, united states, us
uy icon Uruguay UY uy, uruguay
uz icon Uzbekistan UZ uz, uzbekistan
va icon Holy See VA va, vatican, holy see
vc icon Saint Vincent and Genadines VC vc, saint vincent, grenadines
ve icon Venezuela VE ve, venezuela
vg icon British Virgin Islands VG vg, british virgin islands
vi icon United States Virgin Islands VI vi, us virgin islands
vn icon Vietnam VN vn, vietnam
vu icon Vanuatu VU vu, vanuatu
wf icon Wallis and Futuna WF wf, wallis, futuna
ws icon Samoa WS ws, samoa
xk icon Kosovo XK xk, kosovo
ye icon Yemen YE ye, yemen
yt icon Mayotte YT yt, mayotte
za icon South Africa ZA za, south africa
zm icon Zambia ZM zm, zambia
zw icon Zimbabwe ZW zw, zimbabwe
_africa icon Africa - africa
_asia icon Asia - asia
_australia icon Australia - australia continent
_europe icon Europe - europe
_north_america icon North America - north america
_south_america icon South America - south america
_world icon World - world