JSFiddle - React, Tailwind, and code Playground
by blueocto
HTML
<body>
<header>
<nav>
<a>nav link text</a>
<a class="selected">selected nav link text</a>
</nav>
</header>
<div id="wrapper">
<a>here is a regular link</a>
<h1>
Heading 1
</h1>
<h2>
Heading 2
</h2>
</div>
</body>
CSS
/****************
GENERAL
****************/
#wrapper {
max-width: 940px;
margin: 0 auto;
padding: 0 5%;
}
a {
text-decoration: none;
}
/****************
HEADING
****************/
#logo {
text-align: center;
margin: 0;
}
h1 {
font-family: 'Changa One', sans-serif;
margin: 15px 0;
font-size: 1.75em;
font-weight:normal;
line-height: 0.8em;
}
h2 {
font-size: 0.75 em;
margin -5px 0 0;
font-weight: normal;
}
/****************
COLORS
****************/
/* site body */
body {
background-color: #fff;
color: #999;
}
/* green header */
header {
background: #6ab47b; //light green
border-color: #599a68; //mid green
}
/* nav background on mobile */
nav {
background: #599a68; //mid green
}
/* logo text */
h1, h2 {
color: #fff;
}
/* links */
a {
color: #6ab47b; //light green
}
/* nav link */
nav a {
color: #fff;
}
/* selected nav link */
nav a.selected, nav a:hover {
color: #32673f; //dark green
}