@material-ui/core/styles#createStyles TypeScript Examples
The following examples show how to use
@material-ui/core/styles#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: EditImageDialog.tsx From vscode-crossnote with GNU Affero General Public License v3.0 | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
imageWrapper: {
textAlign: "center",
},
imagePreview: {
maxWidth: "100%",
maxHeight: "400px",
},
})
)
Example #2
Source File: App.tsx From Demae with MIT License | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
box: {
minHeight: "100vh",
paddingBottom: "100px",
},
content: {
flexGrow: 1
}
})
)
Example #3
Source File: CodeEditor.tsx From firetable with Apache License 2.0 | 6 votes |
useStyles = makeStyles((theme) =>
createStyles({
editorWrapper: { position: "relative" },
resizeIcon: {
position: "absolute",
bottom: 0,
right: 0,
color: theme.palette.text.disabled,
},
saveButton: {
marginTop: theme.spacing(1),
},
})
)
Example #4
Source File: ExperimentStatus.tsx From abacus with GNU General Public License v2.0 | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
fontFamily: theme.custom.fonts.monospace,
},
completed: {
backgroundColor: '#4CAF50',
},
running: {
backgroundColor: '#FF9800',
},
staging: {
backgroundColor: '#1E77A5',
},
disabled: {
backgroundColor: '#828282',
},
statusDot: {
display: 'inline-block',
borderRadius: 100,
height: '.8em',
width: '.8em',
verticalAlign: 'middle',
},
}),
)
Example #5
Source File: ResetPasswordAction.tsx From firebase-react-typescript-project-template with MIT License | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
loading: {
display: "flex",
justifyContent: "center",
},
link: {
textDecoration: "none",
margin: "0 auto",
},
marginTop: {
marginTop: theme.spacing(3),
},
textSpacing: {
marginBottom: theme.spacing(2),
},
form: {
display: "flex",
flexDirection: "column",
alignItems: "center",
marginTop: theme.spacing(4),
},
input: {
marginBottom: theme.spacing(2),
marginTop: 0,
width: "100%",
maxWidth: 280,
},
})
)
Example #6
Source File: MainAppBar.tsx From clarity with Apache License 2.0 | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
flexGrow: 1,
backgroundColor: 'white'
},
toolbarMargin: {
minHeight: '40px'
},
menuButton: {
marginRight: theme.spacing(2)
},
title: {
flexGrow: 1
}
})
)
Example #7
Source File: MonitoringDialog.tsx From Pi-Tool with GNU General Public License v3.0 | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: '100%',
minWidth: '500px',
backgroundColor: theme.palette.background.paper,
},
}),
)
Example #8
Source File: ClientList.tsx From react-tutorials with MIT License | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: '150px',
maxWidth: 150,
backgroundColor: theme.palette.background.paper,
maxHeight: '340px',
overflow: 'auto',
paddingTop: '5px',
scroll: 'paper',
},
})
)
Example #9
Source File: MenuItem.tsx From dashboard-layout with MIT License | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
button: {
"&:hover": {
backgroundColor: theme.palette.primary.light,
color: theme.palette.common.white,
},
"&$selected": {
backgroundColor: theme.palette.primary.dark,
color: theme.palette.common.white,
},
},
selected: {},
listIcon: {
minWidth: "auto",
paddingRight: theme.spacing(2),
},
icon: {
color: theme.palette.secondary.main,
},
})
)
Example #10
Source File: EnhancedTable.tsx From tutorial-cloudflare-bookstore with Apache License 2.0 | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: "100%",
paddingRight: "10px",
paddingLeft: "10px",
},
gridStyle: {
padding: "10px",
},
button: {
margin: "1px",
},
paper: {
width: "100%",
marginBottom: theme.spacing(2),
},
table: {
minWidth: 750,
},
visuallyHidden: {
border: 0,
clip: "rect(0 0 0 0)",
height: 1,
margin: -1,
overflow: "hidden",
padding: 0,
position: "absolute",
top: 20,
width: 1,
},
})
)
Example #11
Source File: App.tsx From GitNotes with MIT License | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
display: 'flex',
},
drawer: {
[theme.breakpoints.up('sm')]: {
width: drawerWidth,
flexShrink: 0,
},
},
appBar: {
[theme.breakpoints.up('sm')]: {
width: `calc(100% - ${drawerWidth}px)`,
marginLeft: drawerWidth,
},
},
menuButton: {
marginRight: theme.spacing(2),
[theme.breakpoints.up('sm')]: {
display: 'none',
},
},
toolbar: theme.mixins.toolbar,
drawerPaper: {
width: drawerWidth,
},
content: {
flexGrow: 1,
padding: theme.spacing(3)
},
github: {
'& > *': {
marginRight: theme.spacing(2),
marginBottom: theme.spacing(1),
},
}
}),
)
Example #12
Source File: AreaChart.tsx From interface-v2 with GNU General Public License v3.0 | 6 votes |
useStyles = makeStyles(({ palette }) =>
createStyles({
chartContainer: {
flex: 1,
marginTop: -20,
},
categoryValues: {
display: 'flex',
justifyContent: 'space-between',
marginTop: -40,
marginRight: 8,
'& p': {
fontSize: 12,
color: palette.text.disabled,
},
},
yAxis: {
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-between',
marginLeft: 8,
marginBottom: 20,
'& p': {
fontSize: 10,
fontWeight: 500,
color: palette.text.disabled,
},
},
}),
)
Example #13
Source File: ZoomSpeedDial.tsx From frontend with Apache License 2.0 | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
speedDial: {
position: "absolute",
"&.MuiSpeedDial-directionUp": {
bottom: theme.spacing(2),
right: theme.spacing(2),
},
},
})
)
Example #14
Source File: Emotes.tsx From Oratio with MIT License | 6 votes |
useStyles = makeStyles(() =>
createStyles({
root: {
flexGrow: 1,
background: theme.palette.background.default,
color: 'white',
padding: theme.spacing(4),
},
content: {},
text: {
color: 'white',
fontSize: '3rem',
textAlign: 'center',
},
button: {
padding: theme.spacing(2),
textAlign: 'center',
margin: '5px',
},
link: {
textDecoration: 'none',
},
bottomButtons: {
marginTop: '40px',
},
emote: {
display: 'inline-block',
width: 'auto',
height: 'auto',
'max-height': '2em',
'max-width': '1000px',
},
})
)
Example #15
Source File: Avatar.tsx From backstage with Apache License 2.0 | 6 votes |
useStyles = makeStyles(
(theme: Theme) =>
createStyles({
avatar: {
width: '4rem',
height: '4rem',
color: '#fff',
fontWeight: theme.typography.fontWeightBold,
letterSpacing: '1px',
textTransform: 'uppercase',
},
}),
{ name: 'BackstageAvatar' },
)
Example #16
Source File: index.tsx From ever-wallet-browser-extension with GNU General Public License v3.0 | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
'& > * + *': {
marginTop: theme.spacing(3),
},
'marginBottom': 12,
},
})
)
Example #17
Source File: MainAppBar.tsx From signer with Apache License 2.0 | 6 votes |
useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: '100vw',
flexGrow: 1,
color: '#c4c4c4',
backgroundColor: 'var(--cspr-dark-blue)'
},
toolbarMargin: {
minHeight: '40px'
},
menuButton: {
marginRight: theme.spacing(2)
},
toggleWrapper: {
flexGrow: 1,
textAlign: 'center'
},
toggleButton: {
width: '100%',
height: '2rem'
}
})
)
Example #18
Source File: LanguageKeySelect.tsx From clearflask with Apache License 2.0 | 6 votes |
styles = (theme: Theme) => createStyles({
labelMessage: {
margin: theme.spacing(1, 2),
},
labelOptionContainer: {
display: 'flex',
alignItems: 'center',
margin: theme.spacing(1, 2),
cursor: 'pointer',
},
table: {
whiteSpace: 'nowrap',
...contentScrollApplyStyles({
theme,
orientation: Orientation.Horizontal,
backgroundColor: theme.palette.background.paper,
}),
},
})