Blog - 14 posts
NameCategoryDate
How my LLM workflow changed: things I built, used, and droppedProduct17 Nov 2026
At work: triage and acceptance criteria before codeProduct17 Nov 2026
Measuring the first users with PostHogProduct17 Nov 2026
Idea briefs: decide with real screenshotsProduct17 Nov 2026
Watching competitors every week with an agentProduct17 Nov 2026
Listening: find people who ask for your productProduct17 Nov 2026
Moving toward product engineeringProduct17 Nov 2026
How I found the user scenarios for the Cognograph siteProduct17 Nov 2026
I replaced a translation SaaS in a dayFrontend11 Nov 2026
How to deal with clients?Frontend10 Nov 2026
Bottom-up or Top-down?Frontend10 Nov 2026
When tailwindCSS confuses youFrontend10 Nov 2026
Best UI library to use with React?Frontend10 Nov 2026
Best Way To Create BlogFrontend10 Nov 2026
When tailwindCSS confuses you
When tailwindCSS confuses you
Doruk

Doruk

Frontend

Since TailwindCSS uses JIT as default, it is adding styles on demand. It is not using PurgeCSS anymore.
To make it compatible with this; in tailwind.config.js file, "purge" is changed to "content". You need to glob format like

content: ['./pages/**/*.{js,ts,jsx,tsx,mdx}','./src/**/*.{js,ts,jsx,tsx,mdx}']

It sometimes leave you in a strange places when using external libraries

For example, I am using Sanity CMS, I have using "portabletext" library to format my text. When I pass data like

{text: "My Header", style: "h2"}

this is styling implicitly. TailwindCSS cannot understand it.

for example, you have to add this below to your "globals.css" file.

h2 {@applytext-3xl;@applyfont-bold;@applytext-red-600;@applymt-5; } 

Also, when you add a new folder, don't forget to add to tailwind.config.js
Or just put it into "src". Since you put src dir to "content", you don't have to worry about anymore.