css-to-tailwindcss
css-to-tailwindcss copied to clipboard
feat: Add ConverterOptions
Description of change
Hey @Jackardios , was trying to work with this lib but wanted a feature where I just needed the tailwind classes and parsed css separately. Would love to have an option like ConverterOptions to include such flags within the package.
Usage
const inputCSS = `
.foo {
padding-left : 25px
}
`
const converter = new TailwindConverter();
converter
.convertCSS(inputCSS, {
skipAddingTailwindClasses: true,
})
Pull-Request Checklist
- [X] Code is up-to-date with the
mainbranch - [X]
npm run lintpasses with this change - [X]
npm run testpasses with this change - [ ] This pull request links relevant issues as
Fixes #0000- NA - [X] There are new or updated unit tests validating the change
- [X] Documentation has been updated to reflect this change
- [X] The new commits follow conventions outlined in the conventional commit spec