Submitted over 1 year ago
Progressive Web App built with Vite + React using Material UI
@erlynascarate
Design comparison
SolutionDesign
Community feedback
- @erlynascaratePosted over 1 year ago
Default theme object can be customized:
- https://mui.com/material-ui/customization/theming/
- https://mui.com/material-ui/customization/default-theme/
const theme = createTheme({ ----typography: { --------fontFamily: 'Poppins, sans-serif', ----}, ----palette: { --------common: { ------------white: 'hsl(0, 0%, 100%)', --------}, --------primary: { ------------main: 'hsl(259, 100%, 65%)', ------------hover: 'hsl(0, 0%, 8%)', --------}, --------error: { ------------main: 'hsl(0, 100%, 67%)', --------}, --------background: { ------------default: 'hsl(0, 0%, 94%)', --------}, ----}, })
The
onInvalid
andonInput
events haveevent.target.validationMessage
which can be used like help text.const validate = (event) => { ----console.log(event.target.validationMessage) }
return ( ----<TextField --------onInput={validate} --------//... ----/> )
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord