@adso-sass/flags

2.0.3 • Public • Published

Collection of 195 country flags

A combination of CSS, font and base64 symbols covering all recognised countries.

Scripts

  • sass:compile: Compiles SASS code into CSS output
  • storybook:compile: Compile and serve storybook with flags playground

Installation

yarn add @adso-sass/flags

Usage

  $flag-size: 60px;

  @import "~@adso-sass/flags/src/flags/countries";

Sizes:

Default size: 60px x 40px;

Also available:

  • xs(scale: 0.33),
  • s(0.5),
  • m,
  • l (1.5),
  • xl (2)

Helper class

flag flag-${size} flag-${countryCode}

Example

<div class="flag flag-m flag-es"/>

Preview

Collection previev

Package Sidebar

Install

npm i @adso-sass/flags

Weekly Downloads

1,152

Version

2.0.3

License

MIT

Unpacked Size

3.89 MB

Total Files

357

Last publish

Collaborators

  • asokolowski