Skip to content

Commit

Permalink
Add word-break: break word utility
Browse files Browse the repository at this point in the history
The default TW utilities break when there's enough space. That's not pretty.
  • Loading branch information
robdekort committed Oct 21, 2020
1 parent 68a46e8 commit 69f4bb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down

0 comments on commit 69f4bb5

Please sign in to comment.