@use './utils';

$assets-path: '../assets' !default;
$fonts-path-prefix: $assets-path + '/uni-neue/' !default;

$fonts: (
    'font-family': 'Uni Neue',
    'src':
      "url('#{$fonts-path-prefix}unineue-book.woff2') format('woff2'), url('#{$fonts-path-prefix}unineue-book.woff') format('woff')",
    'font-weight': 350,
    'font-style': 'normal',
    'font-display': 'swap',
  ),
  (
    'font-family': 'Uni Neue',
    'src':
      "url('#{$fonts-path-prefix}unineue-regular.woff2') format('woff2'), url('#{$fonts-path-prefix}unineue-regular.woff') format('woff')",
    'font-weight': 400,
    'font-style': 'normal',
    'font-display': 'swap',
  ),
  (
    'font-family': 'Uni Neue',
    'src':
      "url('#{$fonts-path-prefix}unineue-bold.woff2') format('woff2'), url('#{$fonts-path-prefix}unineue-bold.woff') format('woff')",
    'font-weight': 700,
    'font-style': 'normal',
    'font-display': 'swap',
  ),
  (
    'font-family': 'Uni Neue',
    'src':
      "url('#{$fonts-path-prefix}unineue-heavy.woff2') format('woff2'), url('#{$fonts-path-prefix}unineue-heavy.woff') format('woff')",
    'font-weight': 800,
    'font-style': 'normal',
    'font-display': 'swap',
  );

@include utils.gen-font-faces($fonts);
