Tailwind's square bracket syntax is the pressure valve. text-[13px], grid-cols-[minmax(0,1fr)_20rem], [&_svg]:size-4: anything the scale does not have, you can write inline, and the compiler emits a class for it.

The usual argument about them is aesthetic, and I do not find it interesting. What I wanted to know about Nakodo was quantitative: how many are there, what are they for, and does any of it cost anything measurable. The last question turned out to have a yes in it.

473 of them, and one is a third

Scanning every string literal in all 226 .tsx files for tokens matching the arbitrary value shape:

473 arbitrary values 145 distinct 112 of 226 files contain at least one 101 of the 145 appear exactly once 

By what they are reaching for:

Category Uses
Font size 245
Selector or custom property variants, such as [&_svg]:size-4 74
Grid templates 30
Width, height or size 25
Letter spacing 22
Line height 19
Border radius 18
Box shadow 8
Everything else 32

245 of 473 are font sizes, across 18 distinct sizes. And one of those 18 is 135 uses on its own:

135 text-[13px] 19 text-[28px] 18 text-[22px] 14 text-[32px] 14 text-[26px] 

For scale, here is the named scale in the same files:

Class Uses
text-sm 308
text-[13px] 135
text-xs 65
text-xl 19
text-base 17
text-lg 16
text-2xl 1

The second most used font size in this codebase is not in the type scale. It is one pixel below text-sm and one above text-xs, and I can tell you exactly why it exists: 12px is too small for secondary text in our UI font and 14px sits too close to body copy, so every label, caption, table cell and footer line in the app wanted the size in between. Tailwind's default scale does not have it, so 135 call sites wrote it by hand.

A design system with 135 uses of a value that is not in the system does not have an opinion problem. It has a missing step.

The part that costs something

Fetch the stylesheet the live site serves and look at the two rules next to each other:

.text-sm { font-size: var(--text-sm); line-height: var(--tw-leading, var(--text-sm--line-height)) } .text-\[13px\] { font-size: 13px } 

A scale step is two declarations. The arbitrary value is one. In Tailwind, every named font size carries a paired line height, and text-[13px] carries nothing, so 13px text takes whatever leading is in force from an ancestor.

Of the 135 class strings containing text-[13px], exactly 6 also set a leading-. The other 129 inherit.

Here is what that produces in practice. Open the home page, and in the console:

const rows = {}; for (const el of document.querySelectorAll('[class*="text-[13px]"]')) { const cs = getComputedStyle(el); rows[cs.lineHeight] = (rows[cs.lineHeight] ?? 0) + 1; } console.table(rows); 
24px 5 elements 20px 5 elements 18.5714px 1 element 

Eleven elements, one declared font size, three different line heights. And the ratios are the wrong way round: our body text is 15px with a 24px line height, so a 13px element that inherits 24px is set looser (1.85) than the 14px text next to it (text-sm computes 14px/20px, 1.43). The smallest text on the page has the most air around it.

Where 18.5714px comes from, and why v4 makes this worse

That third number is the one worth understanding, because it is new to Tailwind v4 and it is not obvious.

In v4, the scale's line heights are unitless ratios, not lengths:

.text-sm { line-height: var(--tw-leading, var(--text-sm--line-height)) } /* --text-sm--line-height resolves to calc(1.25 / 0.875), which is 1.4285... */ 

A unitless line-height inherits as a ratio and is recomputed against each descendant's own font size. A line-height in pixels inherits as a fixed length. So a text-[13px] child gets:

  • 24px, if the nearest ancestor that set leading used a length (our root does: 15px/24px)
  • 18.5714px, if the nearest ancestor used a scale step, because it inherits 1.4285 and multiplies by 13
  • 20px, if something in between set leading-5 or similar explicitly

Three plausible ancestors, three answers, all from the same class on the element. In Tailwind v3, where line heights were mostly lengths, you would have got one wrong answer consistently. In v4 you get an answer that depends on the shape of the tree above you, which is much harder to see in review and much easier to leave sitting there for months. Which is what I did.

The 74 that are not a smell at all

Worth separating out, because lumping all square brackets together is how this argument usually goes wrong. 74 of the 473 are selector and custom property variants, which have no scale to belong to:

"[&::-webkit-details-marker]:hidden" "[&_svg:not([class*='size-'])]:size-4" "[--card-spacing:--spacing(5)]" "[mask-image:linear-gradient(to_bottom,transparent,black_3rem,black_calc(100%-3rem),transparent)]" 

The first hides a native disclosure triangle, which is a browser detail with no design token in it. The second is shadcn's icon sizing guard. The third sets a custom property as a class so a parent can configure children. The fourth is a scroll fade.

Those are the syntax doing its job: an escape hatch for things that are genuinely one-offs. 85 of the 473 live in components/ui/, which is vendored component code I did not write, and the shape of those is almost entirely variant selectors rather than values.

The grid templates are the same kind of honest. lg:grid-cols-[minmax(0,1fr)_20rem] is a layout with a 20rem sidebar; there is no world in which 20rem becomes a design token, because it is a property of that one page.

The split that matters

The useful way to cut the census is not "arbitrary or not". It is "is there a scale this should be in":

Uses
Values that belong in a scale and are not in one (sizes, leading, tracking, radii) 329
Values with no scale to belong to (variants, grid templates, masks, one-off geometry) 144

329 is the number that is actually telling me something, and 135 of it is one missing step.

What I am changing

  • Add the missing step to the theme, with its own paired line height, and replace all 135 uses:
 @theme static { --text-xsm: 13px; --text-xsm--line-height: calc(18 / 13); } 

That turns 135 one-declaration classes into 135 two-declaration classes and makes the leading intentional rather than inherited. It is a find and replace, and the only hard part is deciding the 18px, which is a typographic decision I have been avoiding by writing a pixel value instead.

  • The same treatment for tracking-[-0.01em] and tracking-[-0.02em], 22 uses between them, which are display-size optical corrections and belong on the display sizes rather than at the call site.
  • A lint rule banning text-[ outside components/ui/. Not banning square brackets, which would be wrong and would break the four things above that need them. Just the one category where a scale exists and is being bypassed.
  • Leave the 144 alone.

If you want to run this on your own codebase, the two-minute version is to grep for text-\[ and count distinct values. If one value is more than a quarter of the total, you have found a missing step in your scale, and the console snippet above will tell you what its line height is doing in the meantime.