You cannot replace the inbuilt message boxes. All you can do is use a plugin (or write your own logic) which replaces their functionality with HTML elements which can be styled.
This will mean changing your javascript code where alert
, confirm
etc are used.