css-to-tailwindcss icon indicating copy to clipboard operation
css-to-tailwindcss copied to clipboard

feat: Add ConverterOptions

Open Sarfraz-droid opened this issue 1 year ago • 0 comments

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 main branch
  • [X] npm run lint passes with this change
  • [X] npm run test passes 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

Sarfraz-droid avatar Aug 26 '24 12:08 Sarfraz-droid