JSFiddle - React, Tailwind, and code Playground
by gambian
HTML
<html>
<body>
<div class="center">
<button class="button">
thing
</button>
</div>
<style>
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300&display=swap');
</style>
</body>
</html>
SCSS
$color1: #010226;
$color2: #fcdbab;
.button {
width: 100px;
height: 75px;
border: 10px;
border-style: solid;
border-color: $color1;
border-bottom-style: dotted;
border-radius: 20px;
padding-left: 10px;
padding-right: 10px;
background-color: $color1;
font-family: "Raleway";
font-size: 20px;
font-style: bolder;
color: $color2;
}
.center {
margin: center;
text-align: center;
}
:hover {
border-color: lighten($color1, 10);
}
:active {
border-color: lighten($color1, 15);
}
html {
background: linear-gradient(to left, peachpuff, coral);
}
JavaScript
document.getElementById(button).innerHTML = "button";