diff --git dialog.module dialog.module
index bfa8b59..c5e9c04 100644
--- dialog.module
+++ dialog.module
@@ -34,8 +34,12 @@ function dialog_menu() {
  * Add all the necessary javascript (and css) to be able to display a dialog
  * on the current page.  This must be used on any page that could possibly
  * contain a dialog.  It is safe to call this function repeatedly.
+ *
+ * @param $include_theme_css
+ *   (boolean) Whether to include jQuery UI's theme css. This can be useful
+ *   for a module or theme implementing their own css for the dialog.
  */
-function dialog_add_js() {
+function dialog_add_js($include_theme_css = TRUE) {
   // Provide a gate so we only do this once.
   static $done = FALSE;
   if ($done) {
@@ -63,8 +67,17 @@ function dialog_add_js() {
 
   // Get the correct CSS path based on jQuery UI version.
   $version_16 = version_compare(jquery_ui_get_version(), '1.7.0', '<');
-  $css_path = $version_16 ? 'default' : 'base';
-  drupal_add_css(JQUERY_UI_PATH .'/themes/'. $css_path .'/ui.all.css');
+  if ($version_16) {
+    drupal_add_css(JQUERY_UI_PATH .'/themes/default/ui.all.css');
+  }
+  else {
+    drupal_add_css(JQUERY_UI_PATH .'/themes/base/ui.core.css');
+    drupal_add_css(JQUERY_UI_PATH .'/themes/base/ui.dialog.css');
+    drupal_add_css(JQUERY_UI_PATH .'/themes/base/ui.resizable.css');
+    if ($include_theme_css) {
+      drupal_add_css(JQUERY_UI_PATH .'/themes/base/ui.theme.css');
+    }
+  }
 
   // And finally, the dialog js.
   drupal_add_js(drupal_get_path('module', 'dialog') .'/dialog.js');

