JSFiddle - React, Tailwind, and code Playground

by Erik Gillespie

HTML

<div class="board">
    <div class="row">
        <div class="hole hole-1-1 red"></div>
        <div class="hole hole-1-2 yellow"></div>
        <div class="hole hole-1-3"></div>
        <div class="hole hole-1-4 green"></div>
    </div>
    <div class="row">
        <div class="hole hole-2-1 green"></div>
        <div class="hole hole-2-2"></div>
        <div class="hole hole-2-3 yellow"></div>
        <div class="hole hole-2-4 red"></div>
    <div>
</div>

CSS

.board {
    border: 1px solid #937e62;
    background-color: #d2b48c;
    padding: 8px;
    text-align: center;
    width: 140px;
}

.hole {
    display: inline-block;
    height: 20px;
    width: 20px;
    border: 1px solid #937e62;
    border-radius: 10px;
    background-color: white;
    margin: 5px;
    color: white;
}

.red {
    background-color: #d9534f;
    border-color: #c9302c;
}

.green {
    background-color: #5cb85c;
    border-color: #449d44;
}

.yellow {
    background-color: #fef049;
    border-color: #ffd663;
}