JSFiddle - React, Tailwind, and code Playground

HTML

<ul id="lista">
    <li class="item yellowgreen"><a href="#">Início</a></li>
    <li class="item tomato"><a href="#">Página</a></li>
    <li class="item royalblue"><a href="#">Blog</a></li>
    <li class="item turquoise"><a href="#">Contacto</a></li>
</ul>

CSS

#lista {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: table;              /* Transforma a div numa tabela */
    table-layout: fixed;         /* Utiliza o algoritmo de uma table fixed */
    border-collapse: separate;   /* Colapsa a tabela para poder adicionar o espaçamento */
    border-spacing: 5px 0px;     /* Adiciona o espaçamento */
}

/* Cria uma lista horizontal com espaçamento */
.item {
    display: table-cell;
    background: #2f3036;
}

/* Estilo para os links dos botões */
.item a {
    display:block;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #fff;
    text-decoration: none;
}

/* Cor para cada botão */
.yellowgreen {background-color:yellowgreen;}
.tomato {background-color:tomato;}
.royalblue {background-color:royalblue;}
.turquoise {background-color:turquoise;}

/* <li class="turquoise"> responsável pelo "Contacto" não será apresentada em ecrãs maiores que 600px */
@media (min-width: 600px) {
    .turquoise {
        display: none;
    }
}