diff --git a/templates/color-field-formatter-swatch.html.twig b/templates/color-field-formatter-swatch.html.twig
index 323d22a..e6119b8 100644
--- a/templates/color-field-formatter-swatch.html.twig
+++ b/templates/color-field-formatter-swatch.html.twig
@@ -16,4 +16,6 @@
  */
 #}
 
-<div class='color_field__swatch--{{ shape }}' style="background-color: {{ color }}; width: {{ width }}px; height: {{ height }}px;"></div>
+<div class="container-inline">
+  <div class='color_field__swatch--{{ shape }}' style="background-color: {{ color }}; width: {{ width }}px; height: {{ height }}px;"></div>
+</div>
