How to use the @artsy/palette.themeProps.typeSizes function in @artsy/palette

To help you get started, we’ve selected a few @artsy/palette 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 artsy / reaction / src / Styleguide / Elements / __stories__ / Typography.story.tsx View on Github external
function getTypeSizes(type: T) {
  const typeSizes = themeProps.typeSizes[type] // as TypeSizes[T]
  return Object.keys(typeSizes) as Array
}
github artsy / reaction / src / Apps / Order / Components / CreditCardInput.tsx View on Github external
>
           this.setState({ focused: true })}
            onBlur={() =>
              this.setState({
                focused: false,
              })
            }
            onReady={(el => (this.cardInputElement = el)) as any}
            style={{
              base: {
                "::placeholder": { color: color("black30") },
                fontFamily: fontFamily.serif.regular as string,
                fontSize: `${themeProps.typeSizes.serif["3t"].fontSize}px`,
                fontSmoothing: "antialiased",
                lineHeight: "20px",
              },
            }}
          />
        
        {message && (
          
            {message}
          
        )}
      
    )
  }
}