1.2.0 • Published 2 years ago
generate-tailwindcss-theme v1.2.0
Tailwind Theme Variables
Generate a JS/TS file that allows you to reference the properties of your Tailwind theme.
Usage
Simply install the package and run tw-theme
to generate the file. By default, it looks for ./tailwind.config.js
and outputs to ./tailwind.js
Install the package
yarn add -D ryantbrown/generate-tailwindcss-theme
Generate the theme file
tw-theme
Options
Specify the config and output files.
tw-theme --config "./tailwind.config.js" -output "./theme.js"
tw-theme -c "./tailwind.config.js" -o "./tailwind.js"