<table>
  <tbody>
    <tr>
      <th>Compressed</th>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
    </tr>
    <tr>
      <th>Condensed</th>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
    </tr>
    <tr>
      <th>Regular</th>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
    </tr>
    <tr>
      <th>Expanded</th>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
    </tr>
  <tfoot>
    <td></td>
    <th>Ultralight</th>
    <th>Thin</th>
    <th>Light</th>
    <th>Regular</th>
    <th>Medium</th>
    <th>Semibold</th>
    <th>Bold</th>
    <th>Heavy</th>
    <th>Black</th>
  </tfoot>
  </tbody>
</table>
body {
  background: black;
  color: white;
  line-height: 1;
  height: 100vh;
  margin: 0;
  padding: 2rem;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  font-family: system-ui, sans-serif;
  font-variation-settings: "wght" 350, "wdth" 100;
  font-size: 1rem;
}
table {
  width: 100%;
}
td,
th {
  padding: 0.75rem 0.5rem;
}
td {
  font-size: 12vmin;
  text-align: center;
  transition: 0.2s;
}
th {
  text-align: left;
}
tfoot th {
  text-align: center;
}

tr:nth-child(1) {
  @for $i from 1 through 10 {
    td:nth-child(#{$i + 1}) {
      font-variation-settings: "wght" #{(($i - 1) * 110) + 5}, "wdth" 40;
    }
  }
}
tr:nth-child(2) {
  @for $i from 1 through 10 {
    td:nth-child(#{$i + 1}) {
      font-variation-settings: "wght" #{(($i - 1) * 110) + 5}, "wdth" 52;
    }
  }
}

tr:nth-child(3) {
  @for $i from 1 through 10 {
    td:nth-child(#{$i + 1}) {
      font-variation-settings: "wght" #{(($i - 1) * 110) + 5}, "wdth" 84;
    }
  }
}

tr:nth-child(4) {
  @for $i from 1 through 10 {
    td:nth-child(#{$i + 1}) {
      font-variation-settings: "wght" #{(($i - 1) * 110) + 5}, "wdth" 130;
    }
  }
}

table:hover td {
  opacity: 0.4;
}
table td:hover {
  opacity: 1;
}
table td:hover + td,
table td:has(+ td:hover) {
  opacity: 0.6;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.