Set -fx-fill and -fx-stroke attributes to RGB + Alpha paint specs.
Searching in the CSS reference guide you referenced will provide the syntax.
For example, the following style class sets fill opacity to .5 and stroke opacity to completely opaque.
.rectangle {
-fx-fill: rgba(0,255,0,0.5);
-fx-stroke: rgba(255,0,0,1);
}