I\'ve been inspecting the \"caspian.css\" distributed by Oracle in the JavaFX runtime library, and I see they have declared some color values as variables. Eg:
In addon for grill2010's solution:
I recommend to use SCSS with maven's builder (plugin) into CSS in "generate-resources" stage.
So, You can use variables with any numbers or colors for any selector.
I'm using this scenario, and it works fine :)
P.S. You cannot do that directly in the CSS file for current OpenJFX versions.