JSFiddle - React, Tailwind, and code Playground

by Alec Rust

HTML

<header class="header">
    <h1 class="logo">
        <a href="index.html">Example</a>
    </h1>
</header>

CSS

.header {
    font-family: sans-serif;
    position: relative;
}

.logo {
    font-size: 23px;
    font-weight: bold;
    text-align: center;
    margin: 36px 0 0;
}

.logo:first-letter {
    background-color: #3E3E3E;
    font-size: 35px;
    color: #fff;
    background-color: #333;
    padding: 7px 15px;
}

.logo:hover:first-letter {
    color: #f00;
}   

.logo a {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

.logo a:hover {
    color: #404040;
}