diff --git a/compile.sh b/compile.sh
index b692df31e8c0a83832be58e45fc61a255f9abfaf..4e6e278336b7d12ffe8afd3fa051ed572a40b428 100755
--- a/compile.sh
+++ b/compile.sh
@@ -13,6 +13,7 @@ Options:
   -h, --help     Show this help text
   -s, --sanity   Run sanityCheck
   -q, --quiet    Suppress terminal output
+  -t, --themes   Generate theme files
 HelpText
 }
 
@@ -110,6 +111,9 @@ else
 			-q | --quiet)
 				output=/dev/null
 				;;
+	    -t | --themes)
+	      themes="true"
+	      ;;
 			*)
 				echoError "Unknown argument $1."
 				displayHelp
@@ -134,3 +138,16 @@ else
 	compile
 	echoMessage "Compilation finished."
 fi
+
+# compile themes
+if [[ "$themes" ]]; then
+  (
+	  cd themes/ || exit
+    for D in *; do
+      if [ -d "${D}" ]; then
+        ../devTools/concatFiles.sh "${D}"/ '*.css' ../bin/"${D}".css
+      fi
+    done
+  )
+  echoMessage "Themes compiled"
+fi