Section says that i can use CSS variables directly. It might be true in case of static theme, but it does not work for custom non-static theme which gets only the values picket up by the scanner from classnames.
The confusion is that it is never mentioned, that scanner does not pickup CSS variables used directly to include them in a server theme layer:

