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