JSFiddle - React, Tailwind, and code Playground

by AIDimov

HTML

<!--BEGIN [@Header/Top] Top-->
<div class="row__top">
	<div class="cell cell__top cell-s">
		<div class="main__top">
			<div class="top__item">left</div>
			<div class="top__item top__item--full">
				mid
			</div>
			<div class="top__item mr-0">right</div>
		</div>
	</div>
</div>
<!--END [@Header/Top] Top-->

CSS

/** BEGIN [@Layout] **/

.row__top {
	background: #ffde40;
}

.cell {
	
}

.cell__top {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1280px;
}

.main__top {
	display: flex;
	height: 56px;
	align-items: center;
}

.top__item--full {
	flex: auto;
	justify-content: center;
}

.top__item {
	display: flex;
	margin-right: 16px;
}
/** END [@Layout] **/

/** BEGIN [@Utility] **/
.mr-0 {
	margin-right: 0;
}
/** END [@Utility] **/

/** BEGIN [@Media] **/
@media (max-width: 319px) {
	.cell {
		padding: 0 8px;
	}
	.cell-es {
		display: none;
	}
}

@media (min-width: 320px) and (max-width: 543px) {
	.cell {
		padding: 0 16px;
	}
	.cell-s {
		display: none;
	}
}

@media (min-width: 544px) and (max-width: 767px) {
	.cell {
		padding: 0 24px;
	}
	.cell-m {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1011px) {
	.cell {
		padding: 0 32px;
	}
	.cell-l {
		display: none;
	}
}

@media (min-width: 1012px) {
	.cell {
		padding: 0 48px;
	}
	.cell-el {
		display: none;
	}
}
/** END [@Media] **/