@mui/material APIs
- Button
- IconButton
- Typography
- MenuItem
- Box
- Tooltip
- TextField
- CircularProgress
- FormControlLabel
- List
- Divider
- ListItem
- ListItemText
- Select
- Grid
- ThemeProvider
- FormControl
- Link
- useTheme
- InputLabel
- Paper
- Dialog
- DialogTitle
- Toolbar
- createTheme
- LinearProgress
- Container
- Checkbox
- ListItemIcon
- DialogContent
- Card
- CssBaseline
- Theme
- useMediaQuery
- Menu
- Alert
- Tab
- DialogActions
- AppBar
- Switch
- Drawer
- Chip
- InputAdornment
- Collapse
- Stack
- CardContent
- DialogContentText
- TableBody
- TableCell
- TableRow
- Skeleton
- Table
- Tabs
- Avatar
- Autocomplete
- FormGroup
- SelectChangeEvent
- Radio
- AlertTitle
- TableHead
- InputBase
- Input
- Snackbar
- TextFieldProps
- styled
- alpha
- TableContainer
- CardActions
- Badge
- CardHeader
- ListItemButton
- CardActionArea
- Modal
- AccordionDetails
- AccordionSummary
- ButtonProps
- StyledEngineProvider
- RadioGroup
- ListItemAvatar
- Fade
- CardMedia
- Accordion
- Slider
- FormLabel
- FormHelperText
- Popover
- Backdrop
- Popper
- ThemeOptions
- Zoom
- ToggleButton
- ToggleButtonGroup
- SxProps
- Fab
- TooltipProps
- IconButtonProps
- CircularProgressProps
- darken
- TextareaAutosize
- OutlinedInput
- Breadcrumbs
- Slide
- SwipeableDrawer
- ClickAwayListener
- SelectProps
- TypographyProps
- ButtonBase
- ListItemSecondaryAction
- SvgIcon
- Pagination
- tooltipClasses
- ButtonGroup
- Hidden
- debounce
- FilledInput
- lighten
- useScrollTrigger
- darkScrollbar
- PaletteMode
- SnackbarCloseReason
- MenuList
- SvgIconProps
- SnackbarProps
- AlertColor
- Icon
- TablePagination
- MenuItemProps
- Stepper
- Step
- StepLabel
- ownerWindow
- useForkRef
- AlertProps
- InputUnstyled
- Rating
- capitalize
- SpeedDial
- SpeedDialAction
- SpeedDialIcon
- BadgeProps
- createSvgIcon
- Grow
- linearProgressClasses
- PaletteColor
- BottomNavigation
- Palette
- responsiveFontSizes
- OutlinedInputProps
- TabProps
- NoSsr
- PaletteOptions
- ListSubheader
- ImageList
- StepConnector
- tableCellClasses
- TableSortLabel
@mui/material#Palette TypeScript Examples
The following examples show how to use
@mui/material#Palette.
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: palette.ts From houston with MIT License | 5 votes |
export default function palette(theme: IHoustonTheme): Partial<Palette> {
return {
background: {
paper: '#fff',
default: '#F9FAFB'
},
common: {
black: '#000',
white: '#fff'
},
error: {
light: theme.feedbackColor.negative.light,
main: theme.feedbackColor.negative.pure,
dark: theme.feedbackColor.negative.dark,
contrastText: '#fff'
},
grey: {
50: theme.neutralColor.high.pure,
100: theme.neutralColor.high.pure,
200: theme.neutralColor.high.light,
300: theme.neutralColor.high.medium,
400: theme.neutralColor.high.dark,
500: theme.neutralColor.low.light,
600: theme.neutralColor.low.medium,
700: theme.neutralColor.low.medium,
800: theme.neutralColor.low.dark,
900: theme.neutralColor.low.pure,
A100: theme.neutralColor.low.pure,
A200: theme.neutralColor.low.pure,
A400: theme.neutralColor.low.pure,
A700: theme.neutralColor.low.pure
},
warning: {
light: theme.feedbackColor.warning.light,
main: theme.feedbackColor.warning.pure,
dark: theme.feedbackColor.warning.dark,
contrastText: '#37474F'
},
primary: {
light: theme.brandColor.primary.light,
main: theme.brandColor.primary.pure,
dark: theme.brandColor.primary.dark,
contrastText: '#fff'
},
secondary: {
light: '#ECEFF1',
main: '#78909C',
dark: '#37474F',
contrastText: '#fff'
},
info: {
light: theme.feedbackColor.informative.light,
main: theme.feedbackColor.informative.pure,
dark: theme.feedbackColor.informative.dark,
contrastText: '#fff'
},
success: {
light: theme.feedbackColor.positive.light,
main: theme.feedbackColor.positive.pure,
dark: theme.feedbackColor.positive.dark,
contrastText: '#fff'
},
text: {
disabled: '#B0BEC5',
primary: '#37474F',
secondary: '#102027'
}
};
}