How to use Antd theme variables in emotion

Viewed 393

I am using Antd together with emotion inside of a Next.js site. I would like to be able to access the Antd theme variables (which are written in Less) within a component. Something like this:

const StyledButton = styled(Button)`
  background-color: @primary-color
`

Did some research and found this question Using Ant Design Variables in Styled Components but it is not working for me. Moreover styless is now deprecated.

Thanks

0 Answers
Related