JSFiddle - React, Tailwind, and code Playground

HTML

<div>
<span>ABC DEF GHI JKL MNO PAR STU VWX YZ</span>
</div>

CSS

div {
  color: red; width: 250px;
}
div::first-line {
  color: green;
}
span {
  border: 3px solid;
}