UNPKG

@chakra-v2/styled-system

Version:

Style function for css-in-js building component libraries

6 lines (4 loc) 132 B
function getCSSVar(theme, scale, value) { return theme.__cssMap?.[`${scale}.${value}`]?.varRef ?? value; } export { getCSSVar };