Use function which returns react ref. https://github.com/morewings/css-vars-hook/blob/c21f923bdb1f536ae7a80ad0d8bd8eb6f04a3336/src/lib/useTheme.js#L23