Using CSS variables with styled components – Julien De Luca – Medium

Using CSS variables with styled components:  #ReactJS

  • Using CSS variables with styled components
  • CSS variables are a game changer, they allow easy and cleanly separated JS-CSS communication (among other things !).
  • Never miss a story from Julien De Luca , when you sign up for Medium.
  • If you want to know more about CSS variables, you should watch this great talk by Lea Verou :
  • It’s really easy to use them in combination with styled-components , and opens some great possibilities, like controlling variables using react-motion :

CSS variables are a game changer, they allow easy and cleanly separated JS-CSS communication (among other things !). It’s really easy to use them in combination with styled-components, and opens some…

@vacuumlabs: Using CSS variables with styled components: #ReactJS

CSS variables are a game changer, they allow easy and cleanly separated JS-CSS communication (among other things !).

It’s really easy to use them in combination with styled-components, and opens some great possibilities, like controlling variables using react-motion :

You can see the result live here.

If you want to know more about CSS variables, you should watch this great talk by Lea Verou :

Using CSS variables with styled components – Julien De Luca – Medium