diff --git a/themes/kwant/assets/css/custom.css b/themes/kwant/assets/css/custom.css
index bc118c00bc17ab87a317f9fc7af331c76d548a7c..f46322f146d1006ef82b3022e7ae38bba1047bb4 100644
--- a/themes/kwant/assets/css/custom.css
+++ b/themes/kwant/assets/css/custom.css
@@ -40,3 +40,20 @@ footer {
     margin-left: 0px;
     margin-right: 0px;
 }
+
+/* Enable hyphenation. */
+body {
+    text-align:justify;
+    -webkit-hyphens: auto;
+    -moz-hyphens: auto;
+    -ms-hyphens: auto;
+    -o-hyphens: auto;
+    hyphens: auto;
+}
+tt, pre {
+    -webkit-hyphens: none;
+    -moz-hyphens: none;
+    -ms-hyphens: none;
+    -o-hyphens: none;
+    hyphens: none;
+}