A fork of Tailwind CSS with added functionality to output all detected Tailwind CSS classname candidates. This feature allows you to see which classnames are recognized during the build process, aiding in debugging and understanding which classes Tailwind is using.
Use this fork just like Tailwind CSS. In addition to generating the final CSS output, it will also provide a list of all classname candidates it detected, which can be used for debugging or building a safelist.
npx tailwindcss-candidates -i ./src/styles.css -o ./candidates.txt --content "./src/**/*.{html,js,jsx,ts,tsx}"
Given an input CSS file, src/styles.css
:
@tailwind components;
@tailwind utilities;
This will generate candidates.txt
:
sr-only
fixed
absolute
relative
This fork follows the MIT License in alignment with the original Tailwind CSS project.