Everything else uses numbers. So you can’t use a unified style without converting them.
Because Canvas 2d text uses CSS color strings.