Skip to content
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

Prepare for easier shadcn ui install #66469

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

saltcod
Copy link
Contributor

@saltcod saltcod commented Jun 2, 2024

What?

Installing shadcn/ui after installing this example was a bad experience.
Running npx shadcn-ui@latest init overwrites existing files causing errors and a confusing start.

This allows a installing shadcn/ui without these issues.

@saltcod saltcod requested review from a team as code owners June 2, 2024 11:46
@saltcod saltcod requested review from ismaelrumzan and jh3y and removed request for a team June 2, 2024 11:46
@ijjk ijjk added the examples Issue was opened via the examples template. label Jun 2, 2024
@ijjk
Copy link
Member

ijjk commented Jun 2, 2024

Allow CI Workflow Run

  • approve CI run for commit: c240fe5

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@samcx
Copy link
Member

samcx commented Jun 2, 2024

@saltcod Can you clarify why changing styles would prevent shadcn-ui from overriding (not completely familiar with shadcn-ui myself)?

@saltcod
Copy link
Contributor Author

saltcod commented Jun 17, 2024

I missed this comment @samcx sorry!
When you install shadcn/ui, it comes with its own globals.css file and overwrites the existing one.
Currently, the site looks broken while that happens.

This PR just makes sure that things still look not-broken if you install shadcn/ui and have your globals.css file overwritten.

No underlying changes.

Copy link
Member

@samcx samcx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting a PR!

:lgtm:

@samcx samcx self-requested a review June 18, 2024 09:30
@samcx samcx merged commit fe0368f into vercel:canary Jun 20, 2024
32 checks passed
@github-actions github-actions bot added the locked label Jul 4, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue was opened via the examples template. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants