@twilio-paste/types
v6.0.0
Published
Shared typescript typings for Paste
Downloads
54,382
Readme
@twilio-paste/types
Typescript typings used in multiple Paste packages
Notes
This package exports types mimicking the styled-system high level grouping here: https://styled-system.com/api. There are cases where we differ from styled-system due to our token implementation. Specifically:
- We don't have a
color
grouping. You can either:- Use the
BackgroundColor
andTextColor
types that are exported individually - Use
TypographyProps
(which includes textColor) orBackgroundProps
(which includes backgroundColor)
- Use the
- The
Shadow
typing forbidstextShadow
currently, until we have tokens for those. - The
background
andborder
shorthands are also forbidden because it makes it tough to type as tokens.