@use '@angular/material' as mat;

@mixin docs-site-typography-theme($theme) {
  $primary: map-get($theme, primary);
  $accent: map-get($theme, accent);
  $warn: map-get($theme, warn);
  $background: map-get($theme, background);
  $foreground: map-get($theme, foreground);

  .docs-component-viewer-tabbed-content,
  .docs-guide-content {
      h1 {
        color: mat.get-color-from-palette($primary, 800);
        background: rgba(mat.get-color-from-palette($foreground, secondary-text), .03);
      }

      h3, h2, h4, h5, p, ol, li {
        color: mat.get-color-from-palette($foreground, secondary-text);
      }

      a {
        color: mat.get-color-from-palette($primary);
      }

      .nav-link:visited {
        text-decoration: none;
      }

      table {
        box-shadow: 0 2px 2px rgba(0,0,0,0.24), 0 0 2px rgba(0,0,0,0.12);
      }

      table > tbody > tr > th {
        border: 1px solid rgba(mat.get-color-from-palette($foreground, secondary-text), .03);
      }

      td {
        color: mat.get-color-from-palette($foreground, secondary-text);
        border: 1px solid rgba(mat.get-color-from-palette($foreground, secondary-text), .03);
      }

      th {
        color: mat.get-color-from-palette($foreground, secondary-text);
        background: rgba(mat.get-color-from-palette($foreground, secondary-text), .03);
      }
  }
}
