JSFiddle - React, Tailwind, and code Playground

by agib

HTML

<div class="flex-container">
  <a href="#" class="btn">Duplicate</a>
</div>

CSS

:root {
  --primary-color: #1E90FF;
  --primary-color-darker: #007ffb;
  --primary-color-lighter: #40a1ff;
}
body {
  font-family: sans-serif;
}
.flex-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn {
  display: inline-block;
  text-decoration: none;
  padding: .5rem 1.5rem;
  border-radius: .3rem;
  color: white;
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.btn:focus {
  outline: none;
  background-color: var(--primary-color-lighter);
}
.btn:hover {
  background-color: var(--primary-color-darker);
}
.btn:active {
  border-width: 0;
}