@material-ui/core#styled TypeScript Examples

The following examples show how to use @material-ui/core#styled. 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: VotersDialog.tsx    From homebase-app with MIT License 6 votes vote down vote up
NoTokens = styled(Grid)(({ theme }) => ({
  padding: "33px 64px",
  borderTop: `2px solid ${theme.palette.primary.light}`,
  paddingBottom: 0,
  display: "flex",
  alignItems: "end",
  [theme.breakpoints.down("sm")]: {
    padding: "20px 34px",
  },
}))
Example #2
Source File: PullRequestGrid.tsx    From backstage with Apache License 2.0 6 votes vote down vote up
GridDiv = styled('div')(({ theme }) => ({
  display: 'flex',
  flexDirection: 'row',
  justifyContent: 'space-between',
  '& > *': {
    marginRight: theme.spacing(2),
  },
  '& > :last-of-type': {
    marginRight: 0,
  },
}))
Example #3
Source File: HeroTitle.tsx    From homebase-app with MIT License 6 votes vote down vote up
HeroTitle = styled(Typography)(({ theme }) => ({
  fontSize: 30,
  fontWeight: 500,
  color: theme.palette.text.primary,
  lineHeight: .80,
  marginBottom: "9px",

  ["@media (max-width:1030px)"]: { 
    fontSize: 25,
  },
}))
Example #4
Source File: PullRequestGridColumn.tsx    From backstage with Apache License 2.0 6 votes vote down vote up
PullRequestCardContainer = styled('div')(({ theme }) => ({
  display: 'flex',
  flexDirection: 'column',
  '& > *': {
    marginBottom: theme.spacing(2),
  },
  '& > :last-of-type': {
    marginBottom: 0,
  },
}))
Example #5
Source File: Blockie.tsx    From homebase-app with MIT License 6 votes vote down vote up
StyledBox = styled(Box)(
  ({ address, size }: { address: string; size?: number }) => ({
    width: size || 23,
    height: size || 23,
    minWidth: size || 23,
    maxHeight: size || 23,
    borderRadius: "50%",
    background: `url(${address})`,
    backgroundSize: "contain",
  })
)