@material-ui/core#makeStyles TypeScript Examples
The following examples show how to use
@material-ui/core#makeStyles.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: utils.ts From firetable with Apache License 2.0 | 7 votes |
useFieldStyles = makeStyles((theme) =>
createStyles({
root: {
borderRadius: theme.shape.borderRadius,
backgroundColor:
theme.palette.type === "light"
? "rgba(0, 0, 0, 0.09)"
: "rgba(255, 255, 255, 0.09)",
padding: theme.spacing(1, 1, 1, 1.5),
width: "100%",
minHeight: 56,
display: "flex",
textAlign: "left",
alignItems: "center",
...theme.typography.body1,
color: theme.palette.text.primary,
},
})
)
Example #2
Source File: BetaBanner.tsx From akashlytics with GNU General Public License v3.0 | 6 votes |
useStyles = makeStyles((theme) => ({
root: {
paddingTop: "1rem",
paddingBottom: "1rem",
},
grow: { flexGrow: 1 },
betaChip: {
fontWeight: "bold",
},
betaText: {
display: "flex",
flexDirection: "column",
alignItems: "baseline",
padding: "0 1rem",
},
}))
Example #3
Source File: AppBar.tsx From firetable with Apache License 2.0 | 6 votes |
useStyles = makeStyles((theme) =>
createStyles({
appBar: {
backgroundColor: theme.palette.background.paper,
marginBottom: theme.spacing(6),
},
logo: {
display: "block",
marginRight: theme.spacing(1),
},
heading: {
textTransform: "none",
color: theme.palette.primary.main,
cursor: "default",
userSelect: "none",
fontFeatureSettings: '"liga"',
},
locationDropdown: {
minWidth: 140,
margin: 0,
},
})
)
Example #4
Source File: AudiencePanel.tsx From abacus with GNU General Public License v2.0 | 6 votes |
useStyles = makeStyles(() =>
createStyles({
title: {
flexGrow: 1,
},
monospace: {
fontFamily: theme.custom.fonts.monospace,
},
audienceTable: {
tableLayout: 'fixed',
'& > tbody > tr > th': {
width: '25%',
},
},
}),
)
Example #5
Source File: AuthContainer.tsx From firebase-react-typescript-project-template with MIT License | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: "100vw",
height: "100vh",
backgroundImage: PRIMARY_GRADIENT,
display: "flex",
alignItems: "center",
justifyContent: "center",
},
paper: {
width: "100%",
[theme.breakpoints.down("xs")]: {
width: "100vw",
height: "100vh",
borderRadius: 0,
},
overflowY: "auto",
padding: 0,
opacity: 0.9,
},
})
)
Example #6
Source File: MainScreen.tsx From binaural-meet with GNU General Public License v3.0 | 6 votes |
useStyles = makeStyles({
videoContainer: {
height: '100%',
width: '100%',
backgroundColor: 'none',
},
video:{
marginLeft: 'auto',
marginRight: 'auto',
display: 'block',
// height: '100%',
width: '100%',
},
})
Example #7
Source File: styles.tsx From DamnVulnerableCryptoApp with MIT License | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
menuButton: {
marginRight: theme.spacing(2),
},
title: {
flexGrow: 1,
},
toolbar: {
display: 'flex',
'justify-content': "space-between",
},
appbar: {
'margin-bottom': '40px'
},
menuLeft: {
display: 'flex',
flexFlow: "flex-direction",
},
menuLogo: {
height: '30px',
marginTop: '9px',
cursor: 'pointer'
},
docsLink: {
color: '#FFF',
textDecoration: 'none',
fontSize: '1rem',
fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
fontWeight: 400,
lineHeight: '43px',
letterSpacing: '0.00938em',
paddingRight: '20px'
}
}),
)
Example #8
Source File: index.tsx From Nishan with MIT License | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
formControl: {
margin: theme.spacing(1),
},
selectEmpty: {
marginTop: theme.spacing(2),
},
}),
)
Example #9
Source File: ValidatorReport.tsx From community-repo with GNU General Public License v3.0 | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
flexGrow: 1,
},
backdrop: {
zIndex: theme.zIndex.drawer + 1,
color: '#fff',
position: 'absolute',
width: '100%'
},
}),
)