How to use the @mui-treasury/utils/getThemeColor function in @mui-treasury/utils

To help you get started, we’ve selected a few @mui-treasury/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github siriwatknp / mui-treasury / packages / mui-styles / src / cardHeader / contained / containedCardHeader.styles.js View on Github external
root: ({ bgColor = 'primary.main', offset = '-40px', ...styles }) => ({
    backgroundColor: getThemeColor(palette, bgColor),
    borderRadius: spacing(2),
    margin: `${offset} auto 0`,
    width: '88%',
    ...styles,
  }),
  title: {