From 69f4bb5a3702ae2e44cf6fa0ba76f8de2e987acd Mon Sep 17 00:00:00 2001 From: Rob de Kort Date: Wed, 21 Oct 2020 15:26:47 +0200 Subject: [PATCH] Add word-break: break word utility The default TW utilities break when there's enough space. That's not pretty. --- tailwind.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tailwind.config.js b/tailwind.config.js index f7f91afab..212d1f8cd 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -425,6 +425,10 @@ module.exports = { // plugin(function({ addUtilities, theme, variants }) { const newUtilities = { + // Break words only when needed. + '.break-decent': { + wordBreak: 'break-word', + }, // Sizing utilities for sets in our bard (long form content). // On small devices they're full width. '.size-sm, .size-md, .size-lg, .size-xl': {