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

Update vscode settings #46

Conversation

kazak1377
Copy link

Summary

Updated docs with example of vscode settings. In original docs vscode support is only working on general components like:

export const Glass = twc.div`rounded-xl border border-white/15 bg-white/10 p-4 backdrop-blur-sm shadow-lg drop-shadow-lg`;

But with more complex components when you have to use twc as a function it doesn't work:

export const NavBar = twc(
  Glass
)`fixed top-0 left-0 w-full text-center border-t-0 rounded-t-none flex flex-row content-start justify-start`;

This pull request aims to update docs, so that new users of libraries will have better IDE support

Test plan

Use new settings and check if tailwind provides correct autocomplete for more complex twc components

CleanShot 2024-05-13 at 15 55 29@2x

Copy link

vercel bot commented May 13, 2024

@kazak1377 is attempting to deploy a commit to the Argos CI Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented May 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
twc ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 3:09pm

Copy link
Owner

@gregberge gregberge 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 very much for that! Could you just remove the package-lock.json please? Thanks!

@kazak1377
Copy link
Author

Sure. Will do later today

@gregberge gregberge force-pushed the feature/update-docs-for-better-vscode-support branch from 7b2a0bf to b144ed5 Compare May 13, 2024 15:08
@gregberge
Copy link
Owner

@kazak1377 I did it for you ;)

@gregberge gregberge merged commit 1b4e2bf into gregberge:main May 13, 2024
6 checks passed
@kazak1377
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants