<div class="container">
  <div class="box box1">臨</div>
  <div class="box box2">兵</div>
  <div class="box box3">闘</div>
  <div class="box box4">者</div>
  <div class="box box5">皆</div>
  <div class="box box6">陣</div>
  <div class="box box7">列</div>
  <div class="box box8">在</div>
  <div class="box box9">前</div>
</div>
html,
body {
  background-color: #fafafa;
}

body {
  padding: 20px;
  display: grid;
  place-content: center;
}

.container {
  display: flex;
  flex-wrap: wrap;
  /* gap for Flexbox 💐💐💐 */
  gap: 16px;
  border: 2px solid #333333;
}

.box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  padding: 5px;
  font-family: "M PLUS Rounded 1c";
  font-size: 40px;
  background: #29031e;
  border-radius: 16px;
  border-width: 5px;
  border-style: solid;
}

.box1 {
  color: #c98df6;
}

.box2 {
  color: #f45df0;
}

.box3 {
  color: #f429b4;
}

.box4 {
  color: #f4481a;
}

.box5 {
  color: #efad0a;
}

.box6 {
  color: #aee712;
}
.box7 {
  color: #3ce8a2;
}

.box8 {
  color: #0adcb2;
}

.box9 {
  color: #0bbff4;
}

External CSS

  1. https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@100;300;400;500;700;800;900&amp;display=swap

External JavaScript

This Pen doesn't use any external JavaScript resources.