Skip to content

Instantly share code, notes, and snippets.

@mdtaju
Created July 11, 2021 14:18
Show Gist options
  • Save mdtaju/581d0b3442e89ee7b5f88e862ba53fad to your computer and use it in GitHub Desktop.
Save mdtaju/581d0b3442e89ee7b5f88e862ba53fad to your computer and use it in GitHub Desktop.
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