# acumen-flag-icons

> > A curated collection of all country flags in SVG — plus the CSS for easier integration. See the [demo](https://flagicons.lipis.dev).

Latest version **6.7.6** (published 2023-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install acumen-flag-icons
pnpm add acumen-flag-icons
yarn add acumen-flag-icons
bun add acumen-flag-icons
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.7.6 |
| Published | 2023-07-26 |
| First published | 2023-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ivan Zdravkov |
| Maintainers | acumen_risk |
| Keywords | Country, flag, icons |

## Links

- npm: https://www.npmjs.com/package/acumen-flag-icons
- Repository: https://github.com/cxt9/acumen-flag-icons
- Homepage: https://github.com/cxt9/acumen-flag-icons#readme
- Issues: https://github.com/cxt9/acumen-flag-icons/issues
- npm.io page: https://npm.io/package/acumen-flag-icons

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 6.7.6 (latest) — 2023-07-26
- 6.7.5 — 2023-07-26
- 6.7.4 — 2023-07-25
- 6.7.3 — 2023-07-25
- 6.7.2 — 2023-07-17
- 6.7.1 — 2023-07-17
- 6.7.0 — 2023-07-17

## README

# acumen-flag-icons

> A curated collection of all country flags in SVG — plus the CSS for easier integration. See the [demo](https://flagicons.lipis.dev).

## Install

You can either [download](https://github.com/cxt9/acumen-flag-icons) the whole project as is or install it via npm or Yarn:

```bash
npm install acumen-flag-icons
# or
yarn add acumen-flag-icons
```

## Usage

First, you need to import css:

```js
import "/node_modules/acumen-flag-icons/css/flag-icons.min.css";
```

or use CDN:

```html
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/gh/lipis/flag-icons@6.6.6/css/flag-icons.min.css"
/>
```

For using the flags inline with text add the classes `.fi` and `.fi-xx` (where `xx` is the [ISO 3166-1-alpha-2 code](https://www.iso.org/obp/ui/#search/code/) of a country) to an empty `<span>`. If you want to have a squared version flag then add the class `fis` as well. Example:

```html
<span class="fi fi-gr"></span> <span class="fi fi-gr fis"></span>
```

You could also apply this to any element, but in that case you'll have to use the `fib` instead of `fi` and you're set. This will add the correct background with the following CSS properties:

```css
background-size: contain;
background-position: 50%;
background-repeat: no-repeat;
```

Which means that the flag is just going to appear in the middle of an element, so you will have to set manually the correct size of 4 by 3 ratio or if it's squared add also the `flag-icon-squared` class.

## Development

Run the `yarn` to install the dependencies after cloning the project and you'll be able to:

To build `*.less` files

```bash
$ yarn build
```

To serve it on `localhost:8000`

```bash
$ yarn start
```

To have only specific countries in the css file, remove the ones that you don't need from the [`flag-icons-list.less`](less/flag-icons-list.less) file and build it again.

## Credits

- This project wouldn't exist without the awesome and now deleted collection of SVG flags by [koppi](https://github.com/koppi).

---
_Source: https://npm.io/package/acumen-flag-icons · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
