kmcom-nuxt-layers 4.0.0 → 5.0.0

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 (103) hide show
  1. package/docs/superpowers/plans/2026-09-03-layout-layer-fluid-rebuild.md +8 -8
  2. package/docs/superpowers/specs/2026-08-30-layer-taxonomy-tier-7-design.md +1 -1
  3. package/docs/superpowers/specs/2026-08-31-swiss-grid-layer-design.md +3 -3
  4. package/docs/superpowers/specs/2026-09-03-layout-layer-fluid-rebuild-design.md +3 -3
  5. package/layers/content/app/components/Blog/Article.vue +1 -1
  6. package/layers/content/app/components/Gallery/Detail.vue +8 -8
  7. package/layers/content/app/components/Gallery/Grid.vue +8 -8
  8. package/layers/content/app/components/Gallery/ImageDetail.vue +6 -6
  9. package/layers/content/app/components/Gallery/Lightbox.vue +3 -3
  10. package/layers/content/app/components/NuxtContent/Detail.vue +1 -1
  11. package/layers/content/app/components/NuxtContent/List.vue +1 -1
  12. package/layers/content/app/components/Portfolio/ColorPalette.vue +5 -5
  13. package/layers/content/app/components/Portfolio/Detail.vue +1 -1
  14. package/layers/content/app/components/Portfolio/List.vue +1 -1
  15. package/layers/content/app/components/Portfolio/Typography.vue +5 -5
  16. package/layers/content/app/components/content/Figure.vue +1 -1
  17. package/layers/core/app/assets/css/core.css +9 -9
  18. package/layers/core/app/assets/css/layout.css +1 -1
  19. package/layers/core/app/components/DiagnosticsPage.vue +15 -15
  20. package/layers/core/app/components/Element.test.ts +1 -1
  21. package/layers/core/app/components/ElementTw.test.ts +1 -1
  22. package/layers/core/app/components/ErrorBoundary.vue +5 -5
  23. package/layers/core/app/composables/useElementGrid.test.ts +1 -1
  24. package/layers/core/app/composables/useElementInteraction.test.ts +1 -1
  25. package/layers/core/app/composables/useElementLayout.test.ts +1 -1
  26. package/layers/core/app/composables/useElementSizing.test.ts +1 -1
  27. package/layers/core/app/composables/useElementSurface.test.ts +1 -1
  28. package/layers/core/app/composables/useLayoutAttrs.test.ts +1 -1
  29. package/layers/core/app/error.vue +1 -1
  30. package/layers/core/app/pages/[...slug].vue +2 -2
  31. package/layers/core/app/utils/browserInfo.test.ts +1 -1
  32. package/layers/core/app/utils/featureClasses.test.ts +1 -1
  33. package/layers/core/app/utils/scrollGuardClamp.test.ts +1 -1
  34. package/layers/core/app/utils/styleToTailwindClasses.test.ts +1 -1
  35. package/layers/data/forms/app/utils/contact-schema.test.ts +1 -1
  36. package/layers/data/forms/app/utils/fieldProps.test.ts +1 -1
  37. package/layers/data/mailer/shared/contact.ts +23 -0
  38. package/layers/data/metadata/providers/comicvine/server/utils/metadata-comicvine/normalise.test.ts +1 -1
  39. package/layers/data/metadata/providers/google-books/server/utils/metadata-google-books/client.test.ts +1 -1
  40. package/layers/data/metadata/providers/google-books/server/utils/metadata-google-books/normalise.test.ts +1 -1
  41. package/layers/data/metadata/providers/openlibrary/server/utils/metadata-openlibrary/client.test.ts +1 -1
  42. package/layers/data/metadata/providers/openlibrary/server/utils/metadata-openlibrary/normalise.test.ts +1 -1
  43. package/layers/data/metadata/providers/themoviedb/server/utils/metadata-tmdb/client.test.ts +1 -1
  44. package/layers/data/metadata/providers/themoviedb/server/utils/metadata-tmdb/normalise.test.ts +1 -1
  45. package/layers/data/metadata/server/utils/metadata/cache.test.ts +1 -1
  46. package/layers/data/metadata/server/utils/metadata/provider-registry.test.ts +1 -1
  47. package/layers/data/metadata/server/utils/metadata/search.test.ts +1 -1
  48. package/layers/data/metadata/shared/types/index.ts +2 -0
  49. package/layers/data/metadata/shared/types/metadata.ts +59 -0
  50. package/layers/data/metadata/shared/types/providers.ts +36 -0
  51. package/layers/delivery/feeds/app/assets/css/feeds.css +23 -11
  52. package/layers/delivery/feeds/app/components/Feeds/Index.vue +10 -10
  53. package/layers/delivery/feeds/app/components/Feeds/RouteCard.vue +1 -1
  54. package/layers/delivery/feeds/public/feed/style.css +16 -16
  55. package/layers/delivery/feeds/server/utils/content-adapter.test.ts +1 -1
  56. package/layers/delivery/feeds/server/utils/feed-author.test.ts +1 -1
  57. package/layers/delivery/feeds/server/utils/feed-config.test.ts +1 -1
  58. package/layers/delivery/feeds/server/utils/formats.test.ts +1 -1
  59. package/layers/delivery/scripts/app/components/BaselineStatus.vue +3 -1
  60. package/layers/delivery/seo/app/utils/seoConfig.test.ts +1 -1
  61. package/layers/design-system/theming/app/assets/css/theme.css +0 -1
  62. package/layers/design-system/theming/app/components/ThemePicker/AccentButton.vue +2 -2
  63. package/layers/design-system/theming/app/components/ThemePicker/Menu.vue +3 -3
  64. package/layers/design-system/theming/app/composables/useAccentColor.ts +4 -1
  65. package/layers/design-system/theming/app/plugins/theme.client.ts +15 -13
  66. package/layers/design-system/theming/app/utils/themeAdapter.ts +1 -1
  67. package/layers/design-system/theming/nuxt.config.ts +1 -1
  68. package/layers/design-system/theming/server/utils/accent-css.test.ts +1 -1
  69. package/layers/design-system/theming/server/utils/fouc-config.test.ts +1 -1
  70. package/layers/design-system/typography/app/components/Typography/TextStroke.vue +1 -1
  71. package/layers/design-system/visual/app/assets/css/visual.css +0 -1
  72. package/layers/design-system/visual/app/components/Accent/Scene.vue +2 -2
  73. package/layers/design-system/visual/app/components/Tint/Overlay.vue +1 -1
  74. package/layers/design-system/visual/app/utils/colorTokens.test.ts +1 -1
  75. package/layers/design-system/visual/app/utils/gradientStyle.test.ts +1 -1
  76. package/layers/design-system/visual/app/utils/responsiveSizes.test.ts +1 -1
  77. package/layers/motion/animations/app/components/Motion/Marquee.vue +1 -1
  78. package/layers/motion/animations/app/components/Motion/MarqueeText.vue +3 -3
  79. package/layers/motion/scroll/app/components/Motion/HorizontalScroll.vue +1 -1
  80. package/layers/motion/scroll/app/components/Motion/PinnedSection.vue +2 -2
  81. package/layers/motion/scroll/app/components/Motion/ScrollProgress.vue +2 -2
  82. package/layers/motion/scroll/app/components/Motion/ScrollStats.vue +6 -6
  83. package/layers/motion/transitions/app/assets/css/transitions.css +12 -12
  84. package/layers/render/canvas/app/composables/useRendererCapabilities.ts +2 -1
  85. package/layers/render/canvas/package.json +2 -1
  86. package/layers/render/shader/app/assets/css/shader.css +5 -5
  87. package/layers/render/shader/app/components/Mesh/Plane.vue +3 -1
  88. package/layers/render/shader/app/shaders/common/grain.ts +1 -1
  89. package/layers/render/shader/app/types/tsl.ts +1 -1
  90. package/layers/render/shader/app/utils/tsl/index.ts +2 -0
  91. package/layers/structure/grid/app/assets/css/grid.css +2 -0
  92. package/layers/structure/grid/app/composables/useGridTracks.test.ts +1 -1
  93. package/layers/structure/grid/app/types/tracks.test.ts +1 -1
  94. package/layers/structure/grid/app/utils/placement.test.ts +1 -1
  95. package/layers/structure/layout/app/components/Layout/Grid/Debug.vue +1 -1
  96. package/layers/structure/layout/app/components/Layout/Page/Header.vue +3 -3
  97. package/layers/structure/layout/app/components/Layout/Page/index.vue +16 -11
  98. package/layers/structure/layout/app/utils/gridPlacementStyle.test.ts +1 -1
  99. package/layers/structure/navigation/app/components/Mast/Nav.vue +1 -1
  100. package/layers/structure/navigation/app/components/Mast/NavModal.vue +2 -2
  101. package/layers/structure/navigation/app/utils/site.test.ts +1 -1
  102. package/layers/structure/routing/app/utils/resolveRoute.test.ts +1 -1
  103. package/package.json +22 -32
@@ -10,19 +10,21 @@ export default defineNuxtPlugin({
10
10
  const { setTransparencyOverride, effectiveReducedTransparency } = useThemeTransparency()
11
11
 
12
12
  // Restore persisted preferences. useState defaults were serialized from the
13
- // server, so hydration matches. We update to the stored values here, after
14
- // hydration completes, to avoid any mismatch.
15
- const storedAccent = localStorage.getItem('theme-colour')
16
- if (storedAccent) setAccent(storedAccent as AccentColor)
17
-
18
- const storedContrast = localStorage.getItem('theme-contrast')
19
- if (storedContrast) setContrastOverride(storedContrast as PreferenceOverride)
20
-
21
- const storedMotion = localStorage.getItem('theme-motion')
22
- if (storedMotion) setMotionOverride(storedMotion as PreferenceOverride)
23
-
24
- const storedTransparency = localStorage.getItem('theme-transparency')
25
- if (storedTransparency) setTransparencyOverride(storedTransparency as PreferenceOverride)
13
+ // server, so hydration matches only if client state is still at those defaults
14
+ // while hydrating. Plugin setup runs BEFORE hydration, so the stored values are
15
+ // applied on `app:mounted` (after hydration) instead of here.
16
+ useNuxtApp().hook('app:mounted', () => {
17
+ const restorers: Array<[key: string, apply: (value: string) => void]> = [
18
+ ['theme-colour', (v) => setAccent(v as AccentColor)],
19
+ ['theme-contrast', (v) => setContrastOverride(v as PreferenceOverride)],
20
+ ['theme-motion', (v) => setMotionOverride(v as PreferenceOverride)],
21
+ ['theme-transparency', (v) => setTransparencyOverride(v as PreferenceOverride)],
22
+ ]
23
+ for (const [key, apply] of restorers) {
24
+ const stored = localStorage.getItem(key)
25
+ if (stored) apply(stored)
26
+ }
27
+ })
26
28
 
27
29
  watch(
28
30
  activeAccent,
@@ -1,4 +1,4 @@
1
- import { ACCENT_PALETTES, type AccentName } from '../../server/utils/accent-css'
1
+ import { ACCENT_PALETTES, type AccentName } from '../../server/utils/accent-css.ts'
2
2
 
3
3
  /**
4
4
  * Derives Nuxt UI's `ui.colors` shape from the same accent-relationship table
@@ -1,5 +1,5 @@
1
1
  // Theme Layer - Color mode, accent colors, accessibility preferences
2
- import { resolveUiColors } from './app/utils/themeAdapter'
2
+ import { resolveUiColors } from './app/utils/themeAdapter.ts'
3
3
 
4
4
  declare module '@nuxt/schema' {
5
5
  interface PublicRuntimeConfig {
@@ -1,5 +1,5 @@
1
1
  import twColors from 'tailwindcss/colors'
2
- import { describe, expect, it } from 'vitest'
2
+ import { describe, expect, it } from 'vite-plus/test'
3
3
 
4
4
  import { buildAccentCSS } from './accent-css'
5
5
 
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import { buildThemeInitScript } from './fouc-config'
4
4
 
@@ -31,7 +31,7 @@
31
31
  v-bind="$attrs"
32
32
  >
33
33
  <!-- Sizer: transparent text for natural sizing + selectable -->
34
- <span class="text-stroke-sizer text-transparent whitespace-nowrap" aria-hidden="true">{{
34
+ <span class="text-stroke-sizer whitespace-nowrap text-transparent" aria-hidden="true">{{
35
35
  text
36
36
  }}</span>
37
37
 
@@ -1,5 +1,4 @@
1
1
  .gradient-text {
2
- background-clip: text;
3
2
  background-clip: text;
4
3
  color: transparent;
5
4
  }
@@ -25,8 +25,8 @@
25
25
  </script>
26
26
 
27
27
  <template>
28
- <component :is="tag" class="relative overflow-clip isolate">
29
- <div class="absolute inset-0 pointer-events-none" aria-hidden="true">
28
+ <component :is="tag" class="relative isolate overflow-clip">
29
+ <div class="pointer-events-none absolute inset-0" aria-hidden="true">
30
30
  <AccentBlob
31
31
  v-for="(blob, i) in resolvedBlobs"
32
32
  :key="i"
@@ -20,6 +20,6 @@
20
20
  <template>
21
21
  <component :is="tag" class="relative">
22
22
  <slot />
23
- <span class="absolute inset-0 pointer-events-none" :style aria-hidden="true" />
23
+ <span class="pointer-events-none absolute inset-0" :style aria-hidden="true" />
24
24
  </component>
25
25
  </template>
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import { resolveUiColorToken } from './colorTokens'
4
4
 
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import type { GradientConfig } from '../types/gradient'
4
4
  import { buildGradientStyle, resolveGradientColor } from './gradientStyle'
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import type { ResponsiveSizes } from '../types/media'
4
4
  import { buildResponsiveSizesQueries } from './responsiveSizes'
@@ -147,7 +147,7 @@
147
147
  >
148
148
  <div
149
149
  ref="contentRef"
150
- class="motion-marquee__content flex will-change-transform w-max"
150
+ class="motion-marquee__content flex w-max will-change-transform"
151
151
  :style="{ gap }"
152
152
  >
153
153
  <slot />
@@ -95,8 +95,8 @@
95
95
  onMounted(async () => {
96
96
  await nextTick()
97
97
 
98
- baseX.value = new Array(texts.length).fill(0)
99
- directionFactors.value = new Array(texts.length).fill(1)
98
+ baseX.value = Array.from({ length: texts.length }, () => 0)
99
+ directionFactors.value = Array.from({ length: texts.length }, () => 1)
100
100
  animLastTime = performance.now()
101
101
 
102
102
  const firstContainer = containerRef.value?.[0]
@@ -131,7 +131,7 @@
131
131
  :style="parallaxStyle"
132
132
  >
133
133
  <div
134
- :class="`${scrollerClassName} font-styles-logo flex py-2 text-center font-sans text-4xl font-medium tracking-[-0.02em] whitespace-nowrap text-neutral drop-shadow md:text-[5rem] md:leading-20`"
134
+ :class="`${scrollerClassName} font-styles-logo text-neutral flex py-2 text-center font-sans text-4xl font-medium tracking-[-0.02em] whitespace-nowrap drop-shadow md:text-[5rem] md:leading-20`"
135
135
  :style="{ transform: `translateX(${scrollTransforms[index] ?? '0px'})`, ...scrollerStyle }"
136
136
  >
137
137
  <span
@@ -57,7 +57,7 @@
57
57
 
58
58
  <template>
59
59
  <section ref="sectionRef" class="motion-horizontal-scroll h-screen overflow-hidden">
60
- <div ref="trackRef" class="h-full flex items-center will-change-transform">
60
+ <div ref="trackRef" class="flex h-full items-center will-change-transform">
61
61
  <slot />
62
62
  </div>
63
63
  </section>
@@ -72,8 +72,8 @@
72
72
  </script>
73
73
 
74
74
  <template>
75
- <section ref="sectionRef" class="motion-pinned-section h-screen relative">
76
- <div ref="contentRef" class="motion-pinned-content h-full flex items-center justify-center">
75
+ <section ref="sectionRef" class="motion-pinned-section relative h-screen">
76
+ <div ref="contentRef" class="motion-pinned-content flex h-full items-center justify-center">
77
77
  <slot />
78
78
  </div>
79
79
  </section>
@@ -49,7 +49,7 @@
49
49
  <!-- Linear Progress -->
50
50
  <div v-if="type === 'linear'" class="motion-scroll-progress-linear" v-bind="$attrs">
51
51
  <div
52
- class="w-full rounded-full overflow-hidden"
52
+ class="w-full overflow-hidden rounded-full"
53
53
  :style="{ height: `${height}px`, backgroundColor: bgColor }"
54
54
  >
55
55
  <div
@@ -60,7 +60,7 @@
60
60
  }"
61
61
  />
62
62
  </div>
63
- <span v-if="showPercentage" class="text-sm font-medium tabular-nums mt-2 block text-center">
63
+ <span v-if="showPercentage" class="mt-2 block text-center text-sm font-medium tabular-nums">
64
64
  {{ percentage }}%
65
65
  </span>
66
66
  </div>
@@ -51,7 +51,7 @@
51
51
 
52
52
  <template>
53
53
  <div
54
- class="bg-black/80 backdrop-blur-sm text-white rounded-xl transition-opacity duration-300"
54
+ class="rounded-xl bg-black/80 text-white backdrop-blur-sm transition-opacity duration-300"
55
55
  :class="[
56
56
  ...positionClasses,
57
57
  isScrolling ? 'opacity-100' : 'opacity-60',
@@ -61,31 +61,31 @@
61
61
  <div class="flex items-center" :class="[compact ? 'gap-4 text-xs' : 'gap-6 text-sm']">
62
62
  <!-- Scrolling indicator -->
63
63
  <div
64
- class="w-2 h-2 rounded-full transition-colors duration-100"
64
+ class="h-2 w-2 rounded-full transition-colors duration-100"
65
65
  :class="isScrolling ? 'bg-green-500' : 'bg-gray-600'"
66
66
  />
67
67
 
68
68
  <!-- Velocity -->
69
69
  <div v-if="show.includes('velocity')" class="text-center">
70
- <div v-if="!compact" class="text-gray-500 text-xs mb-0.5">VEL</div>
70
+ <div v-if="!compact" class="mb-0.5 text-xs text-gray-500">VEL</div>
71
71
  <div class="font-medium tabular-nums">{{ velocity.toFixed(2) }}</div>
72
72
  </div>
73
73
 
74
74
  <!-- Progress -->
75
75
  <div v-if="show.includes('progress')" class="text-center">
76
- <div v-if="!compact" class="text-gray-500 text-xs mb-0.5">PROG</div>
76
+ <div v-if="!compact" class="mb-0.5 text-xs text-gray-500">PROG</div>
77
77
  <div class="font-medium tabular-nums">{{ (progress * 100).toFixed(0) }}%</div>
78
78
  </div>
79
79
 
80
80
  <!-- Direction -->
81
81
  <div v-if="show.includes('direction')" class="text-center">
82
- <div v-if="!compact" class="text-gray-500 text-xs mb-0.5">DIR</div>
82
+ <div v-if="!compact" class="mb-0.5 text-xs text-gray-500">DIR</div>
83
83
  <div class="font-medium">{{ directionLabel }}</div>
84
84
  </div>
85
85
 
86
86
  <!-- Scroll Y -->
87
87
  <div v-if="show.includes('scrollY')" class="text-center">
88
- <div v-if="!compact" class="text-gray-500 text-xs mb-0.5">Y</div>
88
+ <div v-if="!compact" class="mb-0.5 text-xs text-gray-500">Y</div>
89
89
  <div class="font-medium tabular-nums">{{ Math.round(scrollY) }}px</div>
90
90
  </div>
91
91
  </div>
@@ -21,31 +21,31 @@
21
21
 
22
22
  /* Animation classes */
23
23
  .animate-fade-in {
24
- animation: fadeIn 0.3s ease-out forwards;
24
+ animation: fade-in 0.3s ease-out forwards;
25
25
  }
26
26
 
27
27
  .animate-fade-out {
28
- animation: fadeOut 0.3s ease-out forwards;
28
+ animation: fade-out 0.3s ease-out forwards;
29
29
  }
30
30
 
31
31
  .animate-slide-in-up {
32
- animation: slideInUp 0.3s ease-out forwards;
32
+ animation: slide-in-up 0.3s ease-out forwards;
33
33
  }
34
34
 
35
35
  .animate-slide-in-down {
36
- animation: slideInDown 0.3s ease-out forwards;
36
+ animation: slide-in-down 0.3s ease-out forwards;
37
37
  }
38
38
 
39
39
  .animate-slide-in-left {
40
- animation: slideInLeft 0.3s ease-out forwards;
40
+ animation: slide-in-left 0.3s ease-out forwards;
41
41
  }
42
42
 
43
43
  .animate-slide-in-right {
44
- animation: slideInRight 0.3s ease-out forwards;
44
+ animation: slide-in-right 0.3s ease-out forwards;
45
45
  }
46
46
 
47
47
  /* Keyframes */
48
- @keyframes fadeIn {
48
+ @keyframes fade-in {
49
49
  from {
50
50
  opacity: 0;
51
51
  }
@@ -55,7 +55,7 @@
55
55
  }
56
56
  }
57
57
 
58
- @keyframes fadeOut {
58
+ @keyframes fade-out {
59
59
  from {
60
60
  opacity: 1;
61
61
  }
@@ -65,7 +65,7 @@
65
65
  }
66
66
  }
67
67
 
68
- @keyframes slideInUp {
68
+ @keyframes slide-in-up {
69
69
  from {
70
70
  transform: translateY(20px);
71
71
  opacity: 0;
@@ -77,7 +77,7 @@
77
77
  }
78
78
  }
79
79
 
80
- @keyframes slideInDown {
80
+ @keyframes slide-in-down {
81
81
  from {
82
82
  transform: translateY(-20px);
83
83
  opacity: 0;
@@ -89,7 +89,7 @@
89
89
  }
90
90
  }
91
91
 
92
- @keyframes slideInLeft {
92
+ @keyframes slide-in-left {
93
93
  from {
94
94
  transform: translateX(-20px);
95
95
  opacity: 0;
@@ -101,7 +101,7 @@
101
101
  }
102
102
  }
103
103
 
104
- @keyframes slideInRight {
104
+ @keyframes slide-in-right {
105
105
  from {
106
106
  transform: translateX(20px);
107
107
  opacity: 0;
@@ -72,7 +72,8 @@ export async function checkWebGPUSupport(): Promise<boolean> {
72
72
  }
73
73
 
74
74
  try {
75
- const adapter = await navigator.gpu.requestAdapter()
75
+ const gpu = (navigator as Navigator & { gpu: { requestAdapter: () => Promise<unknown> } }).gpu
76
+ const adapter = await gpu.requestAdapter()
76
77
  return adapter !== null
77
78
  } catch {
78
79
  return false
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/three": "catalog:",
22
- "vite": "catalog:"
22
+ "vite": "catalog:",
23
+ "vite-plus": "catalog:"
23
24
  }
24
25
  }
@@ -12,17 +12,17 @@
12
12
  z-index: 9999;
13
13
  backdrop-filter: blur(8px);
14
14
  border-radius: 0.5rem;
15
- background: rgb(0 0 0 / 0.8);
15
+ background: oklch(0% 0 0deg / 0.8);
16
16
  padding: 0.75rem 1rem;
17
17
  min-width: 200px;
18
- color: #fff;
18
+ color: oklch(100% 0 0deg);
19
19
  font-size: 0.75rem;
20
20
  font-family: ui-monospace, monospace;
21
21
  }
22
22
 
23
23
  .shader-debug-title {
24
24
  margin-bottom: 0.5rem;
25
- color: #a78bfa;
25
+ color: oklch(70.9% 0.1592 293.54deg);
26
26
  font-weight: 600;
27
27
  }
28
28
 
@@ -33,9 +33,9 @@
33
33
  }
34
34
 
35
35
  .shader-debug-label {
36
- color: #94a3b8;
36
+ color: oklch(71.07% 0.0351 256.79deg);
37
37
  }
38
38
 
39
39
  .shader-debug-value {
40
- color: #22c55e;
40
+ color: oklch(72.27% 0.192 149.58deg);
41
41
  }
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import type { Vector3 } from 'three'
3
+
2
4
  const {
3
5
  width = 2,
4
6
  height = 2,
@@ -17,7 +19,7 @@
17
19
  </script>
18
20
 
19
21
  <template>
20
- <TresMesh :position :rotation>
22
+ <TresMesh :position="position as unknown as Vector3" :rotation="rotation as unknown as Vector3">
21
23
  <TresPlaneGeometry :args="[width, height, widthSegments, heightSegments]" />
22
24
  <slot />
23
25
  </TresMesh>
@@ -334,7 +334,7 @@ export function crtEffect(
334
334
 
335
335
  // 8x8 Bayer matrix values (normalized to 0-1 range)
336
336
  const BAYER_8X8_MATRIX = [
337
- 0.0 / 64.0,
337
+ 0, // 0 / 64
338
338
  48.0 / 64.0,
339
339
  12.0 / 64.0,
340
340
  60.0 / 64.0,
@@ -37,7 +37,7 @@ export type TSLMat4 = any
37
37
 
38
38
  export type GradientStop = {
39
39
  position: number
40
- color: TSLColor | TSLVec3
40
+ color: TSLColor
41
41
  }
42
42
 
43
43
  export type FBMOptions = {
@@ -1,2 +1,4 @@
1
1
  // Auto-imports are sourced directly from individual files in this directory.
2
2
  // See: noise.ts, math.ts, color.ts, uv.ts, animation.ts, patterns.ts, tween.ts, oklch.ts
3
+
4
+ export {}
@@ -12,6 +12,7 @@
12
12
  :root {
13
13
  /* rem term keeps this WCAG 1.4.4 zoom-safe; svi never vw (viewport-bar-collapse safe) */
14
14
  --fs: clamp(1rem, 0.95rem + 0.25svi, 1.125rem);
15
+
15
16
  /* rounded, not raw, so grid boundaries land on-pixel */
16
17
  line-height: round(nearest, var(--fs) * 1.5, 1px);
17
18
  }
@@ -21,6 +22,7 @@
21
22
  line-height */
22
23
  --unit: 1rlh;
23
24
  --measure-min: 22rem;
25
+
24
26
  /* margin floor > 0, steep svi slope so it shrinks fast on narrow screens */
25
27
  --edge-min: clamp(1rlh, 8svi, 3rlh);
26
28
  --avail-b: calc(100svh - 2 * var(--edge-min));
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import type { GridPreset, TrackConfig } from '../types/tracks'
4
4
  import { resolve, toColumnsCss } from './useGridTracks'
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import type { GridPreset, TrackConfig, TrackSegment } from './tracks'
4
4
 
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import { placementFromIndex, placementFromLines } from './placement'
4
4
 
@@ -72,7 +72,7 @@
72
72
 
73
73
  <template>
74
74
  <Teleport to="body">
75
- <div v-if="visible" :style class="grid-debug z-9999 fixed inset-0" aria-hidden="true">
75
+ <div v-if="visible" :style class="grid-debug fixed inset-0 z-9999" aria-hidden="true">
76
76
  <div v-for="i in cols" :key="i" :style="{ backgroundColor: color }" class="h-full" />
77
77
  </div>
78
78
  </Teleport>
@@ -30,15 +30,15 @@
30
30
  <template v-if="back">
31
31
  <UButton :to="back" variant="ghost" icon="i-lucide-arrow-left" />
32
32
  <div>
33
- <h1 class="text-3xl font-bold text-highlighted">{{ title }}</h1>
33
+ <h1 class="text-highlighted text-3xl font-bold">{{ title }}</h1>
34
34
  <p v-if="description" class="text-muted">{{ description }}</p>
35
35
  </div>
36
36
  </template>
37
37
 
38
38
  <!-- Centered page header (homepage, section intros) -->
39
39
  <template v-else>
40
- <h1 class="text-4xl font-bold text-highlighted">{{ title }}</h1>
41
- <p v-if="description" class="mt-3 text-lg text-muted">{{ description }}</p>
40
+ <h1 class="text-highlighted text-4xl font-bold">{{ title }}</h1>
41
+ <p v-if="description" class="text-muted mt-3 text-lg">{{ description }}</p>
42
42
  </template>
43
43
  </div>
44
44
  </template>
@@ -2,9 +2,12 @@
2
2
  /**
3
3
  * LayoutPage — canonical page wrapper for the Swiss Grid System.
4
4
  *
5
- * This is a fragment component (no wrapper element). The grid root is already
6
- * provided by LayoutMain at the layout level via <main class="grid-root">.
7
- * Adding another grid-root wrapper here would nest grids and misalign everything.
5
+ * The grid root is already provided by LayoutMain at the layout level via
6
+ * <main class="grid-root">. Adding another grid-root wrapper here would nest grids and
7
+ * misalign everything, so the single root element below is `display: contents` — it
8
+ * generates no box, and the header section and slot content still lay out as direct
9
+ * children of the grid root. A real root element (rather than a fragment) is what Vue's
10
+ * <Transition> and Nuxt's page-root check (NUXT_E4004) require.
8
11
  *
9
12
  * Responsibilities:
10
13
  * - SEO via useHead()
@@ -57,13 +60,15 @@
57
60
  </script>
58
61
 
59
62
  <template>
60
- <!-- Optional visible page header — rendered as a grid section -->
61
- <LayoutSection v-if="showHeader">
62
- <LayoutGridItem preset="centered">
63
- <LayoutPageHeader :title v-bind="description !== undefined ? { description } : {}" />
64
- </LayoutGridItem>
65
- </LayoutSection>
63
+ <div class="contents">
64
+ <!-- Optional visible page header — rendered as a grid section -->
65
+ <LayoutSection v-if="showHeader">
66
+ <LayoutGridItem preset="centered">
67
+ <LayoutPageHeader :title v-bind="description !== undefined ? { description } : {}" />
68
+ </LayoutGridItem>
69
+ </LayoutSection>
66
70
 
67
- <!-- Page content — direct children of grid-root (via LayoutMain in the layout) -->
68
- <slot />
71
+ <!-- Page content — grid items of grid-root (via LayoutMain in the layout) -->
72
+ <slot />
73
+ </div>
69
74
  </template>
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import {
4
4
  buildGridPlacementClasses,
@@ -6,7 +6,7 @@
6
6
  <template>
7
7
  <button
8
8
  aria-label="Open navigation menu"
9
- class="fixed right-0 top-0 flex cursor-pointer items-center justify-center border-0 bg-transparent p-4"
9
+ class="fixed top-0 right-0 flex cursor-pointer items-center justify-center border-0 bg-transparent p-4"
10
10
  :style="{ zIndex: z }"
11
11
  @click="() => open()"
12
12
  >
@@ -41,7 +41,7 @@
41
41
  :style="{ zIndex: useGridConfig().useZIndex('modal') }"
42
42
  >
43
43
  <button
44
- class="absolute right-[5vw] top-[3vh] cursor-pointer border-0 bg-transparent p-2"
44
+ class="absolute top-[3vh] right-[5vw] cursor-pointer border-0 bg-transparent p-2"
45
45
  aria-label="Close navigation"
46
46
  @click="dismiss"
47
47
  >
@@ -52,7 +52,7 @@
52
52
  <button
53
53
  v-for="link in links"
54
54
  :key="link.id"
55
- class="cursor-pointer border-0 bg-transparent px-4 py-3 text-3xl uppercase tracking-widest transition-all"
55
+ class="cursor-pointer border-0 bg-transparent px-4 py-3 text-3xl tracking-widest uppercase transition-all"
56
56
  :class="activeSection === link.id ? 'font-normal' : 'font-light'"
57
57
  @click="() => handleNav(link)"
58
58
  >
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import { resolveSiteConfig } from './site'
4
4
 
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from 'vitest'
1
+ import { describe, expect, it } from 'vite-plus/test'
2
2
 
3
3
  import type { FeatureValue, RouteResolution, RoutingLayerConfig } from '../types/routing'
4
4
  import { resolveRoute } from './resolveRoute'