How to use the styled-tools.palette function in styled-tools

To help you get started, we’ve selected a few styled-tools 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 exivity / ui / src / theme / utils.js View on Github external
(opaque, paletteProp, tone = 0) => {
    if (!opaque) {
      return 'unset'
    }
    return palette(paletteProp, tone, 'unset')
  }
)
github reakit / reakit / packages / reakit / src / _utils / styledProps.ts View on Github external
(opaque, paletteProp, tone = 0) => {
    if (!opaque) {
      return "unset";
    }
    return palette(paletteProp, tone, "unset");
  }
);
github exivity / ui / src / theme / utils.js View on Github external
(opaque, paletteProp, tone = 0) =>
    palette(opaque
      ? `${paletteProp}Text`
      : paletteProp, tone, 'inherit')
)
github fannypackui / fannypack / packages / fannypack / src / Switch / styled.ts View on Github external
    border-color: ${(props: any) => palette(props.palette || 'primary', 0, defaultPalette.primary)};
    left: 1.7em;
github fannypackui / fannypack / src / Switch / styled.ts View on Github external
    border-color: ${(props: any) => palette(props.palette || 'primary', 0, defaultPalette.primary)};
    left: 1.7em;

styled-tools

Utilities for styled-components

MIT
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis

Similar packages