@material-ui/core#createStyles TypeScript Examples
The following examples show how to use
@material-ui/core#createStyles.
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: 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 #3
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 #4
Source File: AccountPage.tsx From clarity with Apache License 2.0 | 6 votes |
styles = (theme: Theme) =>
createStyles({
root: {
'& .MuiTextField-root': {
marginTop: theme.spacing(2)
}
},
importButton: {
marginTop: theme.spacing(8)
}
})
Example #5
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 #6
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 #7
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%'
},
}),
)
Example #8
Source File: OnCallList.tsx From backstage-plugin-opsgenie with MIT License | 6 votes |
useStyles = makeStyles((theme) =>
createStyles({
pagination: {
marginTop: theme.spacing(2),
},
search: {
marginBottom: theme.spacing(2),
},
onCallItemGrid: {
gridTemplateColumns: 'repeat(auto-fill, minmax(32em, 1fr))',
}
}),
)
Example #9
Source File: TransactionItem.tsx From End-to-End-Web-Testing-with-Cypress with MIT License | 6 votes |
SmallAvatar = withStyles((theme: Theme) =>
createStyles({
root: {
width: 22,
height: 22,
border: `2px solid ${theme.palette.background.paper}`,
},
})
)(Avatar)
Example #10
Source File: PopperTitle.tsx From twitch-live-extension with BSD 3-Clause "New" or "Revised" License | 6 votes |
useStyles = makeStyles(() =>
createStyles({
root: {
pointerEvents: 'none',
backgroundColor: '#4c4c4c',
maxWidth: 300,
},
typography: {
padding: 5,
},
}),
)
Example #11
Source File: index.tsx From frontend with Apache License 2.0 | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
listContainer: {
height: "100%",
overflow: "auto",
},
listItemSecondaryAction: {
visibility: "hidden",
},
listItem: {
"&:hover $listItemSecondaryAction": {
visibility: "inherit",
},
},
})
)
Example #12
Source File: index.tsx From prism-frontend with MIT License | 6 votes |
styles = () =>
createStyles({
container: {
width: '100vw',
height: '100vh',
backgroundColor: colors.skyBlue,
display: 'flex',
justifyContent: 'center',
},
content: {
margin: 'auto',
maxWidth: '50vw',
},
image: {
width: '90%',
opacity: '0.5',
},
})