<main>
  <table>
    <caption>Base hues</caption>
    <tbody>
      <tr>
        <td class="bg-1">180,100%,10%</td>
        <td class="bg-2">240,100%,10%</td>
        <td class="bg-3">300,100%,10%</td>
      </tr>
      <tr>
        <td class="bg-4">0,100%,10%</td>
        <td class="bg-5">60,100%,10%</td>
        <td class="bg-6">120,100%,10%</td>
      </tr>
    </tbody>
  </table>
</main>
// base hues
.bg-1 {
  // rgb(0, 51, 51)
  background: hsl(180, 100%, 10%);
}

.bg-2 {
  // rgb(0, 0, 51)
  background: hsl(240, 100%, 10%);
}

.bg-3 {
  // rgb(51, 0, 51)
  background: hsl(300, 100%, 10%);
}

.bg-4 {
  // rgb(51, 0, 0)
  background: hsl(0, 100%, 10%);
}

.bg-5 {
  // rgb(51, 51, 0)
  background: hsl(60, 100%, 10%);
}

.bg-6 {
  // rgb(0, 51, 0)
  background: hsl(120, 100%, 10%);
}



/* basic styling */
body {
  background: #1d1e22;
  color: white;
  font: 16px sans-serif
}


/* basic styling */
body {
  background: #1d1e22;
  color: white;
  font: 16px sans-serif
}

// Basic set-up for article
// Themes with CSS variables and hsl()
main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

table {
  border: none;
  border-collapse: collapse;
}

td[class^="bg-"] {
  font: 1.2rem var(--monospace-font);
  text-align: center;
  vertical-align: middle;
  min-width: 11rem;
  height: 6rem;
}

caption {
  text-align: left;
  padding: 1rem;
}


@import url("https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono&display=swap");

:root {
  --background-color: hsl(228, 8%, 12%);
  --text-color: hsl(0, 0%, 85%);
  --border-color: hsl(228, 8%, 20%);
  --transparency-bg: url(data:image/gif;base64,R0lGODlhDAAMAHAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQICgAAACwAAAAADAAMAIDX19f///8CFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==);
  --border-radius: .3rem;
  --regular-font: Roboto, sans-serif;
  --monospace-font: 'Roboto Mono', monospace;
  --form-field-bg: hsl(0, 0%, 95%);
  --form-field-color: hsl(228, 8%, 12%);
  --link-color: hsl(206, 89%, 45%);
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

a {
  color: var(--link-color);
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font: 1.4rem/1.5 var(--regular-font);
  background: var(--background-color);
  color: var(--text-color);
  margin: 0;
}

h1 {
  font-size: 2.4rem;
}

input, textarea, pre, select, [data-preview] {
  background: var(--form-field-bg);
  color: var(--form-field-color);
}

code, input, textarea, pre, select, [data-preview] {
  font-family: var(--monospace-font);  
}

input, textarea, pre, select, fieldset, [data-preview] {
  border: .1rem var(--border-color) solid;
}

pre {
  color: hsl(0, 0%, 15%);
  background: hsl(0, 0%, 85%);
  padding: 1rem;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.