JSFiddle - React, Tailwind, and code Playground
HTML
<style>
.flex1 {
flex: 1;
}
.flex2 {
flex: 2;
}
</style>
<div style="display: flex; height: 300px; background-color: red;">
<div class="flex1" style="background-color: yellow;border:dotted;"></div>
<div class="flex2" style="background-color: grey; border:dotted;"></div>
</div>