Having several CSS files in one JavaFX application

Note that you can use several style sheets simultaneously and apply them not only to Scene but to an instance of the class javafx.scene.Parent (which most JavaFX nodes are, except primitive shapes). 

CSS assigned to a Parent will be applied only to this object and all nodes in its children hierarchy.

Get Mastering JavaFX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.