How to use the @lskjs/theme/getTheme function in @lskjs/theme

To help you get started, we’ve selected a few @lskjs/theme 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 lskjs / ux / packages / dashboard / src / atoms / ModalHelp / ModalHelp.styles.js View on Github external
  background-color: ${p => getTheme(p.theme, 'colors.darkerBackground')};
github lskjs / ux / packages / form / src / controls / Files / components / Box / BoxFooter.js View on Github external
case 'info':
        return css` 
          background-color: ${getTheme(p.theme, 'colors.info')}; 
          color: ${getTheme(p.theme, 'colors.white')};`;
      case 'success':
        return css` 
          background-color: ${getTheme(p.theme, 'colors.success')}; 
          color: ${getTheme(p.theme, 'colors.white')};`;
      case 'warning':
        return css` 
          background-color: ${getTheme(p.theme, 'colors.warning')}; 
          color: ${getTheme(p.theme, 'colors.main')};`;
      case 'danger':
        return css` 
          background-color: ${getTheme(p.theme, 'colors.danger')}; 
          color: ${getTheme(p.theme, 'colors.white')};`;
      default:
        return '';
    }
  }}
`;
github lskjs / ux / packages / button / src / Button.styles.js View on Github external
const warningBaseTheme = ({ theme }) => css`
  color: ${getTheme(theme, 'colors.main')};
  background-color: ${getTheme(theme, 'colors.lighterGray')};

  &:hover {
    color: ${getTheme(theme, 'colors.white')};
    background-color: ${getTheme(theme, 'colors.warning')};
  }

  &:focus {
    color: ${getTheme(theme, 'colors.white')};
    background-color: ${getTheme(theme, 'colors.darkerWarning')};
  }

  &:active {
    color: ${getTheme(theme, 'colors.white')};
    background-color: ${getTheme(theme, 'colors.warning')};
  }
`;
github lskjs / ux / packages / form / src / components / BaseSwitcher / BaseSwitcher.styles.js View on Github external
${p => (p.checked && `
    background-color: ${getTheme(p.theme, 'colors.primary')};
    ${Handler} {
      margin-left: auto;
    }
  `)}
`;
github lskjs / ux / packages / form / src / controls / Range / RangeGroup / RangeGroup.styles.js View on Github external
  background-color: ${p => getTheme(p.theme, 'colors.darkerBackground')};
  height: ${p => p.height};
github lskjs / ux / packages / dashboard / src / atoms / BoxBody / BoxBody.js View on Github external
case 'primary':
        return css`
          background-color: ${getTheme(p.theme, 'colors.primary')};
          color: ${getTheme(p.theme, 'colors.white')};`;
      case 'info':
        return css`
          background-color: ${getTheme(p.theme, 'colors.info')};
          color: ${getTheme(p.theme, 'colors.white')};`;
      case 'success':
        return css`
          background-color: ${getTheme(p.theme, 'colors.success')};
          color: ${getTheme(p.theme, 'colors.white')};`;
      case 'warning':
        return css`
          background-color: ${getTheme(p.theme, 'colors.warning')};
          color: ${getTheme(p.theme, 'colors.main')};`;
      case 'danger':
        return css`
          background-color: ${getTheme(p.theme, 'colors.danger')};
          color: ${getTheme(p.theme, 'colors.white')};`;
      default:
        return '';
    }
  }}
`;
github lskjs / ux / packages / ui / src / Box / components / BoxFooter.js View on Github external
${(p) => {
    switch (p.paint) {
      case 'light':
        return css`
          background-color: ${getTheme(p.theme, 'colors.lightGray')};
          color: ${getTheme(p.theme, 'colors.main')};`;
      case 'dark':
        return css`
          background-color: ${getTheme(p.theme, 'colors.black')};
          color: ${getTheme(p.theme, 'colors.white')};`;
      case 'primary':
        return css`
          background-color: ${getTheme(p.theme, 'colors.primary')};
          color: ${getTheme(p.theme, 'colors.white')};`;
      case 'info':
        return css`
          background-color: ${getTheme(p.theme, 'colors.info')};
          color: ${getTheme(p.theme, 'colors.white')};`;
      case 'success':
        return css`
          background-color: ${getTheme(p.theme, 'colors.success')};
          color: ${getTheme(p.theme, 'colors.white')};`;
      case 'warning':
        return css`
          background-color: ${getTheme(p.theme, 'colors.warning')};

@lskjs/theme

LSK ux subrepo: theme

MIT
Latest version published 6 months ago

Package Health Score

60 / 100
Full package analysis

Popular @lskjs/theme functions

Similar packages