This is the concept.
<style>
.customStyle
{
color:red;
}
</style>
<input type="text" class="customStyle" value="I am a textbox">
<textarea rows="4" cols="40" class="customStyle">
I am a textarea
Now you will have the same style for both controls as you asked. You can implement this simple concept in your code.