-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(tailwindcss-transformer,ui): Scaffold packages #3402
Conversation
🦋 Changeset detectedLatest commit: 8da7586 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Will this be used to move the ui components out of clerk-js, or this is intended for a complete rewrite ? |
@panteliselef no firm decisions on where files will live long term (wasn't sure if that was part of your question or not) - but the plan is to do a complete rebuild using elements under the hood. that said, this is all experimental/poc atm |
ceec653
to
a90bdf7
Compare
1710e7a
to
8807825
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
Most feedback addressed, additional items can be addressed in followup PRs
3325bf2
to
8da7586
Compare
This reverts commit a6f297e.
Description
In this PR we introduce two new private experimental packages.
tailwindcss-transformer
The goal of this package is to enable authoring components using Tailwind CSS and exporting a component with hashed classNames with accompanying stylesheet.
Example
Input:
Output:
Utilities
transform
- transforms a React component with TW classes into hashed classNamesgenerateStylesheet
- generates a single stylesheet based on classNames extracted fromtransform
utilityui
The
ui
package is where we will be rebuilding the AIO components. We run the components through tsup with thetailwindcss-transformer
as an esbuild plugin.Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change