@spicy-ui/styled-system
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.3 • Public • Published

styled-system

🌶️ Responsive, theme-based style props for building design systems with React

npm Dependencies Dev Dependencies

⚠️ Caution

While it is almost a direct port of styled-system to TypeScript it does have a few minor changes.

  • bg is now for the background css property (but it still uses the color scale) and bgColor has been added
  • there are a bunch of new aliased props (e.g. h for height, maxW for max-width, etc)
  • there is an extendedFlexbox and extendedGrid parser which contains shorthands for flexbox and grid parsers (good for Flex and Grid components)
  • the css function now supports a collection of pseudo selectors (e.g. _hover for &:hover)
  • new animation and transition parsers (and scales) which are also rolled into the css function

A major part that is incomplete in this package is the types (both exported and internal and particulary around the css export) - if you're able and willing to have a crack at them please do, it would be super appreciated to get some help on this.

Issues and Bugs

If you happen to find any, please report them here so they can be squashed.

License

MIT, see the LICENSE file.

Dependencies (3)

Dev Dependencies (10)

Package Sidebar

Install

npm i @spicy-ui/styled-system

Weekly Downloads

3

Version

0.0.1-alpha.3

License

MIT

Unpacked Size

367 kB

Total Files

42

Last publish

Collaborators

  • south-paw
  • resir014