| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A collection of circular SVG country flags.
https://hatscripts.github.io/circle-flags/flags/xx.svg
(Where xx is the ISO 3166-1 alpha-2 code of a country).
For example, the following code:
<img src="https://hatscripts.github.io/circle-flags/flags/br.svg" width="48" />
<img src="https://hatscripts.github.io/circle-flags/flags/cn.svg" width="48" />
<img src="https://hatscripts.github.io/circle-flags/flags/gb.svg" width="48" />
<img src="https://hatscripts.github.io/circle-flags/flags/id.svg" width="48" />
<img src="https://hatscripts.github.io/circle-flags/flags/in.svg" width="48" />
<img src="https://hatscripts.github.io/circle-flags/flags/ng.svg" width="48" />
<img src="https://hatscripts.github.io/circle-flags/flags/ru.svg" width="48" />
<img src="https://hatscripts.github.io/circle-flags/flags/us.svg" width="48" />To view all the available flags, check the gallery.
If you're using React, you may want to try the react-circle-flags package.
If you're using React Native / Expo, you may want to try the react-native-circle-flags package.
If you're using SolidJS, you may want to try the solid-circle-flags package.
If you want to install this package as a dependency, you can install it from this GitHub repository:
npm install --save https://github.com/HatScripts/circle-flagsTo contribute, you need to have the latest version of svgo installed.
First, edit the relevant SVG files in the flags/ directory.
Then run svgo to optimize the SVG files:
svgo ./flags --recursive --config=svgo.config.jsThen commit the changes, and submit them as a pull request.
Submitted flags should conform to the following color palette.
Try to match the flag's original colors with the nearest color from the palette.
Special cases:
This project is released under the MIT license.
| Back | FazBrowse Home | New Git URL |