@use 'sass:map';
@use "@material/typography" as typography;
@use '@angular/material' as mat;

$headline-font: unquote("Roboto");
$body-font: unquote("Roboto");

$font-weight-values: (
  thin: 100,
  light: 300,
  regular: 400,
  medium: 500,
  bold: 700,
  black: 900,
) !default;

$custom-typography-config: mat.define-typography-config(
  $headline-1: mat.define-typography-level(96px, 112px, map.get(typography.$font-weight-values, light), $headline-font, $letter-spacing:normal),
  $headline-2: mat.define-typography-level(60px, 72px, map.get(typography.$font-weight-values, light), $headline-font, $letter-spacing:-0.5px),
  $headline-3: mat.define-typography-level(48px, 56px, map.get(typography.$font-weight-values, regular), $headline-font, $letter-spacing:normal),
  $headline-4: mat.define-typography-level(34px, 36px, map.get(typography.$font-weight-values, regular), $headline-font, $letter-spacing:0.25px),
  $headline-5: mat.define-typography-level(20px, 24px, map.get(typography.$font-weight-values, regular), $headline-font, $letter-spacing:normal),
  $headline-6: mat.define-typography-level(16px, 24px, map.get(typography.$font-weight-values, medium), $headline-font, $letter-spacing:0.5px),
  
  $subtitle-1: mat.define-typography-level(16px, 24px, map.get(typography.$font-weight-values, regular), $headline-font, $letter-spacing:0.5px),
  $subtitle-2: mat.define-typography-level(14px, 24px, map.get(typography.$font-weight-values, medium), $headline-font, $letter-spacing:0.1px),
  
  $body-1:     mat.define-typography-level(14px, 24px, map.get(typography.$font-weight-values, regular), $body-font, $letter-spacing:normal),
  $body-2:     mat.define-typography-level(12px, 18px, map.get(typography.$font-weight-values, regular), $body-font, $letter-spacing:normal),
  
  $caption:    mat.define-typography-level(12px, 16px, map.get(typography.$font-weight-values, regular), $body-font, $letter-spacing:0.4px),
  $button:     mat.define-typography-level(14px, 16px, map.get(typography.$font-weight-values, regular), $body-font, $letter-spacing:normal),
  $overline:   mat.define-typography-level(10px, 16px, map.get(typography.$font-weight-values, regular), $body-font, $letter-spacing:1.5px),
);
