It’s a great solution. Every class only maps to one css property setting, and they are very well named.
Thus not much more difficult to read and remember than css key value pairs.
Why would you typecheck component class names? If so, its all strings, seems pretty easy less error prone than inline styles.