Ciao, unfortunately you cannot change icon color (to white if I understood correctly). I tried to override &.MuiInputBase-input css class also but the only thing I achieved was change text color.
But you can do something more (if you want). You can use DatePicker from @material-ui/pickers. This is of course more customizable (and I think more cool).
What do you need?
- @date-io/moment (1.x version pay attention on this);
- @material-ui/pickers;
- @date-io/moment;
- moment;
Installed this libraries you can do something like that:
Define a Theme:
const Theme = {
palette: {
primary: { // primary color
contrastText: "#FFFFFF",
dark: "#000000",
main: "#000000", // black
light: "#000000"
}
}
};
Create a Mui theme:
const theme = createMuiTheme(Theme);
Use a DatePicker:
<DatePicker
format={"DD-MM-YYYY"} // your date format
label="my date"
inputVariant="outlined" // if you want an outlined date input
helperText=""
size="small"
value={myDate}
onChange={setmyDate}
/>
Wrap DatePicker into a ThemeProvider (to pass Theme to DatePicker) and into a MuiPickersUtilsProvider (to manage date with moment):
<ThemeProvider theme={theme}>
<MuiPickersUtilsProvider utils={MomentUtils}>
<div className="App">
<DatePicker
format={"DD-MM-YYYY"}
label="my date"
inputVariant="outlined"
helperText=""
size="small"
value={myDate}
onChange={setmyDate}
/>
</div>
</MuiPickersUtilsProvider>
</ThemeProvider>
And now if you click on date input you got this:

A DatePicker with a dark style. This is a date picker dialog but you can also have a date picker inline (using KeyboardDatePicker).
Here you can find all the date picker versions provided by MaterialUI.
I know, it's a little bit tricky the first time (how many stuff I have to do for a simple date picker!!!) but the result is graphically more beautiful.
Here a codesandbox example of DatePicker.