What version of Tailwind CSS are you using?
v4.3.0
What build tool (or framework if it abstracts the build tool) are you using?
Standalone TailwindCSS executable
Reproduction URL
- Create a fresh directory.
- Place the standalone Tailwind CSS executable inside the project directory.
- Create
input.css:
- Make sure the executable file contains Tailwind-like class names internally, for example
text-red-500, grid, or flex.
- Run the executable from the project directory:
./tailwindcss -i input.css -o output.css
- Check
output.css.
Expected result: class names found inside the executable itself should not be included in the generated CSS. Actual result: Tailwind CSS detects the executable as a source file and includes class names found inside it in output.css.
Describe your issue
Tailwind CSS executables should not discover themselves as source files, and should not include class names written inside the executable itself.
If an executable is stored inside the project, Tailwind CSS currently detects the executable by default. This can be worked around with @source not or .gitignore, but I do not think the expected default behavior is that every class name written inside the executable should be included in my project's output.css.
By default, the executable should not treat itself as part of the project's source files.
What version of Tailwind CSS are you using?
v4.3.0
What build tool (or framework if it abstracts the build tool) are you using?
Standalone TailwindCSS executable
Reproduction URL
input.css:text-red-500,grid, orflex.output.css.Expected result: class names found inside the executable itself should not be included in the generated CSS. Actual result: Tailwind CSS detects the executable as a source file and includes class names found inside it in
output.css.Describe your issue
Tailwind CSS executables should not discover themselves as source files, and should not include class names written inside the executable itself.
If an executable is stored inside the project, Tailwind CSS currently detects the executable by default. This can be worked around with
@source notor.gitignore, but I do not think the expected default behavior is that every class name written inside the executable should be included in my project'soutput.css.By default, the executable should not treat itself as part of the project's source files.