-
Notifications
You must be signed in to change notification settings - Fork 199
feat: tailwind border-radius code #419
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
Conversation
Added tailwind code generator for border radius property
|
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
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.
PR Compliance Checks Passed!
|
src/lib/packages.ts
Outdated
| break; | ||
| case 'border-radius': | ||
| codeToCopy = ``; | ||
| codeToCopy = `<div class="rounded-sm"></div>`; |
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.
This is hard coded and not what this project is about, please look at what this person did for this PR, this is what is expected #421
|
https://github.com/Dun-sin/Code-Magic/pull/419/commits Note: The issue that I faced initially was that Tailwind versions below 2.1 did not support arbitrary values. They had to be hard-coded. Only Tailwind version3.0 and above allow arbitrary values to be used on the go. otherwise in versions 2.0-2.9 have to include a JIT mode in config file to allow arbitrary values. |
|
I have made the changes but I am facing some issues with the commit not being on the branch that I created. @Dun-sin can you help out? |
Most people will use the latest anyway. So not a problem |
I don't understand what you mean, I see the commit in this PR, the only problem is the vercel build error |
|
You can run |
So I looked into this. The reason my build is failing is that I am adding another parameter to this function copyTailwindCodeToClipboard(attribute, outputElement); so now I need to add the second parameter in all the files which are calling this function. |
You can make the second argument optional |
|
@Dun-sin I've made the second parameter optional as you advised and the build is not breaking. Can you review? |
Dun-sin
left a comment
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.
Looks good on the code end will check the preview, consider giving the project a starπ₯
|
It worksπ₯ |
|
π This PR is included in version 2.58.0 π The release is available on GitHub release Your semantic-release bot π¦π |
Thank you @Dun-sin for helping out! |






Added tailwind code generator for border radius property
Fixes Issue
**My PR closes #416 **
π¨βπ» Changes proposed(What did you do ?)
βοΈ Check List (Check all the applicable boxes)
Note to reviewers
π· Screenshots