How to use ui-state-error with jQuery dialog

How to use ui-state-error with jQuery dialog


I have jQuery dialog working with my custom theme. I would like to use
the "ui-state-error" css class to show errors in a dialog with that
style. How do I incorporate that style within my own custom theme?
thanks.