.box {
min-height:50px;
margin:10px;
font-size:25px;
border:5px solid transparent;
background:
/*Text coloration*/
linear-gradient(yellow,yellow) ,
linear-gradient(grey,grey) ,
linear-gradient(#fff,#fff),
/*Background coloration*/
linear-gradient(red,red),
linear-gradient(blue,blue),
linear-gradient(orange,orange),
/*Border coloration*/
linear-gradient(purple,purple),
linear-gradient(green,green),
linear-gradient(#000,#000);
background-size:
100% calc(100% - 200px),
100% calc(100% - 100px),
100% 100%;
-webkit-background-clip:
text,text,text,
padding-box,padding-box,padding-box,
border-box,border-box,border-box;
background-clip:
text,text,text,
padding-box,padding-box,padding-box,
border-box,border-box,border-box;
-webkit-text-fill-color: transparent;
color: transparent;
}
<div class="box">some text here</div>
<div class="box" style="height:120px">some text here</div>
<div class="box" style="height:220px">some text here</div>