JSFiddle - React, Tailwind, and code Playground
HTML
<section class="container">
<section class="container">
<a class="button -small -primary">hogehoge</a>
<a class="button -error">fugafuga</a>
<a class="button -large -success">Big!!!!!!</a>
</section>
<section class="container">
<div class="balloon -right">
<p>おお勇者よ、死んでしまうとは情けない<br> 生き返る?
</p>
</div>
<div class="radios">
<label><input class="radio" type="radio" name="radios1" checked>YES</label>
<label><input class="radio" type="radio" name="radios1">NO</label>
</div>
</section>
CSS
/*!
* NES.css v0.0.1(alpha)
*/
/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */
@import url("https://fonts.googleapis.com/css?family=Press+Start+2P");
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
padding: 0;
margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
font-weight: normal;
}
ul {
list-style: none;
}
button,
input,
select,
textarea {
margin: 0;
}
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
img,
embed,
iframe,
object,
audio,
video {
max-width: 100%;
height: auto;
}
iframe {
border: 0;
}
table {
border-spacing: 0;
border-collapse: collapse;
}
td,
th {
padding: 0;
text-align: left;
}
html {
font-size: 16px;
color: #333;
background-color: #f7f7f7;
}
body,
button,
input,
textarea,
select,
pre,
code {
font-family: "Press Start 2P";
font-size: 16px;
}
a {
color: #333;
text-decoration: none;
}
p:not(:last-child) {
margin-bottom: 1rem;
}
@keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
}
._dark {
color: #f7f7f7;
}
._right {
text-align: right;
}
.title {
font-weight: 700;
word-break: break-word;
}
.title:not(:first-child) {
margin-top: 1rem;
}
.title:not(:last-child) {
margin-bottom: 1rem;
}
.title.-is-1 {
font-size: 48px;
}
.title.-is-2 {
font-size: 40px;
}
.title.-is-3 {
font-size: 32px;
}
.title.-is-4 {
font-size: 24px;
}
.title.-is-5 {
font-size: 20px;
}
.title.-is-6 {
font-size: 16px;
}
.subtitle {
font-weight: 400;
}
.subtitle:not(:last-child) {
margin-bottom: 1.5rem;
}
.subtitle.-is-1 {
font-size: 48px;
}
.subtitle.-is-2 {
font-size: 40px;
}
.subtitle.-is-3 {
font-size: 32px;
}
.subtitle.-is-4 {
font-size: 24px;
}
.subtitle.-is-5 {
font-size: 20px;
}
.subtitle.-is-6 {
font-size: 16px;
}
.button {
position: relative;
display: inline-block;
padding: 10px 12px;
...