@spicy-ui/styled-system
v0.0.1-alpha.3
Published
Responsive, theme-based style props for building design systems with React
Downloads
35
Readme
styled-system
🌶️ Responsive, theme-based style props for building design systems with React
⚠️ Caution
While it is almost a direct port of styled-system to TypeScript it does have a few minor changes.
bg
is now for thebackground
css property (but it still uses thecolor
scale) andbgColor
has been added- there are a bunch of new aliased props (e.g.
h
forheight
,maxW
formax-width
, etc) - there is an
extendedFlexbox
andextendedGrid
parser which contains shorthands forflexbox
andgrid
parsers (good for Flex and Grid components) - the
css
function now supports a collection of pseudo selectors (e.g._hover
for&:hover
) - new
animation
andtransition
parsers (and scales) which are also rolled into thecss
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.