If you need to customize Materialize CSS styles, remember to use " !important ".
I've created a CodePen example with the provided markup to illustrate this (https://codepen.io/anon/pen/yzVXWN).
Also, keep in mind that the Materialize CSS stylesheet is included in the CodePen for testing purposes.
To apply your custom CSS, simply copy and paste it between the <style>
tags within the head section like this:
<style>
#first_name{
display: block!important;
width: auto !important;
padding: .5rem!important;
border: 1px solid rgb(0,0,0);
transition: all 1s;
border-radius: .25rem!important;
box-shadow: none;
}
#first_name:focus{
border-color: blue!important;
}
label{
color:#9e9e9e!important;
}
</style>
I hope this information is helpful :)