0.0.3 • Published 1 year ago

ng-css-to-tailwind v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ng-css-to-tailwind (experiment)

A tool that helps migrate your Angular project from any CSS solution to Tailwind.

How to use

1. Install

npm i -D ng-css-to-tailwind

2. Build output css file

Running ng build will create file dist/styles.css

I recommend commenting out Tailwind for this step:

/* styles.css */
/* @tailwind base; */
/* @tailwind components; */
/* @tailwind utilities; */

3. Use tool

Print changes into stdout\ ng-css-to-tailwind analyze <file>

Write changes to a file\ ng-css-to-tailwind analyze <file> --write

Flags

FlagDescriptionDefaults
helpPrint help
versionPrint version
css_fileLocation of css filedist/styles.css
tailwind_fileLocation of tailwind config filetailwind.config.js
writeWrite changes to filefalse
gclass_blacklistList of classes to ignore, support glob[]