How can I stylize a modal?

Is seems that I cannot add a class to a modal, so how am I suppose to style it? The same goes if I add a id.

Just to note that any attributes that are add are removed.

In my tests the classes were not removed .
can you make a example?