JSFiddle - React, Tailwind, and code Playground
by the94air
HTML
<link href="https://fonts.googleapis.com/css?family=Work+Sans:400,800" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Fredericka+the+Great|Montserrat:400,800" rel="stylesheet">
<h1>Style Guide</h1>
<hr>
<h2>1. Colors</h2>
<div class="flex -mx">
<div class="w-1/6 flex flex-col px">
<div class="color" style="background: #3182CE"></div>
<div><p>Blue</p></div>
<div><code>#3182CE</code></div>
</div>
<div class="w-1/6 flex flex-col px">
<div class="color" style="background: #63B3ED"></div>
<div><p>Light blue</p></div>
<div><code>#63B3ED</code></div>
</div>
<div class="w-1/6 flex flex-col px">
<div class="color" style="background: #2C5282"></div>
<div><p>Dark blue</p></div>
<div><code>#2C5282</code></div>
</div>
</div>
<hr>
<h2>2. Fonts</h2>
<h3>1. Hero Header font</h3>
<code class="mb">"Fredericka the Great" font</code>
<div class="font">
<p class="fredericka-the-great">Stonehenge College</p>
</div>
<h3>2. Heading font</h3>
<code>"Montserrat" font</code>
<code class="mb">"800" weight</code>
<div class="font">
<p class="montserrat-bold">Stonehenge College</p>
</div>
<h3>3. Paragraph font</h3>
<code>"Montserrat" font</code>
<code class="mb">"400" weight</code>
<div class="font mb">
<p class="montserrat-normal">Stonehenge College</p>
</div>
<hr>
<h2>3. Images</h2>
<h3>1. Unsplash</h3>
<a href="https://unsplash.com/search/photos/stonehenge">🌍 Visit site</a>
<h3>2. Pexels</h3>
<a href="https://www.pexels.com/search/Stonehenge/">🌍 Visit site</a>
CSS
body {
margin: 0;
padding: 3rem;
font-family: 'Work Sans', sans-serif;
font-style: normal;
font-weight: 400;
}
.fredericka-the-great {
font-family: 'Fredericka the Great', cursive;
font-style: normal;
font-weight: 400;
}
.montserrat-normal {
font-family: 'Montserrat', sans-serif;
font-style: normal;
font-weight: 400;
}
.montserrat-bold {
font-family: 'Montserrat', sans-serif;
font-style: normal;
font-weight: 800;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
margin-top: 1rem;
margin-bottom: 1rem;
}
h1 {
margin-top: 0;
}
code {
display: inline-block;
margin-bottom: 0.5rem;
background: #eee;
padding: 0.2rem 0.4rem;
color: #688fb8;
border-radius: 0.25rem;
}
a {
color: #3182CE;
}
.flex {
display: flex;
margin-bottom: 1rem;
}
.flex-col {
flex-direction: column;
}
.w-1\/6 {
width: 16.6666%;
}
.-mx {
margin-left: -0.5rem;
margin-right: -0.5rem;
}
.px {
margin-left: 0.5rem;
margin-right: 0.5rem;
}
.mb {
margin-bottom: 1rem;
}
.color {
width: 4rem;
height: 4rem;
background: grey;
margin-bottom: 0.4rem;
border-radius: 100rem;
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}
hr {
border: none;
border-bottom: 1px solid #ebebeb;
}
.font {
border: 1px solid #cacaca;
padding: 1rem;
}
.font p {
margin: 0;
font-size: 2.7rem;
}