React and Vue could automatically map the state they manage over to CSS Custom Properties. The hook returns a component that is the Custom Property “boundary” and any state you pass it is mapped to those custom properties. The idea is that you could flip one custom property and have a whole block of styling change.

Sort: