diff --git a/src/Tintin/Html/Style.hs b/src/Tintin/Html/Style.hs
--- a/src/Tintin/Html/Style.hs
+++ b/src/Tintin/Html/Style.hs
@@ -172,11 +172,11 @@
     backgroundColor (rgba 255 255 255 0.15)
 
   forM colorNames $ \(colorName, colorValue) ->
-    (text $ ".tintin-bg-" <> colorName) ? do
+    (element $ ".tintin-bg-" <> colorName) ? do
       backgroundColor colorValue
 
   forM colorNames $ \(colorName, colorValue) ->
-    (text $ ".tintin-fg-" <> colorName) ? do
+    (element $ ".tintin-fg-" <> colorName) ? do
       color colorValue
 
   ".tintin-fg-active" ? do
diff --git a/tintin.cabal b/tintin.cabal
--- a/tintin.cabal
+++ b/tintin.cabal
@@ -2,10 +2,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: cd2984d0babd6cb9da9ae174fd16b41f7dae8f9b6187282ae4278a91ceabc171
+-- hash: 17f8750b877675fed81d3654d0bb35a9e8439dbb06bbacc90a1a368ff887a922
 
 name:           tintin
-version:        1.0.3
+version:        1.0.4
 synopsis:       A softer alternative to Haddock
 description:    Please see the website <https://theam.github.io/tintin>
 category:       Documentation
