Tailwind Config Viewer is a local UI tool for visualizing your Tailwind CSS configuration file. You can keep it open during development to quickly reference custom Tailwind values and classes:
You can toggle between a light and dark mode UI, and clicking on each config copies the CSS class to your clipboard.
If you want to explore your project's Tailwind configuration quickly, all you need to do is install the NPM package and run an NPM command:
1# Install globally2npm i tailwind-config-viewer -g34# Or install in your project5npm install --save-dev tailwind-config-viewer67# Run the command8npx tailwind-config-viewer910# Specify the path to the config file11npx tailwind-config-viewer -c path/to/tailwind.config.js
You can also export the site and upload it to a static host:
1npx tailwind-config-viewer export ./output-dir
This project uses Vue and Tailwind for the UI (among other things) and can act as an excellent configuration reference for your team. You can learn more about this package, get full installation instructions, configuration options, and view the source code on GitHub.