A combination of CSS
, font
and base64
symbols covering all recognised countries.
-
sass:compile
: Compiles SASS code into CSS output -
storybook:compile
: Compile and serve storybook with flags playground
yarn add @adso-sass/flags
$flag-size: 60px;
@import "~@adso-sass/flags/src/flags/countries";
Default size: 60px x 40px;
Also available:
-
xs
(scale: 0.33), -
s
(0.5), -
m
, -
l
(1.5), -
xl
(2)
flag flag-${size} flag-${countryCode}
<div class="flag flag-m flag-es"/>