JSFiddle - React, Tailwind, and code Playground
by lakshmipathi
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/1.6.2/tailwind.min.css">
<script src="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&amp;display=swap"></script>
<div class="min-w-screen min-h-screen bg-gray-200 flex items-center justify-center px-5 py-5">
<div class="rounded-lg shadow-xl bg-gray-900 text-white" style="width:450px;">
<div class="border-b border-gray-800 px-8 py-3">
<div class="inline-block w-3 h-3 mr-2 rounded-full bg-red-500"></div><div class="inline-block w-3 h-3 mr-2 rounded-full bg-yellow-300"></div><div class="inline-block w-3 h-3 mr-2 rounded-full bg-green-400"></div>
</div>
<div class="px-8 py-6">
<p><em class="text-blue-400">const</em> <span class="text-green-400">abouxtMe</span> <span class="text-pink-500">=</span> <em class="text-blue-400">function</em>() {</p>
<p> <span class="text-pink-500">return</span> {</p>
<p> name: <span class="text-yellow-300">'Scott Windon'</span>,</p>
<p> position: <span class="text-yellow-300">'fullstack-developer'</span>,</p>
<p> website: <span class="text-yellow-300">'<a href="https://scottwindon.com" target="_blank" class="text-yellow-300 hover:underline focus:border-none">https://scottwindon.com</a>'</span>,</p>
<p> }</p>
<p>}</p>
</div>
</div>
</div>
CSS
body {
font-family: 'Roboto Mono', monospace;
}