# Missing tailwind utility classes in production files

**URL:** https://discourse.roots.io/t/missing-tailwind-utility-classes-in-production-files/20319
**Category:** sage
**Tags:** sage10
**Created:** 2021-03-11T13:56:01Z
**Posts:** 3

## Post 1 by @intelligence — 2021-03-11T13:56:01Z

Noticed that some utility classes from tailwind don’t get generated in the production css file. While developing locally it worked fine to use `bg-white` but when I deployed it’s missing. Running `yarn build` the bg-white class is generated, running `yarn build:production` and it’s gone.

Is this a a tailwind issue or sage? I scaffolded this project 1–2 weeks ago and it came with tailwind included.

---

## Post 2 by @alwaysblank — 2021-03-11T14:21:04Z

Production builds apply PurgeCSS to remove unused CSS. If classes are disappearing, either they aren’t used in your project, or they’re used in a way that PurgeCSS can’t find. Tailwind has a good explanation of how this works and how to customize it: [https://tailwindcss.com/docs/optimizing-for-production](https://tailwindcss.com/docs/optimizing-for-production)

---

## Post 3 by @system — 2021-04-22T13:56:02Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
