JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<th>text</th>
<th>text</th>
<th>text</th>
</tr>
<tr>
<td>text text</td>
<td>text text</td>
<td>text text</td>
</tr>
<tr>
<td>text text</td>
<td>text text</td>
<td>text text</td>
</tr>
</table>
CSS
@import url('https://fonts.googleapis.com/css2?family=Neucha&display=swap');
* {
box-sizing: inherit;
}
html {
box-sizing: border-box;
}
body {
padding: 50px;
margin: 0;
font-family: 'Neucha', cursive;
}
table {
border-collapse: collapse;
}
th,
td {
padding: 20px 40px;
border: 1px dotted gray;
}
th {
position: relative;
color: #fff;
font-weight: 400;
font-size: 20px;
}
th::after {
content: "";
position: absolute;
top: 10px;
bottom: 10px;
left: 10px;
right: 10px;
border-radius: 8px;
background: linear-gradient(21deg, #dd03e4, #5611ec);
z-index: -1;
}