Skip to content

Commit ae690bb

Browse files
authored
DevX: Update CSS directives for Tailwind v4 (#5347)
- Provides proper IDE hints and removes warnings from .vue SFC files. - Replaces all the v2 info with v4.
1 parent 9920f31 commit ae690bb

File tree

1 file changed

+32
-12
lines changed

1 file changed

+32
-12
lines changed

.vscode/tailwind.json

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,32 @@
22
"version": 1.1,
33
"atDirectives": [
44
{
5-
"name": "@tailwind",
6-
"description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.",
5+
"name": "@import",
6+
"description": "Use the `@import` directive to inline CSS files, including Tailwind itself, into your stylesheet.",
77
"references": [
88
{
99
"name": "Tailwind Documentation",
10-
"url": "https://tailwindcss.com/docs/functions-and-directives#tailwind"
10+
"url": "https://tailwindcss.com/docs/functions-and-directives#import"
11+
}
12+
]
13+
},
14+
{
15+
"name": "@theme",
16+
"description": "Use the `@theme` directive to define custom design tokens like fonts, colors, and breakpoints.",
17+
"references": [
18+
{
19+
"name": "Tailwind Documentation",
20+
"url": "https://tailwindcss.com/docs/functions-and-directives#theme"
21+
}
22+
]
23+
},
24+
{
25+
"name": "@layer",
26+
"description": "Use the `@layer` directive inside `@theme` to organize custom styles into different layers like `base`, `components`, and `utilities`.",
27+
"references": [
28+
{
29+
"name": "Tailwind Documentation",
30+
"url": "https://tailwindcss.com/docs/functions-and-directives#layer"
1131
}
1232
]
1333
},
@@ -22,32 +42,32 @@
2242
]
2343
},
2444
{
25-
"name": "@responsive",
26-
"description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n",
45+
"name": "@config",
46+
"description": "Use the `@config` directive to load a legacy JavaScript-based Tailwind configuration file.",
2747
"references": [
2848
{
2949
"name": "Tailwind Documentation",
30-
"url": "https://tailwindcss.com/docs/functions-and-directives#responsive"
50+
"url": "https://tailwindcss.com/docs/functions-and-directives#config"
3151
}
3252
]
3353
},
3454
{
35-
"name": "@screen",
36-
"description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n",
55+
"name": "@reference",
56+
"description": "Use the `@reference` directive to import theme variables, custom utilities, and custom variants from other files without duplicating CSS.",
3757
"references": [
3858
{
3959
"name": "Tailwind Documentation",
40-
"url": "https://tailwindcss.com/docs/functions-and-directives#screen"
60+
"url": "https://tailwindcss.com/docs/functions-and-directives#reference"
4161
}
4262
]
4363
},
4464
{
45-
"name": "@variants",
46-
"description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n",
65+
"name": "@plugin",
66+
"description": "Use the `@plugin` directive to load a legacy JavaScript-based Tailwind plugin.",
4767
"references": [
4868
{
4969
"name": "Tailwind Documentation",
50-
"url": "https://tailwindcss.com/docs/functions-and-directives#variants"
70+
"url": "https://tailwindcss.com/docs/functions-and-directives#plugin"
5171
}
5272
]
5373
}

0 commit comments

Comments
 (0)