Created
July 11, 2021 14:18
-
-
Save mdtaju/581d0b3442e89ee7b5f88e862ba53fad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import TextField from '@material-ui/core/TextField'; | |
import { createTheme, ThemeProvider } from '@material-ui/core/styles'; | |
const Theme = createTheme({ | |
palette: { | |
primary: { | |
main: '#d2691e', | |
}, | |
}, | |
}); | |
export default function ChangeColor() { | |
return ( | |
<form> | |
<ThemeProvider theme={Theme}> | |
<TextField id="outlined-basic" label="Outlined" variant="outlined" /> | |
</ThemeProvider> | |
</form> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment