Skip to content

Add support for @custom-variant #1127

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

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

thecrypticace
Copy link
Contributor

This adds support for @custom-variant, adds variant suggestions for @variant, and tweaks when at-rules are suggested such that only ones that are valid in the given context should be suggested (e.g. when at the root or when nested in some rule).

This is the IntelliSense portion of tailwindlabs/tailwindcss#15663

Base automatically changed from fix/better-import-handling to main January 21, 2025 16:18
- v4 doesn’t have `@screen`
- `@apply` doesn’t make sense to suggest top-level
- `@tailwind` doesn’t make sense to suggest in v4 — we want people to use the imports instead
- Things like `@config`, `@plugin`, `@source` etc… all must be top-level
@thecrypticace thecrypticace force-pushed the feat/add-support-for-custom-variant branch from e9563db to a7e06a6 Compare January 21, 2025 16:20
@thecrypticace thecrypticace merged commit 618cbfc into main Jan 21, 2025
@thecrypticace thecrypticace deleted the feat/add-support-for-custom-variant branch January 21, 2025 16:21
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