There are variables available to use for this, like var(–primary-color) and var(–secondary-text-color)
Not sure where there is a complete list, but I think it might be possible to extract them from the CSS setup (usually pressing F12 in your browser to get to the developer tools)