News for hackers. Stuff that matters.
Re:Why I Write CSS in JavaScript by crooked-v on Monday February 18, 2019 @05:05PM (#19194908)
You can get basically the same thing from rebass in JS:

  <Box
    p={5}
    fontSize={4}
    width={[ 1, 1, 1/2 ]}
    color='white'
    bg='magenta'
  >
    Box
  </Box>
It uses a CSS-in-JS library under the hood to translate that into a CSS class for each unique combination of styling props.

There are no comments on this comment yet.