create-huenei-template 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/templates/frontend/angular-base/.cursor/skills/angular-component/SKILL.md +288 -0
  2. package/dist/templates/frontend/angular-base/.cursor/skills/angular-component/references/component-patterns.md +358 -0
  3. package/dist/templates/frontend/angular-base/.cursor/skills/angular-di/SKILL.md +387 -0
  4. package/dist/templates/frontend/angular-base/.cursor/skills/angular-di/references/di-patterns.md +519 -0
  5. package/dist/templates/frontend/angular-base/.cursor/skills/angular-directives/SKILL.md +437 -0
  6. package/dist/templates/frontend/angular-base/.cursor/skills/angular-directives/references/directive-patterns.md +570 -0
  7. package/dist/templates/frontend/angular-base/.cursor/skills/angular-forms/SKILL.md +434 -0
  8. package/dist/templates/frontend/angular-base/.cursor/skills/angular-forms/references/form-patterns.md +398 -0
  9. package/dist/templates/frontend/angular-base/.cursor/skills/angular-http/SKILL.md +366 -0
  10. package/dist/templates/frontend/angular-base/.cursor/skills/angular-http/references/http-patterns.md +448 -0
  11. package/dist/templates/frontend/angular-base/.cursor/skills/angular-routing/SKILL.md +395 -0
  12. package/dist/templates/frontend/angular-base/.cursor/skills/angular-routing/references/routing-patterns.md +472 -0
  13. package/dist/templates/frontend/angular-base/.cursor/skills/angular-signals/SKILL.md +302 -0
  14. package/dist/templates/frontend/angular-base/.cursor/skills/angular-signals/references/signal-patterns.md +404 -0
  15. package/dist/templates/frontend/angular-base/.cursor/skills/angular-ssr/SKILL.md +435 -0
  16. package/dist/templates/frontend/angular-base/.cursor/skills/angular-ssr/references/ssr-patterns.md +497 -0
  17. package/dist/templates/frontend/angular-base/.cursor/skills/angular-testing/SKILL.md +660 -0
  18. package/dist/templates/frontend/angular-base/.cursor/skills/angular-testing/references/testing-patterns.md +707 -0
  19. package/dist/templates/frontend/angular-base/.cursor/skills/angular-tooling/SKILL.md +352 -0
  20. package/dist/templates/frontend/angular-base/.cursor/skills/angular-tooling/references/tooling-patterns.md +448 -0
  21. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-accessibility/SKILL.md +780 -0
  22. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-components/SKILL.md +718 -0
  23. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
  24. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
  25. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-animations/SKILL.md +432 -0
  26. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
  27. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-debugging/SKILL.md +354 -0
  28. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
  29. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-framework-integration/SKILL.md +578 -0
  30. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
  31. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
  32. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
  33. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
  34. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-mobile-first/SKILL.md +768 -0
  35. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-performance/SKILL.md +374 -0
  36. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
  37. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-plugins/SKILL.md +505 -0
  38. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
  39. package/dist/templates/frontend/angular-base/.cursor/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
  40. package/dist/templates/frontend/angular-base/.cursor/skills/web-design-guidelines/SKILL.md +39 -0
  41. package/dist/templates/frontend/angular-base/package.json +0 -1
  42. package/dist/templates/frontend/angular-base/pnpm-lock.yaml +8183 -0
  43. package/package.json +1 -1
  44. package/templates/frontend/angular-base/.cursor/skills/angular-component/SKILL.md +288 -0
  45. package/templates/frontend/angular-base/.cursor/skills/angular-component/references/component-patterns.md +358 -0
  46. package/templates/frontend/angular-base/.cursor/skills/angular-di/SKILL.md +387 -0
  47. package/templates/frontend/angular-base/.cursor/skills/angular-di/references/di-patterns.md +519 -0
  48. package/templates/frontend/angular-base/.cursor/skills/angular-directives/SKILL.md +437 -0
  49. package/templates/frontend/angular-base/.cursor/skills/angular-directives/references/directive-patterns.md +570 -0
  50. package/templates/frontend/angular-base/.cursor/skills/angular-forms/SKILL.md +434 -0
  51. package/templates/frontend/angular-base/.cursor/skills/angular-forms/references/form-patterns.md +398 -0
  52. package/templates/frontend/angular-base/.cursor/skills/angular-http/SKILL.md +366 -0
  53. package/templates/frontend/angular-base/.cursor/skills/angular-http/references/http-patterns.md +448 -0
  54. package/templates/frontend/angular-base/.cursor/skills/angular-routing/SKILL.md +395 -0
  55. package/templates/frontend/angular-base/.cursor/skills/angular-routing/references/routing-patterns.md +472 -0
  56. package/templates/frontend/angular-base/.cursor/skills/angular-signals/SKILL.md +302 -0
  57. package/templates/frontend/angular-base/.cursor/skills/angular-signals/references/signal-patterns.md +404 -0
  58. package/templates/frontend/angular-base/.cursor/skills/angular-ssr/SKILL.md +435 -0
  59. package/templates/frontend/angular-base/.cursor/skills/angular-ssr/references/ssr-patterns.md +497 -0
  60. package/templates/frontend/angular-base/.cursor/skills/angular-testing/SKILL.md +660 -0
  61. package/templates/frontend/angular-base/.cursor/skills/angular-testing/references/testing-patterns.md +707 -0
  62. package/templates/frontend/angular-base/.cursor/skills/angular-tooling/SKILL.md +352 -0
  63. package/templates/frontend/angular-base/.cursor/skills/angular-tooling/references/tooling-patterns.md +448 -0
  64. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-accessibility/SKILL.md +780 -0
  65. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-components/SKILL.md +718 -0
  66. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
  67. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
  68. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-animations/SKILL.md +432 -0
  69. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
  70. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-debugging/SKILL.md +354 -0
  71. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
  72. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-framework-integration/SKILL.md +578 -0
  73. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
  74. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
  75. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
  76. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
  77. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-mobile-first/SKILL.md +768 -0
  78. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-performance/SKILL.md +374 -0
  79. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
  80. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-plugins/SKILL.md +505 -0
  81. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
  82. package/templates/frontend/angular-base/.cursor/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
  83. package/templates/frontend/angular-base/.cursor/skills/web-design-guidelines/SKILL.md +39 -0
  84. package/templates/frontend/angular-base/package.json +0 -1
  85. package/templates/frontend/angular-base/pnpm-lock.yaml +8183 -0
  86. package/templates/frontend/angular-base/package-lock.json +0 -13321
@@ -0,0 +1,485 @@
1
+ # Advanced Responsive Patterns (2025/2026)
2
+
3
+ ## Container Queries - The 2025 Game-Changer
4
+
5
+ Container queries allow components to respond to their parent container's size rather than the viewport. This is essential for reusable component design in modern applications.
6
+
7
+ ### Setup
8
+
9
+ ```css
10
+ @import "tailwindcss";
11
+ @plugin "@tailwindcss/container-queries";
12
+ ```
13
+
14
+ ### Basic Container Query
15
+
16
+ ```html
17
+ <div class="@container">
18
+ <article class="flex flex-col @md:flex-row @md:items-center gap-4">
19
+ <img class="w-full @md:w-48 aspect-video object-cover rounded-lg" />
20
+ <div>
21
+ <h3 class="text-lg @lg:text-xl font-semibold">Title</h3>
22
+ <p class="text-sm @md:text-base text-gray-600">Description</p>
23
+ </div>
24
+ </article>
25
+ </div>
26
+ ```
27
+
28
+ ### Named Containers
29
+
30
+ ```html
31
+ <div class="@container/sidebar">
32
+ <nav class="@lg/sidebar:flex-row flex flex-col">
33
+ <!-- Responds to sidebar container width -->
34
+ </nav>
35
+ </div>
36
+
37
+ <div class="@container/main">
38
+ <section class="@xl/main:grid-cols-3 grid grid-cols-1">
39
+ <!-- Responds to main container width -->
40
+ </section>
41
+ </div>
42
+ ```
43
+
44
+ ### Container Query Breakpoints
45
+
46
+ | Class | Min-width |
47
+ |-------|-----------|
48
+ | `@xs` | 20rem (320px) |
49
+ | `@sm` | 24rem (384px) |
50
+ | `@md` | 28rem (448px) |
51
+ | `@lg` | 32rem (512px) |
52
+ | `@xl` | 36rem (576px) |
53
+ | `@2xl` | 42rem (672px) |
54
+ | `@3xl` | 48rem (768px) |
55
+
56
+ ### Custom Container Breakpoints
57
+
58
+ ```css
59
+ @theme {
60
+ --container-3xs: 16rem;
61
+ --container-2xs: 18rem;
62
+ --container-4xl: 56rem;
63
+ }
64
+ ```
65
+
66
+ ## Advanced Breakpoint Patterns
67
+
68
+ ### Between Breakpoints
69
+
70
+ ```html
71
+ <!-- Only between sm and md -->
72
+ <div class="hidden sm:block md:hidden">
73
+ Tablet only content
74
+ </div>
75
+
76
+ <!-- Only on large screens (not xl+) -->
77
+ <div class="hidden lg:flex xl:hidden">
78
+ Large but not extra-large
79
+ </div>
80
+ ```
81
+
82
+ ### Max-Width Breakpoints
83
+
84
+ ```css
85
+ /* Custom max-width variant */
86
+ @custom-variant max-sm (media(width < 640px));
87
+ @custom-variant max-md (media(width < 768px));
88
+ @custom-variant max-lg (media(width < 1024px));
89
+ ```
90
+
91
+ ```html
92
+ <div class="max-md:flex-col flex flex-row">
93
+ Column on mobile, row on tablet+
94
+ </div>
95
+ ```
96
+
97
+ ### Orientation Variants
98
+
99
+ ```html
100
+ <div class="portrait:flex-col landscape:flex-row flex">
101
+ Adapts to device orientation
102
+ </div>
103
+ ```
104
+
105
+ ### Print Styles
106
+
107
+ ```html
108
+ <div class="print:hidden">
109
+ Hidden when printing
110
+ </div>
111
+
112
+ <div class="hidden print:block">
113
+ Only visible when printing
114
+ </div>
115
+
116
+ <nav class="bg-blue-600 print:bg-transparent print:text-black">
117
+ Printer-friendly navigation
118
+ </nav>
119
+ ```
120
+
121
+ ## Fluid Typography
122
+
123
+ ### Using clamp()
124
+
125
+ ```css
126
+ @theme {
127
+ --text-fluid-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
128
+ --text-fluid-base: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
129
+ --text-fluid-lg: clamp(1.25rem, 1rem + 1vw, 1.75rem);
130
+ --text-fluid-xl: clamp(1.5rem, 1rem + 2vw, 2.5rem);
131
+ --text-fluid-2xl: clamp(2rem, 1rem + 3vw, 4rem);
132
+ }
133
+ ```
134
+
135
+ ```html
136
+ <h1 class="text-fluid-2xl font-bold">Responsive Heading</h1>
137
+ <p class="text-fluid-base">Paragraph that scales smoothly</p>
138
+ ```
139
+
140
+ ### Fluid Spacing
141
+
142
+ ```css
143
+ @theme {
144
+ --spacing-fluid-sm: clamp(0.5rem, 0.25rem + 1vw, 1rem);
145
+ --spacing-fluid-md: clamp(1rem, 0.5rem + 2vw, 2rem);
146
+ --spacing-fluid-lg: clamp(2rem, 1rem + 3vw, 4rem);
147
+ }
148
+ ```
149
+
150
+ ```html
151
+ <section class="py-fluid-lg px-fluid-md">
152
+ Fluid padding that scales with viewport
153
+ </section>
154
+ ```
155
+
156
+ ## Responsive Grid Systems
157
+
158
+ ### Auto-Fit Grid
159
+
160
+ ```html
161
+ <!-- Cards auto-fit with minimum 280px -->
162
+ <div class="grid grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-6">
163
+ <Card />
164
+ <Card />
165
+ <Card />
166
+ </div>
167
+ ```
168
+
169
+ ### Responsive Sidebar Layout
170
+
171
+ ```html
172
+ <div class="grid grid-cols-1 lg:grid-cols-[280px_1fr] gap-6">
173
+ <aside class="hidden lg:block">Sidebar</aside>
174
+ <main>Content</main>
175
+ </div>
176
+
177
+ <!-- With collapsible sidebar -->
178
+ <div class="grid grid-cols-1 lg:grid-cols-[auto_1fr] gap-6">
179
+ <aside class="w-16 lg:w-64 transition-all duration-300">
180
+ <span class="hidden lg:inline">Full text</span>
181
+ <span class="lg:hidden">Icon</span>
182
+ </aside>
183
+ <main>Content</main>
184
+ </div>
185
+ ```
186
+
187
+ ### Holy Grail Layout
188
+
189
+ ```html
190
+ <div class="min-h-screen grid grid-rows-[auto_1fr_auto]">
191
+ <header class="h-16 bg-white border-b">Header</header>
192
+
193
+ <div class="grid grid-cols-1 md:grid-cols-[200px_1fr] lg:grid-cols-[200px_1fr_200px]">
194
+ <nav class="hidden md:block bg-gray-50 p-4">Navigation</nav>
195
+ <main class="p-6">Main Content</main>
196
+ <aside class="hidden lg:block bg-gray-50 p-4">Sidebar</aside>
197
+ </div>
198
+
199
+ <footer class="h-16 bg-gray-900 text-white">Footer</footer>
200
+ </div>
201
+ ```
202
+
203
+ ## Responsive Component Patterns
204
+
205
+ ### Responsive Navigation
206
+
207
+ ```html
208
+ <nav class="flex items-center justify-between p-4">
209
+ <Logo />
210
+
211
+ <!-- Desktop nav -->
212
+ <ul class="hidden md:flex items-center gap-6">
213
+ <li><a href="#">Home</a></li>
214
+ <li><a href="#">About</a></li>
215
+ <li><a href="#">Services</a></li>
216
+ <li><a href="#">Contact</a></li>
217
+ </ul>
218
+
219
+ <!-- Mobile menu button -->
220
+ <button class="md:hidden p-2">
221
+ <MenuIcon />
222
+ </button>
223
+ </nav>
224
+
225
+ <!-- Mobile nav (shown when open) -->
226
+ <div class="md:hidden fixed inset-0 bg-white z-50">
227
+ <ul class="flex flex-col p-4 gap-4">
228
+ <li><a href="#">Home</a></li>
229
+ <li><a href="#">About</a></li>
230
+ <li><a href="#">Services</a></li>
231
+ <li><a href="#">Contact</a></li>
232
+ </ul>
233
+ </div>
234
+ ```
235
+
236
+ ### Responsive Table
237
+
238
+ ```html
239
+ <!-- Stack on mobile, table on desktop -->
240
+ <div class="overflow-x-auto">
241
+ <table class="w-full">
242
+ <thead class="hidden md:table-header-group">
243
+ <tr class="border-b">
244
+ <th class="text-left p-3">Name</th>
245
+ <th class="text-left p-3">Email</th>
246
+ <th class="text-left p-3">Role</th>
247
+ <th class="text-left p-3">Actions</th>
248
+ </tr>
249
+ </thead>
250
+ <tbody>
251
+ <tr class="flex flex-col md:table-row border-b py-4 md:py-0">
252
+ <td class="p-3" data-label="Name">
253
+ <span class="md:hidden font-medium">Name: </span>
254
+ John Doe
255
+ </td>
256
+ <td class="p-3" data-label="Email">
257
+ <span class="md:hidden font-medium">Email: </span>
258
+ john@example.com
259
+ </td>
260
+ <td class="p-3" data-label="Role">
261
+ <span class="md:hidden font-medium">Role: </span>
262
+ Admin
263
+ </td>
264
+ <td class="p-3">
265
+ <Button size="sm">Edit</Button>
266
+ </td>
267
+ </tr>
268
+ </tbody>
269
+ </table>
270
+ </div>
271
+ ```
272
+
273
+ ### Responsive Cards
274
+
275
+ ```html
276
+ <!-- Card that changes layout at container breakpoint -->
277
+ <div class="@container">
278
+ <article class="
279
+ flex flex-col @sm:flex-row
280
+ gap-4 p-4
281
+ bg-white rounded-xl shadow-sm
282
+ ">
283
+ <img
284
+ src="..."
285
+ class="
286
+ w-full @sm:w-32 @md:w-48
287
+ aspect-video @sm:aspect-square
288
+ object-cover rounded-lg
289
+ "
290
+ />
291
+ <div class="flex-1">
292
+ <h3 class="text-lg @md:text-xl font-semibold">Card Title</h3>
293
+ <p class="text-gray-600 mt-2 line-clamp-2 @md:line-clamp-3">
294
+ Description text that adapts to available space...
295
+ </p>
296
+ <div class="mt-4 flex flex-wrap gap-2">
297
+ <Badge>Tag 1</Badge>
298
+ <Badge>Tag 2</Badge>
299
+ </div>
300
+ </div>
301
+ </article>
302
+ </div>
303
+ ```
304
+
305
+ ## Motion and Accessibility
306
+
307
+ ### Reduced Motion
308
+
309
+ ```html
310
+ <div class="
311
+ transition-transform duration-300
312
+ motion-safe:hover:scale-105
313
+ motion-reduce:transition-none
314
+ ">
315
+ Respects motion preferences
316
+ </div>
317
+ ```
318
+
319
+ ### Forced Colors Mode
320
+
321
+ ```html
322
+ <button class="
323
+ bg-blue-600 text-white
324
+ forced-colors:border-2 forced-colors:border-current
325
+ ">
326
+ Works in high contrast mode
327
+ </button>
328
+ ```
329
+
330
+ ## Safe Area Handling (Notched Devices)
331
+
332
+ For devices with notches (iPhone X+, modern Android), respect safe areas:
333
+
334
+ ### Custom Safe Area Utilities
335
+
336
+ ```css
337
+ @utility safe-area-pt {
338
+ padding-top: env(safe-area-inset-top);
339
+ }
340
+
341
+ @utility safe-area-pb {
342
+ padding-bottom: env(safe-area-inset-bottom);
343
+ }
344
+
345
+ @utility safe-area-pl {
346
+ padding-left: env(safe-area-inset-left);
347
+ }
348
+
349
+ @utility safe-area-pr {
350
+ padding-right: env(safe-area-inset-right);
351
+ }
352
+
353
+ @utility safe-area-p {
354
+ padding: env(safe-area-inset-top) env(safe-area-inset-right)
355
+ env(safe-area-inset-bottom) env(safe-area-inset-left);
356
+ }
357
+ ```
358
+
359
+ ### Usage
360
+
361
+ ```html
362
+ <!-- Header respects top notch -->
363
+ <header class="sticky top-0 safe-area-pt bg-white border-b">
364
+ <nav class="h-14 flex items-center px-4">Navigation</nav>
365
+ </header>
366
+
367
+ <!-- Bottom navigation respects home indicator -->
368
+ <nav class="fixed bottom-0 inset-x-0 safe-area-pb bg-white border-t">
369
+ <div class="flex justify-around py-2">Bottom nav</div>
370
+ </nav>
371
+
372
+ <!-- Full-screen app shell -->
373
+ <div class="min-h-screen safe-area-p">
374
+ App content
375
+ </div>
376
+ ```
377
+
378
+ ## Performance Optimizations for Responsive Design
379
+
380
+ ### Content Visibility for Off-Screen Content
381
+
382
+ ```css
383
+ @utility content-auto {
384
+ content-visibility: auto;
385
+ contain-intrinsic-size: auto 500px;
386
+ }
387
+ ```
388
+
389
+ ```html
390
+ <section class="content-auto">
391
+ <!-- Content below fold - rendering deferred until needed -->
392
+ Large section content
393
+ </section>
394
+ ```
395
+
396
+ ### Lazy Loading
397
+
398
+ ```html
399
+ <!-- Native lazy loading for images -->
400
+ <img
401
+ src="image.jpg"
402
+ alt="Description"
403
+ loading="lazy"
404
+ decoding="async"
405
+ class="w-full h-auto"
406
+ />
407
+
408
+ <!-- Lazy load iframes -->
409
+ <iframe
410
+ src="embed.html"
411
+ loading="lazy"
412
+ class="w-full aspect-video"
413
+ ></iframe>
414
+ ```
415
+
416
+ ### Reduced Data Mode
417
+
418
+ ```css
419
+ @custom-variant prefers-reduced-data (media(prefers-reduced-data: reduce));
420
+ ```
421
+
422
+ ```html
423
+ <!-- Show simpler content on slow/metered connections -->
424
+ <div class="block prefers-reduced-data:hidden">
425
+ <video autoplay muted loop>Full video</video>
426
+ </div>
427
+ <div class="hidden prefers-reduced-data:block">
428
+ <img src="poster.jpg" alt="Video poster" />
429
+ </div>
430
+ ```
431
+
432
+ ## 2025/2026 CSS Features
433
+
434
+ ### View Transitions (Progressive Enhancement)
435
+
436
+ ```css
437
+ @utility view-transition-name-* {
438
+ view-transition-name: --value(ident);
439
+ }
440
+ ```
441
+
442
+ ```html
443
+ <div class="view-transition-name-card">
444
+ Animates during page transitions
445
+ </div>
446
+ ```
447
+
448
+ ### Subgrid for Aligned Nested Grids
449
+
450
+ ```html
451
+ <div class="grid grid-cols-3 gap-4">
452
+ <div class="col-span-2 grid grid-cols-subgrid">
453
+ <!-- Child grid aligns with parent columns -->
454
+ <div>Aligned 1</div>
455
+ <div>Aligned 2</div>
456
+ </div>
457
+ </div>
458
+ ```
459
+
460
+ ### :has() Selector for Parent Selection
461
+
462
+ ```css
463
+ /* Style parent based on child state */
464
+ .card:has(input:focus) {
465
+ @apply ring-2 ring-blue-500;
466
+ }
467
+
468
+ /* Show sibling when checkbox checked */
469
+ .toggle:has(input:checked) + .content {
470
+ @apply block;
471
+ }
472
+ ```
473
+
474
+ ## Best Practices Summary
475
+
476
+ | Pattern | Implementation | Use Case |
477
+ |---------|---------------|----------|
478
+ | Viewport queries | `md:`, `lg:` prefixes | Page layouts |
479
+ | Container queries | `@md:`, `@lg:` prefixes | Reusable components |
480
+ | Fluid typography | `clamp()` in @theme | Smooth scaling |
481
+ | Touch targets | `min-h-11 min-w-11` | Mobile interactions |
482
+ | Safe areas | `env(safe-area-inset-*)` | Notched devices |
483
+ | Reduced motion | `motion-reduce:` prefix | Accessibility |
484
+ | Lazy loading | `loading="lazy"` | Performance |
485
+ | Content visibility | `content-visibility: auto` | Render optimization |
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: web-design-guidelines
3
+ description: Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
4
+ metadata:
5
+ author: vercel
6
+ version: "1.0.0"
7
+ argument-hint: <file-or-pattern>
8
+ ---
9
+
10
+ # Web Interface Guidelines
11
+
12
+ Review files for compliance with Web Interface Guidelines.
13
+
14
+ ## How It Works
15
+
16
+ 1. Fetch the latest guidelines from the source URL below
17
+ 2. Read the specified files (or prompt user for files/pattern)
18
+ 3. Check against all rules in the fetched guidelines
19
+ 4. Output findings in the terse `file:line` format
20
+
21
+ ## Guidelines Source
22
+
23
+ Fetch fresh guidelines before each review:
24
+
25
+ ```
26
+ https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
27
+ ```
28
+
29
+ Use WebFetch to retrieve the latest rules. The fetched content contains all the rules and output format instructions.
30
+
31
+ ## Usage
32
+
33
+ When a user provides a file or pattern argument:
34
+ 1. Fetch guidelines from the source URL above
35
+ 2. Read the specified files
36
+ 3. Apply all rules from the fetched guidelines
37
+ 4. Output findings using the format specified in the guidelines
38
+
39
+ If no files specified, ask the user which files to review.
@@ -44,7 +44,6 @@
44
44
  ]
45
45
  },
46
46
  "private": true,
47
- "packageManager": "npm@11.6.2",
48
47
  "dependencies": {
49
48
  "@angular/animations": "^21.1.2",
50
49
  "@angular/cdk": "^21.1.2",