styled-components / xstyled

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

docs: add styled rules description supplement #405

Closed GyeongtaeGim closed 11 months ago

GyeongtaeGim commented 11 months 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.