styled-components / xstyled

A utility-first CSS-in-JS framework built for React. 💅👩‍🎤⚡️
https://xstyled.dev
MIT License
2.29k stars 106 forks source link

docs: add styled rules description supplement #405

Closed GyeongtaeGim closed 1 year ago

GyeongtaeGim commented 1 year ago

Summary

description is for xstyled, not styled.

const Box = styled.div({
  margin: 2, // '2px' (not transformed by xstyled)
  marginTop: '2', // '8px' (transformed by styled)
})

and description of value conversion by theme is insufficient.

Test plan

Just document update.